Welcome to CraftJS
CraftJS100% Open Source
A free and open-source Next.js boilerplate to craft AI apps faster 🚀
Why CraftJS?
CraftJS provides everything you need to build production-ready AI applications with Next.js. 100% free and open source — no hidden costs, no premium tiers. Stop wasting time on boilerplate and focus on what makes your app unique.
OpenAI, Anthropic, and Google AI models with Vercel AI SDK 6
🤖 Multi-Provider AIEmail/password + OAuth (Google, GitHub) with Better Auth
🔐 AuthenticationPostgreSQL with Neon serverless + Drizzle ORM
💾 DatabaseSubscription billing with Dodo Payments
💳 PaymentsReact Email templates with Resend
📧 EmailsTrigger.dev for async tasks
🔄 Background JobsTech Stack
| Category | Technology |
|---|---|
| Framework | Next.js 16 with App Router & Turbopack |
| Language | TypeScript 5.9 |
| Styling | Tailwind CSS v4 + shadcn/ui |
| Database | Neon PostgreSQL + Drizzle ORM |
| Authentication | Better Auth |
| AI | Vercel AI SDK 6 (OpenAI, Anthropic, Google) |
| Payments | Dodo Payments |
| Resend + React Email | |
| Cache | Upstash Redis |
| Storage | Cloudflare R2 |
| Background Jobs | Trigger.dev |
| Analytics | PostHog |
| Support | Tawk.to |
| Deployment | Vercel |
Quick Start
Create a new project
npx create-craft-app my-app
cd my-appSet up environment variables
cp .env.example .envSet up the database
pnpm db:pushRun the development server
pnpm devOpen http://localhost:3000 to see your app.
Check out the Installation Guide for detailed setup instructions.
Features at a Glance
🤖 AI Integration
- Multiple AI providers (OpenAI, Anthropic, Google)
- Streaming responses
- Tool calling support
- Rate limiting per user
- Usage tracking
🔐 Authentication
- Email/password with email verification
- OAuth providers (Google, GitHub)
- Secure cookie-based sessions
- Protected routes with proxy middleware
💾 Database
- Serverless PostgreSQL with Neon
- Type-safe queries with Drizzle ORM
- Automatic migrations
- Visual database browser with Drizzle Studio
💳 Payments
- Subscription billing with Dodo Payments
- Pre-configured plans (Free, Pro, Enterprise)
- Webhook handling
- Usage-based billing support
- Beautiful email templates with React Email
- Transactional emails via Resend
- Welcome, verification, and notification emails
⚡ Performance
- Redis caching with Upstash
- Rate limiting
- Background job processing
- Optimized for Vercel Edge
Vibe Code Faster with craft.fast
Want to build even faster? Check out craft.fast — our vibe coding tools to build AI apps at lightning speed with natural language prompts.
Community
Ask questions and share ideas
GitHub DiscussionsFound a bug? Let us know
Report IssuesLearn how to contribute
ContributingLicense
CraftJS is open source and available under the MIT License .
Built with ❤️ by
@sudheerdotai