Configs2026年7月6日·1 分钟阅读

Create T3 App — Full-Stack TypeScript Starter with Next.js, tRPC & Prisma

An interactive CLI that scaffolds a production-ready full-stack TypeScript application with a curated stack of Next.js, tRPC, Tailwind CSS, Prisma, and NextAuth.js.

Agent 就绪

Agent 可直接安装

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

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

先 dry-run 确认安装计划,再运行此命令。

Introduction

Create T3 App is an interactive CLI that generates a full-stack TypeScript project following the T3 Stack philosophy: simplicity, modularity, and end-to-end type safety. It lets developers pick from a curated set of libraries rather than starting from scratch or wading through boilerplate.

What Create T3 App Does

  • Scaffolds a Next.js project with TypeScript configured out of the box
  • Optionally adds tRPC for end-to-end typesafe APIs without code generation
  • Integrates Prisma ORM for database access with type-safe queries
  • Configures NextAuth.js for authentication with multiple providers
  • Sets up Tailwind CSS with sensible defaults and dark mode support

Architecture Overview

The CLI prompts the user for which packages to include, then assembles a project from composable template partials. Each optional library (tRPC, Prisma, NextAuth, Tailwind) has its own partial that merges cleanly with the base Next.js template. The result is a single Next.js app where the API layer uses tRPC routers, the database layer uses Prisma, and authentication flows through NextAuth session providers.

Self-Hosting & Configuration

  • Run the CLI with npx, npm create, yarn create, or pnpm create
  • Select packages interactively or pass flags like --tailwind --trpc --prisma
  • Configure environment variables in the generated .env file for database URL and auth secrets
  • Deploy to Vercel, Railway, or any Node.js host with zero additional config
  • The generated project includes a ready-to-use Docker configuration for self-hosting

Key Features

  • Fully interactive scaffolding with sensible defaults at every step
  • End-to-end type safety from database schema to frontend components
  • Modular architecture where every optional package can be excluded
  • Community-maintained documentation with deployment guides for major platforms
  • Regular updates tracking the latest stable versions of all included libraries

Comparison with Similar Tools

  • create-next-app — official Next.js starter; minimal, no opinionated stack choices
  • Blitz.js — full-stack React framework with built-in auth and RPC; heavier abstraction
  • RedwoodJS — full-stack JS framework with GraphQL API layer; different API paradigm
  • SvelteKit — full-stack Svelte framework; different frontend ecosystem entirely
  • Wasp — DSL-based full-stack framework; generates React + Node code from a config file

FAQ

Q: Do I have to use all the packages in the T3 Stack? A: No. The CLI lets you pick only what you need. A valid T3 app can be just Next.js with Tailwind.

Q: What databases does the Prisma integration support? A: Prisma supports PostgreSQL, MySQL, SQLite, SQL Server, MongoDB, and CockroachDB. Configure the provider in schema.prisma.

Q: Can I use the App Router instead of Pages Router? A: Yes. Recent versions of Create T3 App default to the Next.js App Router with full support for server components.

Q: Is this suitable for production applications? A: Yes. The generated code follows production patterns including environment variable validation, strict TypeScript config, and proper error handling.

Sources

讨论

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

相关资产