BlinkShare is a platform designed to enable seamless blockchain interactions within social media communities, such as Discord. Built on Next.js and TypeScript, BlinkShare integrates Solana web3.js, Shadcn/UI, and Supabase, offering an advanced ecosystem for managing community roles and transactions using Solana Blinks.
- Dialect Blinks: Leverages Dialect for dynamic messaging and notifications in Solana transactions.
- Shadcn/UI: Provides pre-built, customizable components for a visually stunning and user-friendly interface.
- BlinkShare Bot: An interactive Discord bot to simplify blockchain interactions and manage server roles.
- Supabase Integration: For robust database management and real-time updates.
- Seamless Role Management: Automates the assignment and expiration of roles for efficient community management.
- Secure Transactions: Built on Solana's fast and secure blockchain, with wallet management powered by Privy.io.
- Frontend: Next.js 15, React 19, Typescript, Solana/web3.js, Tailwind CSS, Shadcn/UI
- Backend: Node.js with Solana web3.js, Supabase
- Package Manager: pnpm
- Blockchain: Solana
- Database: Supabase
- Messaging: Dialect, Resend
- Payments Privy.io
- Node.js >= 20
- pnpm installed globally
- Solana CLI installed locally
- Supabase project set up (Supabase Documentation)
git clone https://github.com/your-repo/blinkshare.git
cd frontend
pnpm install
Create a .env.local
file and include the following:
NEXT_PUBLIC_SUPABASE_URL=<your-supabase-url>
NEXT_PUBLIC_SUPABASE_ANON_KEY=<your-supabase-anon-key>
NEXT_PUBLIC_SOLANA_NETWORK=devnet
NEXT_PUBLIC_SOLANA_RPC_URL=https://api.devnet.solana.com
DIALECT_API_KEY=<your-dialect-api-key>
JWT_SECRET=<your-jwt-secret>
SECRET_KEY=<your-secret-key>
Run the following command to initialize Supabase:
pnpm run db:setup
Start the development server:
pnpm dev
The app will be running at http://localhost:3000
.
**Adding the Bot to Your Discord Server
- Visit BlinkShare Bot Invite Link.
- Select your server and grant the necessary permissions.
- Configure the bot using
/blinksetup
for roles and/blinklink
for Solana wallet linking.
BlinkShare is optimized for deployment on Vercel:
- Connect your repository to Vercel.
- Add environment variables to the Vercel dashboard.
- Deploy with a single click.
We welcome contributions! To get started:
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch-name
. - Make your changes and commit:
git commit -m "Description of changes"
. - Push to the branch:
git push origin feature-branch-name
. - Open a pull request.
BlinkShare is open-source under the MIT License.