forked from mito-systems/sol-mem-gen
60728920f32637fd6c2242f4690b68c161a50f08
Part of https://www.notion.so/Implement-payment-gating-188a6b22d472806a9267c2bda72925cc Co-authored-by: Adw8 <adwaitgharpure@gmail.com> Reviewed-on: #3 Co-authored-by: adwait <adwait@noreply.git.vdb.to> Co-committed-by: adwait <adwait@noreply.git.vdb.to>
sol-mem-gen
This project is a Solana-based meme generator that allows users to connect their wallets, pay with MTM tokens, and generate memes using AI models.
Features
- Connect to Solflare and Phantom wallets
- Pay with MTM tokens
- Generate memes using various AI models
Prerequisites
- Node.js
- npm
- Solflare or Phantom wallet
Setup
-
Install dependencies:
npm install -
Copy the
.env.examplefile to.env.localand add your FAL AI key:cp .env.example .env.local -
Add your FAL AI key to the
.env.localfile:# Get key from https://fal.ai/ FAL_AI_KEY=your_fal_ai_key -
Run the development server:
npm run dev -
Open your browser and navigate to
http://localhost:3000.
Usage
- Connect your Solflare or Phantom wallet using the "Connect Wallet" button.
- Select an AI model and enter a prompt to generate a meme.
- Pay the required MTM tokens and wait for the meme to be generated.
Languages
TypeScript
94.6%
Shell
2.5%
CSS
1.7%
Dockerfile
1%
JavaScript
0.1%
Other
0.1%