Scripts2026年7月7日·1 分钟阅读

Create T3 App — The Best Way to Start a Full-Stack TypeScript Project

Interactive CLI that scaffolds a production-ready Next.js app with TypeScript, tRPC, Prisma, Tailwind CSS, and NextAuth.js pre-configured and integrated.

Agent 就绪

Agent 可直接安装

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

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

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

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.

Sources

讨论

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