A production-ready SaaS platform for AI-powered code generation. Built with Next.js, TypeScript, and Stripe.
✨ Landing Page - Elegant dark design with animations 💳 Stripe Integration - Complete payment system with subscriptions 🤖 AI Chat Interface - Superior code generation with "mysterious" prompts 📧 Email System - Automated emails with Resend 🔐 Authentication - Google OAuth ready with NextAuth 🎨 Beautiful UI - Custom shadcn/ui components 📱 Responsive - Works perfectly on all devices 🚀 SEO Optimized - Meta tags, sitemap, and more
- Framework: Next.js 15 with App Router
- Language: TypeScript
- Styling: Tailwind CSS + shadcn/ui
- Payments: Stripe
- Email: Resend + React Email
- Auth: NextAuth.js
- AI: OpenAI / Anthropic / Together AI (Llama)
- Clone and Install
git clone <your-repo>
cd aiprog
bun install- Environment Setup
cp .env.example .env.local
# Fill in your API keys- Run Development Server
bun run dev- Create account at stripe.com
- Get API keys from Dashboard
- Create products and prices
- Add webhook endpoint:
/api/webhook/stripe - Update
.env.localwith keys
- Sign up at resend.com
- Get API key
- Verify your domain
- Update
.env.local
Choose one or more:
- OpenAI: Get key from platform.openai.com
- Anthropic: Get key from console.anthropic.com
- Together AI: Get key from together.ai (for Llama)
- Go to Google Cloud Console
- Create OAuth 2.0 credentials
- Add authorized redirect:
http://localhost:3000/api/auth/callback/google - Update
.env.local
aiprog/
├── src/
│ ├── app/
│ │ ├── api/ # API routes
│ │ ├── dashboard/ # Dashboard page
│ │ ├── login/ # Auth pages
│ │ ├── pricing/ # Pricing page
│ │ └── page.tsx # Landing page
│ ├── components/
│ │ └── ui/ # shadcn components
│ └── emails/ # Email templates
├── .env.example
└── README.md
The AI is configured to be vague about:
- Token usage and limits
- Exact time estimates
- Internal implementation details
But superior at:
- Code generation with validation
- Error-free implementations
- Complete, runnable solutions
See: src/app/api/chat/route.ts
- Free: 5 requests/day, basic features
- Pro: Unlimited requests, all AI models, $29/month
- Enterprise: Custom solutions, dedicated support
# Build command
bun run build
# Output directory
.nextAdd all .env.local variables to your hosting platform.
This is a template project. Feel free to customize for your needs!
MIT