create-t3-app README

The project's README from github.com/t3-oss/create-t3-app. As one markdown file: README.md.

Logo for T3

create-t3-app

Interactive CLI to start a full-stack, typesafe Next.js app.

Get started with the T3 Stack by running npm create t3-app@latest

PRs-Welcome Discord NPM version Downloads

Video thumbnail of Theo with an indecipherable expression on his face

Watch Theo's overview on Youtube here

Table of contents

The T3 Stack

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.

T3 Axioms

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.

Getting Started

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

npm

npm create t3-app@latest

yarn

yarn create t3-app

pnpm

pnpm create t3-app@latest

bun

bun create t3-app@latest

For more advanced usage, check out the CLI docs.

Community

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

Join the T3 Discord Server

Contributors

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.

A table of avatars from the project's contributors

Made with contrib.rocks

Powered by vercel

create-t3-app (t3-oss/create-t3-app)

Searching Database…

What is this?create-t3-app is an interactive CLI that scaffolds a full-stack, typesafe Next.js app built on the T3 Stack — a web dev stack focused on simplicity, modularity, and full-stack typesafety.
Is it a ready-made template or a tool I run?It's a CLI, not a fixed template: every piece of the stack is optional, and the app is generated based on your specific needs as you answer its prompts.
How do I start a new app with it?Run npm create t3-app@latest — yarn, pnpm and bun variants are supported too — and answer the command prompt questions.
What do I need to have installed before running it?Node.js 20 or newer (the repo's engines requirement) and any one package manager: npm, yarn, pnpm, or bun.
What's the catch — does it lock me into its choices?It's openly opinionated: it won't add everything — no state libraries like zustand or redux — and it's a starting point, not an all-inclusive template; you're expected to bring your own libraries.
Does it matter if I'm on macOS, Windows, or Linux?No — it's a command-line tool that runs anywhere Node.js runs, so macOS, Windows, and Linux all work.
What actually ends up in the generated app?Whichever T3 Stack pieces you opt into: Next.js, tRPC, Tailwind CSS, TypeScript, Prisma or Drizzle for the database, and NextAuth.js for auth.
Why isn't a state management library like Redux included?By design. The T3 axioms say everything added must solve a problem within the core technologies — state libraries like zustand and redux are explicitly out, while NextAuth.js and Prisma/tRPC integration are in.
How does it feel about bleeding-edge tech?It 'bleeds responsibly': it won't bet on risky new database tech — SQL via Prisma or Drizzle is the safe pick — but happily adopts tRPC, since it's just functions that are trivial to move off.
Does it tell me how to deploy the finished app?Not prescriptively. Like state management, deployment is left to you, though the README does link the team's recommendations.
Creator
t3-oss
Size
8.3 MB
Stars
29.2K
Age
4y
Commits · 90 Days