Scripts2026年5月30日·1 分钟阅读

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.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
Create T3 App
直接安装命令
npx -y tokrepo@latest install cbd270d4-5c64-11f1-9bc6-00163e2b0d79 --target codex

先 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

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产