Skip to Content
⭐ CraftJS is open source. Star on GitHub →
DocsIntroduction

Welcome to CraftJS

CraftJS

100% 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.

Tech Stack

CategoryTechnology
FrameworkNext.js 16 with App Router & Turbopack
LanguageTypeScript 5.9
StylingTailwind CSS v4 + shadcn/ui
DatabaseNeon PostgreSQL + Drizzle ORM
AuthenticationBetter Auth
AIVercel AI SDK 6 (OpenAI, Anthropic, Google)
PaymentsDodo Payments
EmailResend + React Email
CacheUpstash Redis
StorageCloudflare R2
Background JobsTrigger.dev
AnalyticsPostHog
SupportTawk.to
DeploymentVercel

Quick Start

Create a new project

npx create-craft-app my-app cd my-app

Set up environment variables

cp .env.example .env

Set up the database

pnpm db:push

Run the development server

pnpm dev

Open 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

📧 Email

  • 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

License

CraftJS is open source and available under the MIT License .


Built with ❤️ by

@sudheerdotai

Last updated on