forked from mito-systems/sol-mem-gen
src | ||
.env.example | ||
.gitignore | ||
index.html | ||
next-env.d.ts | ||
next.config.mjs | ||
package-lock.json | ||
package.json | ||
postcss.config.js | ||
quotes-service.ts | ||
README.md | ||
server.ts | ||
styles.css | ||
tailwind.config.ts | ||
tsconfig.json | ||
tsconfig.server.json |
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.example
file to.env.local
and add your FAL AI key:cp .env.example .env.local
-
Add your FAL AI key to the
.env.local
file:# 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.