A modern AI-powered SaaS application built with Next.js 13, offering multiple AI content generation tools with a freemium subscription model.
- AI Conversation - Chat with an AI assistant powered by Google Gemini
- Image Generation - Create images from text prompts using Flux Schnell
- Code Generation - Generate code snippets powered by Google Gemini
- Music Generation - Create music and audio from text descriptions
- Video Generation - Generate videos from text prompts
- Free Trial - 5 free generations before requiring a subscription
- Pro Subscription - Unlimited access via Stripe-powered payments ($20/mo)
- Authentication - Secure user authentication with Clerk
- Live Chat Support - Integrated Crisp chat widget
| Category | Technology |
|---|---|
| Framework | Next.js 13 (App Router) |
| Language | TypeScript |
| Styling | Tailwind CSS |
| UI Components | Radix UI, Lucide Icons |
| Authentication | Clerk |
| Database | MySQL + Prisma ORM |
| AI Services | Google Gemini API, Replicate API |
| Payments | Stripe |
| State Management | Zustand |
| Form Handling | React Hook Form + Zod |
- Node.js 18+
- MySQL database (or use PlanetScale)
- Google Gemini API Key (free)
- Replicate API Token
- Clerk Account
- Stripe Account
git clone https://github.com/deepanshu-prog/Curious.git
cd Curiousnpm installCopy the example environment file and fill in your values:
cp .env.example .envSee .env.example for all required variables.
npx prisma generate
npx prisma db pushnpm run devOpen http://localhost:3000 in your browser.
├── app/
│ ├── (auth)/ # Sign-in & sign-up pages
│ ├── (dashboard)/ # Protected dashboard routes
│ │ └── (route)/
│ │ ├── conversation/
│ │ ├── image/
│ │ ├── code/
│ │ ├── music/
│ │ ├── video/
│ │ └── settings/
│ ├── (landing)/ # Public landing page
│ └── api/ # API routes for AI services, Stripe, webhooks
├── components/ # Reusable UI components
├── hooks/ # Custom React hooks
├── lib/ # Utility functions, Prisma client, Stripe config
├── prisma/ # Database schema
└── public/ # Static assets
| Endpoint | Description |
|---|---|
POST /api/conversation |
AI chat completions |
POST /api/image |
Image generation |
POST /api/code |
Code generation |
POST /api/music |
Music generation via Replicate |
POST /api/video |
Video generation via Replicate |
GET /api/stripe |
Stripe checkout session |
POST /api/webhook |
Stripe webhook handler |
Deploy to Vercel with one click:
Make sure to add all environment variables in your Vercel project settings.
This project is open source and available under the MIT License.