# Create a new project (one line)
npx create-tanstack-hono-start@latest my-app && cd my-app && npm install && npm run dev
# Frontend: http://localhost:3000
# Backend: http://localhost:8000This will scaffold a working fullstack app you can open immediately. If you prefer a faster demo, check the demo.gif at the repo root.
Get started with a tiny contribution in 3 steps:
- Pick a task from
GOOD_FIRST_ISSUES.mdor open an issue describing your idea. - Fork, create a branch
fix/your-issue, implement and runnpm run test. - Open a PR, reference the issue, and add the
good first issuelabel if applicable.
We welcome all improvements β documentation, tests, or small bug fixes are perfect first PRs.
β‘ The fastest way to bootstrap modern fullstack applications with React 19, TanStack Router, Hono OpenAPI, and Mastra AI
Create a modern fullstack app in seconds with React 19, TanStack Router, Hono OpenAPI, and AI integration!
- π― Type-Safe: End-to-end TypeScript from frontend to backend
- β‘ Lightning Fast: Powered by Vite and Hono for optimal performance
- π§ͺ Test Ready: Vitest setup with modern testing practices
- π¨ Beautiful: Tailwind CSS with responsive design
- π§ Developer Experience: Hot reloading, ESLint, Prettier
- π Production Ready: CI/CD with GitHub Actions, Docker support
- π¦ Monorepo: Clean workspace organization
# Create a new project (recommended)
npx create-tanstack-hono-start@latest my-awesome-app
# Or with npm
npm create tanstack-hono-start@latest my-awesome-app
# Or with yarn
yarn create tanstack-hono-start@latest my-awesome-app- π React 19 - Latest React with improved performance and features
- π Hono OpenAPI - Auto-generated API documentation with Swagger UI
- π€ Mastra AI - Built-in AI assistant capabilities
- π End-to-End Type Safety - Shared Zod schemas between frontend/backend
- β‘ React Query - Advanced server state management
- π¨ Modern UI - Beautiful Tailwind components out of the box
- βοΈ React 19 - Latest features and performance improvements
- π£οΈ TanStack Router - Type-safe routing with file-based structure
- β‘ Vite - Lightning-fast development and build
- π¨ Tailwind CSS - Beautiful, responsive UI components
- π React Query - Advanced data fetching and caching
- π§ͺ Vitest - Modern testing framework
- π₯ Hono - Ultra-fast web framework
- π OpenAPI/Swagger - Auto-generated API documentation
- π‘οΈ Zod Schemas - Runtime validation and type safety
- π€ Mastra AI - Built-in AI assistant endpoints
- π Logging & Error Handling - Production-ready setup
- π Full TypeScript - End-to-end type safety
GET /api/users- User management with type validationPOST /api/users- Create users with Zod schema validationPOST /api/ai/chat- AI assistant with Mastra integrationGET /ui- Interactive Swagger UI documentationGET /doc- OpenAPI JSON specification
npx create-tanstack-hono-start my-app --template basicPerfect for:
- π Learning React and fullstack development
- π Small to medium projects
- π Understanding each piece as you add it
What's included:
- React 19 + TanStack Router frontend
- Hono API with OpenAPI/Swagger
- TypeScript end-to-end
- Choose your features: Vitest, Tailwind, Auth, Database, ESLint, CI/CD, Docker
npx create-tanstack-hono-start my-app --template advancedPerfect for:
- πΌ Production-ready applications
- β‘ Experienced developers who want everything
- π― Getting started immediately without setup
What's included (ALL features):
- β React 19 + TanStack Router + Auth
- β Hono API + Database (PostgreSQL + Drizzle ORM)
- β User authentication system (register/login)
- β Testing setup (Vitest + React Testing Library)
- β Code quality (ESLint + Prettier)
- β CI/CD (GitHub Actions)
- β Docker containerization
- β Tailwind CSS styling
# Interactive mode (recommended)
npx create-tanstack-hono-start
# Skip prompts with defaults
npx create-tanstack-hono-start my-app --yes
# Specify template
npx create-tanstack-hono-start my-app --template basic
# List available templates
npx create-tanstack-hono-start listWhen you run npx create-tanstack-hono-start my-app, you'll get:
my-app/ # β Your new project
βββ apps/
β βββ web/ # React app with TanStack Router
β βββ api/ # Hono API server
βββ packages/ # Shared packages
βββ package.json # Workspace configuration
βββ README.md
$ npx create-tanstack-hono-start my-app
? Which template would you like to use? basic
? Select additional features:
β― π§ͺ Vitest Testing
β― π¨ Tailwind CSS
β― π Authentication (Auth.js)
β― ποΈ Database (Drizzle ORM)
β― π§ ESLint + Prettier
β― π GitHub Actions CI/CD
β― π³ Docker$ npx create-tanstack-hono-start my-app
? Which template would you like to use? advanced
# π Feature selection is SKIPPED - all features included automatically!
ποΈ Creating project...
β
Project created successfully!# Interactive mode (recommended for beginners)
npx create-tanstack-hono-start
# Skip all prompts with basic template
npx create-tanstack-hono-start my-project --template basic --yes
# Get everything with advanced template
npx create-tanstack-hono-start my-project --template advanced
# List available templates and features
npx create-tanstack-hono-start list- π₯ Performance: Hono is one of the fastest web frameworks
- π Type Safety: End-to-end TypeScript support
- π― Developer Experience: Excellent tooling and debugging
- π Edge Ready: Deploy anywhere with minimal configuration
- π± Modern: Built for the latest web standards
- React - UI library
- TanStack Router - Type-safe routing
- TypeScript - Type safety
- Vite - Build tool
- Hono - Web framework
- TypeScript - Type safety
- Node.js - Runtime
We welcome contributions! Please see our Contributing Guide for details.
# Clone the repository
git clone https://github.com/Kroro1208/tanstack-hono-starter.git
# Install dependencies
cd tanstack-hono-starter
npm install
# Start development
npm run devMIT License - see the LICENSE file for details.
If this project helped you, please consider giving it a β on GitHub!
Happy coding! π Built with β€οΈ for the modern web development community.

