A beautiful, fully-functional Twitter clone built on the Solana blockchain using Anchor framework and React.
- π Decentralized: Built on Solana blockchain
- π Twitter-like UI: Authentic Twitter design and user experience
- βοΈ Post Tweets: Share your thoughts on the blockchain
- π° Timeline Feed: View all tweets from the community
- β€οΈ Like System: Interact with tweets (like/unlike)
- π¬ Reply & Retweet: Full social media functionality
- π± Responsive: Works perfectly on mobile and desktop
- π Dark Theme: Beautiful Twitter-inspired dark mode
- β‘ Fast: Built with modern web technologies
- Anchor Framework - Solana smart contract development
- Rust - Systems programming language
- Solana - High-performance blockchain
- React 18 - Modern UI library
- TypeScript - Type-safe JavaScript
- Vite - Fast build tool
- Tailwind CSS - Utility-first CSS framework
- Solana Web3.js - Solana JavaScript API
- Wallet Adapter - Solana wallet integration
- Node.js 18+
- Rust 1.70+
- Solana CLI
- Anchor CLI
- Clone the repository
git clone https://github.com/yourusername/solana-twitter-dapp.git
cd soltwitter- Install dependencies
# Install Anchor dependencies
npm install
# Install frontend dependencies
cd my-twitter-frontend
npm install- Build the smart contract
# Go back to root
cd ..
anchor build- Deploy to Solana Devnet
anchor deploy --provider.cluster devnet- Start the frontend
cd my-twitter-frontend
npm run dev- Open your browser
Navigate to
http://localhost:5173
- Connect Wallet: Click "Connect Wallet" to connect your Solana wallet
- Post Tweet: Write your thoughts in the compose box and click "Tweet"
- View Timeline: See all tweets from the community
- Interact: Like, reply, and retweet posts
- Enjoy: Experience decentralized social media!
solana-twitter-dapp/
βββ programs/
β βββ twitter-dapp/
β βββ src/
β βββ lib.rs # Smart contract logic
βββ my-twitter-frontend/
β βββ src/
β β βββ components/ # React components
β β βββ idl/ # Generated IDL files
β β βββ anchor.ts # Anchor client setup
β βββ package.json
βββ tests/ # Smart contract tests
βββ Anchor.toml # Anchor configuration
βββ README.md
- Send Tweet: Post new tweets with topic and content
- Like Tweet: Like/unlike functionality with liker tracking
- Update Tweet: Edit your own tweets
- Delete Tweet: Remove your tweets
- Reply & Retweet: Social interaction features
- Twitter-like UI: Authentic dark theme design
- Real-time Updates: Live tweet feed
- Wallet Integration: Seamless Solana wallet connection
- Responsive Design: Mobile-first approach
- Error Handling: User-friendly error messages
- Loading States: Smooth loading animations
Add screenshots of your app here
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Solana - For the amazing blockchain platform
- Anchor - For making Solana development easier
- Twitter - For the design inspiration
- React - For the fantastic UI library
- GitHub: (https://github.com/0307)
- Twitter: (https://x.com/rammsey_rs)
β Star this repo if you like it!
Built with β€οΈ on Solana