create-t3-app

启动全栈、类型安全 Next.js 应用程序的最佳方法。「The best way to start a full-stack, typesafe Next.js app」

Github星跟踪图

PRs-Welcome Discord NPM version
Downloads

Table of contents

  • The T3 Stack
  • T3 Axioms
  • Getting Started
  • Community
  • Contributors

The "T3 Stack" is a web development stack made by Theo focused on simplicity, modularity, and full-stack typesafety. It consists of:

So... what is create-t3-app? A template?

Kind of? create-t3-app is a CLI built by seasoned T3 Stack devs to streamline the setup of a modular T3 Stack app. This means each piece is optional, and the "template" is generated based on your specific needs.

After countless projects and many years on this tech, we have lots of opinions and insights. We’ve done our best to encode them into this CLI.

This is NOT an all-inclusive template. We expect you to bring your own libraries that solve the needs of YOUR application. While we don’t want to prescribe solutions to more specific problems like state management and deployment, we do have some recommendations listed here.

We'll be frank - this is an opinionated project. We share a handful of core beliefs around building and we treat them as the basis for our decisions.

1. Solve Problems

It's easy to fall into the trap of "adding everything" - we explicitly don't want to do that. Everything added to create-t3-app should solve a specific problem that exists within the core technologies included. This means we won't add things like state libraries (zustand, redux) but we will add things like NextAuth.js and integrate Prisma and tRPC for you.

2. Bleed Responsibly

We love our bleeding edge tech. The amount of speed and, honestly, fun that comes out of new shit is really cool. We think it's important to bleed responsibly, using riskier tech in the less risky parts. This means we wouldn't ⛔️ bet on risky new database tech (SQL is great!). But we happily ✅ bet on tRPC since it's just functions that are trivial to move off.

3. Typesafety Isn't Optional

The stated goal of create-t3-app is to provide the quickest way to start a new full-stack, typesafe web application. We take typesafety seriously in these parts as it improves our productivity and helps us ship fewer bugs. Any decision that compromises the typesafe nature of create-t3-app is a decision that should be made in a different project.

To scaffold an app using create-t3-app, run any of the following three commands and answer the command prompt questions:

npm

npm create t3-app@latest

yarn

yarn create t3-app

pnpm

pnpm create t3-app@latest

For more advanced usage, check out the CLI docs.

For help, discussion about best practices, or any other conversation that would benefit create-t3-app:

Join the T3 Discord Server

We 💖 contributors! Feel free to contribute to this project but please read the Contributing Guidelines before opening an issue or PR so you understand the branching strategy and local development environment. We also welcome you to join our Discord community for either support or contributing guidance.

主要指标

概览
名称与所有者t3-oss/create-t3-app
主编程语言TypeScript
编程语言 (语言数: 5)
平台
许可证MIT License
所有者活动
创建于2022-05-24 13:31:01
推送于2025-04-14 15:49:40
最后一次提交
发布数139
最新版本名称create-t3-app@7.39.3 (发布于 2025-04-03 18:11:38)
第一版名称v5.0.0 (发布于 2022-07-16 22:12:36)
用户参与
星数27.1k
关注者数102
派生数1.3k
提交数1.4k
已启用问题?
问题数728
打开的问题数53
拉请求数1112
打开的拉请求数23
关闭的拉请求数253
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?