ScriptsJul 20, 2026·3 min read

Create Better T Stack — TypeScript Full-Stack Project Scaffolding CLI

A modern CLI that scaffolds end-to-end type-safe TypeScript projects with best-practice defaults, supporting Hono, Drizzle, tRPC, Expo, and other popular tools.

Agent ready

Safe staging for this asset

This asset is staged first. The copied prompt tells the agent to inspect the staged files and ask before activating scripts, MCP config, or global config.

Stage only · 29/100Policy: stage
Agent surface
Any MCP/CLI agent
Kind
CLI Tool
Install
Single
Trust
Trust: Established
Entrypoint
Create Better T Stack
Safe staging command
npx -y tokrepo@latest install 30372952-8419-11f1-9bc6-00163e2b0d79 --target codex

Stages files first; activation requires review of the staged README and plan.

Introduction

Create Better T Stack is an opinionated project scaffolding CLI that generates a complete, type-safe TypeScript project in seconds. It lets you pick from curated combinations of backend frameworks, databases, auth solutions, and deployment targets, all pre-wired with end-to-end type safety.

What Create Better T Stack Does

  • Scaffold a full-stack TypeScript monorepo with interactive prompts
  • Wire up backend (Hono, Express), database (Drizzle, Prisma), and auth (Better Auth)
  • Generate API routes with end-to-end type safety via tRPC or Hono RPC
  • Configure deployment targets for Vercel, Railway, or Docker
  • Set up a mobile app with Expo when selected

Architecture Overview

The CLI is built with clack/prompts for the interactive experience and uses file templates with conditional includes based on user selections. It generates a Turborepo monorepo with separate packages for the web frontend, API server, shared types, and optionally a mobile app. All packages share TypeScript configuration and type definitions.

Self-Hosting & Configuration

  • Run via npx with no global installation required
  • Choose your runtime: Bun or Node.js
  • Select a frontend framework: React with TanStack Router, SvelteKit, or SolidStart
  • Pick a database: SQLite, PostgreSQL, or MySQL with Drizzle or Prisma ORM
  • Enable optional addons like Tailwind CSS, shadcn/ui, and Fumadocs

Key Features

  • Interactive CLI with beautiful terminal UI powered by clack
  • End-to-end type safety from database schema to frontend components
  • Monorepo structure with Turborepo for efficient builds across packages
  • Pre-configured linting, formatting, and CI/CD templates
  • Expo integration for building cross-platform mobile apps from the same codebase

Comparison with Similar Tools

  • create-t3-app — focuses on Next.js; Better T Stack supports multiple frontend frameworks
  • create-next-app — Next.js only with minimal setup; Better T Stack provides full-stack scaffolding
  • Projen — generates project config files; Better T Stack generates a complete working application
  • Yeoman — generic scaffolding; Better T Stack is purpose-built for type-safe TypeScript stacks

FAQ

Q: Can I use it without a monorepo? A: The generated project uses Turborepo by default for monorepo management. Single-package mode is not currently supported.

Q: Which databases are supported? A: SQLite, PostgreSQL, and MySQL with either Drizzle ORM or Prisma as the query layer.

Q: Can I add features after scaffolding? A: The CLI generates standard code, so you can modify and extend it freely. There is no lock-in to the scaffolding tool.

Q: Does it support serverless deployment? A: Yes. Vercel and similar platforms are supported out of the box with the appropriate adapter configuration.

Sources

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets