Cette page est affichée en anglais. Une traduction française est en cours.
ScriptsMay 30, 2026·3 min de lecture

Create T3 App — Full-Stack TypeScript Starter with Next.js

The best way to scaffold a full-stack, type-safe Next.js application with tRPC, Prisma, NextAuth.js, and Tailwind CSS baked in from the start.

Prêt pour agents

Installation agent prête

Cet actif peut être installé après choix du runtime, vérification du plan et exécution de la commande adaptée.

Native · 98/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Established
Point d'entrée
Create T3 App
Commande d'installation directe
npx -y tokrepo@latest install cbd270d4-5c64-11f1-9bc6-00163e2b0d79 --target codex

À exécuter après confirmation du plan en dry-run.

Introduction

Create T3 App is an interactive CLI that scaffolds a production-ready Next.js project with a curated, type-safe stack. It was born from the T3 Stack philosophy: keep things simple, modular, and fully typed end-to-end.

What Create T3 App Does

  • Scaffolds a Next.js project with optional tRPC, Prisma, NextAuth.js, and Tailwind CSS
  • Generates a fully typed codebase from database to UI with zero boilerplate friction
  • Provides an interactive CLI that lets you pick only the pieces you need
  • Sets up environment variable validation with Zod out of the box
  • Configures TypeScript strict mode and ESLint with sensible defaults

Architecture Overview

The CLI runs as a single npx command that prompts for stack choices, then copies and configures template files accordingly. Each optional integration (tRPC, Prisma, NextAuth, Tailwind) is a composable add-on layered onto the base Next.js template. The result is a monolithic Next.js app where the API layer lives in tRPC routers, the ORM is Prisma, and auth flows through NextAuth.js — all sharing TypeScript types.

Self-Hosting & Configuration

  • Run npm create t3-app@latest and follow the interactive prompts
  • Choose your package manager: npm, yarn, pnpm, or bun
  • Select integrations: tRPC for end-to-end type-safe APIs, Prisma for database access
  • Environment variables are validated at build time via src/env.js using Zod schemas
  • Deploy to Vercel, Railway, or any Node.js host; configure DATABASE_URL and auth secrets

Key Features

  • End-to-end type safety from database schema to React components
  • Modular opt-in architecture: only install what you choose
  • Built-in env validation prevents runtime crashes from missing config
  • First-class App Router support with React Server Components
  • Active community with extensive documentation and tutorials

Comparison with Similar Tools

  • Next.js CLI — bare scaffold without opinionated integrations; T3 adds a curated full-stack layer
  • Blitz.js — similar full-stack approach but uses its own RPC layer; T3 relies on tRPC
  • RedwoodJS — batteries-included React + GraphQL framework; T3 is lighter and Next.js-native
  • create-next-app — official Next.js starter; T3 extends it with Prisma, tRPC, and auth
  • SvelteKit — different framework ecosystem; T3 is React/Next.js-specific

FAQ

Q: Do I have to use every integration? A: No. The CLI lets you pick only what you need — you can skip tRPC, Prisma, or any other add-on.

Q: Does it support the Next.js App Router? A: Yes, Create T3 App supports both the App Router and Pages Router.

Q: Can I add integrations after scaffolding? A: The CLI is designed for initial setup, but each integration can be added manually following the T3 docs.

Q: Is it production-ready? A: Yes. The generated project includes TypeScript strict mode, ESLint, env validation, and is deployed by thousands of teams.

Sources

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires