A modern web application for creating, collecting, and trading AI prompts as beautiful digital trading cards. Built with the T3 Stack for type safety and developer experience.
- 🎨 Digital Trading Cards: Create stunning prompt cards with automatic rarity systems
- 🔍 Advanced Search: Filter by category, AI model, date range, and popularity
- ❤️ Social Interactions: Like, comment, and fork interesting prompts
- 👤 User Profiles: Showcase your created and favorited prompt cards
- 📱 Responsive Design: Beautiful UI that works on all devices
- 🔐 Secure Authentication: Powered by Supabase Auth
- ♾️ Infinite Scroll: Smooth browsing experience with optimized loading
- Framework: Next.js 15 with App Router
- Language: TypeScript for type safety
- API: tRPC for end-to-end type safety
- Database: Prisma with PostgreSQL
- Authentication: Supabase Auth
- Styling: Tailwind CSS + shadcn/ui
- Deployment: Vercel
src/
├── app/ # Next.js App Router pages
├── components/ # React components organized by feature
├── server/api/ # tRPC API routes and procedures
├── lib/ # Utilities and configurations
└── trpc/ # tRPC client setup
prisma/
├── schema.prisma # Database schema
├── migrations/ # Database migrations
└── seed.ts # Database seeding
- Node.js 18+
- PostgreSQL database
- Supabase account (for auth and hosting)
-
Clone the repository
git clone <repository-url> cd promptmint
-
Install dependencies
npm install
-
Set up environment variables
cp .env.example .env
Fill in your database and Supabase credentials.
-
Start the database (if using local PostgreSQL)
./start-database.sh
-
Set up the database
npm run db:generate npm run db:seed
-
Start the development server
npm run dev
Visit http://localhost:3000 to see the application.
npm run dev- Start development servernpm run build- Build for productionnpm run start- Start production servernpm run preview- Build and start production server
npm run check- Run linting and type checkingnpm run lint- Run ESLintnpm run typecheck- Run TypeScript type checkingnpm run format:check- Check code formattingnpm run format:write- Format code with Prettier
npm run db:generate- Generate Prisma client and run migrationsnpm run db:push- Push schema changes to databasenpm run db:seed- Seed database with initial datanpm run db:studio- Open Prisma Studio
Cards automatically gain rarity based on community engagement:
- Bronze: 0-19 likes
- Silver: 20-49 likes
- Gold: 50-99 likes
- Platinum: 100+ likes
Create derivative prompts while maintaining lineage tracking, encouraging iteration and improvement of existing prompts.
Filter prompts by multiple criteria including category, AI model, date range, and popularity metrics.
The application is optimized for deployment on Vercel:
- Connect your repository to Vercel
- Set environment variables in the Vercel dashboard
- Deploy - Vercel will automatically build and deploy your application
For other deployment options, see the T3 Stack deployment guide.
- T3 Stack Documentation
- Next.js Documentation
- tRPC Documentation
- Prisma Documentation
- Tailwind CSS Documentation
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.