create-better-t-stack Documentation

A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with best practices and customizable configurations

5,349 stars TypeScript TypeScript 1 file ยท ~1,654 tokens #better-auth#bun#clack-prompt#cli#drizzle-orm#expo#fumadocs#hono
RAW Doc

Docker & Self-Hosted Deployment Verified OCI

Deploy create-better-t-stack on any server, homelab, or cloud container platform.

1-Click Terminal Command
bash (docker run)
docker run -d --name create-better-t-stack -p 3001:3001 --restart always amanvarshney01/create-better-t-stack:latest

Technical Documentation: AmanVarshney01/create-better-t-stack

โ„น๏ธ Provenance: Hybrid Fusion: AmanVarshney01/create-better-t-stack + AmanVarshney01/docs ยท CodeWiki Reference ยท Recency: Active (< 180 days)

1. Project Overview & Quickstart (AmanVarshney01/create-better-t-stack)

Better-T-Stack

A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with best practices and customizable configurations

Sponsors

https://github.com/user-attachments/assets/87b541ea-9d4d-4734-b383-00784b0b43ff

Philosophy

  • Roll your own stack: you pick only the parts you need, nothing extra.
  • Minimal templates: bare-bones scaffolds with zero bloat.
  • Latest dependencies: always use current, stable versions by default.
  • Free and open source: forever.

Quick Start

bash
# Using bun (recommended)
bun create better-t-stack@latest

# Using pnpm
pnpm create better-t-stack@latest

# Using npm
npx create-better-t-stack@latest

Claude Code plugin

Want your AI assistant to scaffold and extend projects with Better-T-Stack? Install the plugin and it will plan a valid stack and generate it through the bundled MCP server instead of hand-rolling boilerplate.

bash
/plugin marketplace add AmanVarshney01/create-better-t-stack
/plugin install better-t-stack@better-t-stack

Then ask: "create a fullstack app with Next, Hono, Postgres and Better Auth", or run /better-t-stack:new <description>. See plugin/ and the Agent Workflows docs.

Features

  • Frontend: React (TanStack Router, React Router, TanStack Start), Next.js, Nuxt, Svelte, Solid, Astro, React Native (Bare, NativeWind, Unistyles), or none
  • Backend: Hono, Express, Fastify, Elysia, Self (fullstack web app), Convex, or none
  • API: tRPC or oRPC (or none)
  • Runtime: Bun, Node.js, or Cloudflare Workers
  • Databases: SQLite, PostgreSQL, MySQL, MongoDB (or none)
  • ORMs: Drizzle, Prisma, Mongoose (or none)
  • Auth: Better Auth or Clerk (optional)
  • Addons: Turborepo, Nx, PWA, Tauri, Electrobun, Biome, Lefthook, Husky, Starlight, Fumadocs, Ultracite, Oxlint, MCP, OpenTUI, WXT, Skills
  • Examples: Todo, AI
  • DB Setup: Turso, Neon, Supabase, Prisma PostgreSQL, MongoDB Atlas, Cloudflare D1, Docker
  • Web Deploy: Cloudflare Workers

Type safety end-to-end, clean monorepo layout, and zero lock-in: you choose only what you need.

Repository Structure

This repository is organized as a monorepo containing:

  • CLI: apps/cli - The scaffolding CLI tool
  • Documentation: apps/web - Official website and documentation
  • Plugin: plugin - Claude Code plugin (MCP server + skills + commands + agent)

Documentation

Visit better-t-stack.dev for full documentation, guides, and examples. You can also use the visual Stack Builder at https://better-t-stack.dev/new to generate a command for your stack.

Development

bash
# Clone the repository
git clone https://github.com/AmanVarshney01/create-better-t-stack.git

# Install dependencies
bun install

# Start CLI development
bun dev:cli

# Start website development
bun dev:web

Want to contribute?

Please read the Contribution Guide first and open an issue before starting new features to ensure alignment with project goals.

Star History

2. Official Technical Reference & Guides (AmanVarshney01/docs)

Astro Docs

To all who come to this happy place: welcome.

This is the repo for docs.astro.build.
This repo contains all the source code we use to build our docs site.


We are Astro

Astro is an all-in-one web framework for building fast, content-focused websites.
We want everyone to be successful building sites, and that means helping everyone understand how Astro works.

You are Awesome

You can also help make the docs awesome.
Your feedback is welcome.
Your writing, editing, translating, designing, and developing skills are welcome.
You being a part of our community is welcome.

Chat with Us

You can learn more about Astro, get support, and meet other devs in our Discord community.

Raise an Issue

Is something missing?
Is something confusing?
Is something wrong?

Creating a new Issue puts a problem on our radar!

See if your issue has already been reported, and if not, create a new one.

Share an Idea

Could something be better?
Want to share an idea with us?

Discussions are threads where you can offer feedback on things that might not exactly be problems to be fixed but are ideas to be explored.

Join the Docs Discussions where we brainstorm, ask questions, share hopes and dreams...

Make a Fix or Contribution

Did you find a typo, a broken link, or another item with an obvious quick fix?

If you can see what the problem is, and you know how to fix it, then you can make a PR (pull request) with the change and contribute to the docs repo yourself.

Want to make a larger contribution? Please see CONTRIBUTING.md first!

Translate a Page

Speak another language natively?

Join our i18n gang on Discord or jump into the PRs to help with reviewing existing draft translations!

Check out the dedicated i18n guide for more details.

Translation progress

Next Steps

--- METRICS ---