Introduction
Create T3 App is an interactive CLI that scaffolds a fully typed Next.js application with a curated set of libraries known as the T3 Stack. It eliminates hours of boilerplate setup by integrating TypeScript, tRPC, Prisma, Tailwind CSS, and NextAuth.js into a single cohesive starting point.
What Create T3 App Does
- Generates a Next.js project with strict TypeScript configuration out of the box
- Optionally adds tRPC for end-to-end type-safe API routes without code generation
- Integrates Prisma ORM with a ready-to-use schema and database client
- Pre-configures Tailwind CSS with sensible defaults and purge settings
- Sets up NextAuth.js for OAuth and credential-based authentication
Architecture Overview
The CLI is a Node.js script that prompts the user to select which T3 Stack pieces to include, then copies the appropriate template files, merges package.json dependencies, and runs the package manager install. Each optional library has its own template directory so combinations compose cleanly without conflicts.
Self-Hosting & Configuration
- Run the scaffolder with npx, pnpm dlx, or yarn create — no global install needed
- Choose between npm, pnpm, yarn, or bun as your package manager during setup
- Set DATABASE_URL in .env to point Prisma at PostgreSQL, MySQL, or SQLite
- Configure OAuth providers in the NextAuth.js config file for social login
- Deploy the resulting app to Vercel, Railway, or any Node.js host with zero changes
Key Features
- Fully interactive CLI with sensible defaults for quick bootstrapping
- Every selected library is pre-wired so imports and types work immediately
- Follows the T3 axiom of typesafety from database to frontend
- Community-maintained with frequent updates tracking latest Next.js releases
- Minimal footprint — only installs what you choose, nothing extra
Comparison with Similar Tools
- Next.js create-next-app — bare Next.js scaffold; T3 adds the full data and auth stack on top
- RedwoodJS — opinionated full-stack framework with its own CLI; T3 stays closer to vanilla Next.js
- Blitz.js — zero-API layer on Next.js; T3 uses tRPC for a similar DX with more flexibility
- SvelteKit — different UI framework entirely; T3 is React/Next.js-centric
FAQ
Q: Can I remove a library after scaffolding? A: Yes. Each integration is isolated in its own files, so deleting the relevant config and imports cleanly removes it.
Q: Does it support the App Router? A: Yes. Recent versions default to the Next.js App Router with full tRPC and NextAuth.js support.
Q: Is it only for new projects? A: It is designed for greenfield apps. For existing projects, you can reference the generated code to add T3 Stack libraries manually.
Q: What databases work with the Prisma integration? A: PostgreSQL, MySQL, SQLite, SQL Server, and CockroachDB are all supported through Prisma.