create-tanstack-hono-start
v2.0.0
Published
๐ Fast CLI to create modern React 19 apps with TanStack Router, Hono API, TypeScript, and AI. Alternative to create-react-app with full-stack features.
Maintainers
Readme
create-tanstack-hono-start ๐
The fastest way to create modern React 19 full-stack applications
A lightning-fast CLI that scaffolds production-ready apps with React 19, TanStack Router, Hono API, TypeScript, and AI integration. Perfect alternative to create-react-app with full-stack capabilities built-in.
Why This CLI?
โจ Zero Configuration - Works out of the box
๐ Full-Stack Ready - Frontend + Backend + AI in one command
โก Lightning Fast - Powered by Vite and modern tooling
๐ Type-Safe - End-to-end TypeScript with runtime validation
๐ฑ Modern React 19 - Latest features and performance
๐ค AI-First - Built-in AI assistant and chat capabilities
Features
- โ๏ธ React 19 with the newest features and performance improvements
- ๐ฃ๏ธ TanStack Router for type-safe, file-based routing
- โก Hono OpenAPI - Ultra-fast backend with automatic API docs
- ๐ค Mastra AI integration for intelligent applications
- ๐ End-to-end type safety with Zod schemas
- ๐ React Query for server state management
- ๐จ Tailwind CSS for beautiful, responsive designs
- ๐ TypeScript throughout the entire stack
- ๐ Auto-generated API docs with Swagger UI
- ๐ง DevX optimized with hot reload and instant feedback
Quick Start
# Create a new project (fastest way)
npx create-tanstack-hono-start my-awesome-app
# Or with npm
npm create tanstack-hono-start my-awesome-app
# Or with yarn
yarn create tanstack-hono-start my-awesome-app
# Or with pnpm
pnpm create tanstack-hono-start my-awesome-appWhy choose this over create-react-app? Get a full-stack application with backend API, TypeScript, AI integration, and modern tooling in seconds - not hours of setup!
What's Included
Frontend (React 19 + TanStack Router)
- Modern React 19 with latest features
- Type-safe routing with TanStack Router
- Beautiful UI components with Tailwind CSS
- React Query for data fetching and caching
- Full TypeScript support
Backend (Hono + OpenAPI)
- Ultra-fast Hono web framework
- OpenAPI/Swagger documentation
- Zod schemas for runtime validation
- Type-safe API endpoints
- CORS and middleware support
AI Integration (Mastra)
- Built-in AI assistant capabilities
- Ready-to-use chat endpoints
- Context-aware responses
- Easy integration with your app logic
Generated Project Structure
my-awesome-app/
โโโ apps/
โ โโโ web/ # React frontend
โ โโโ api/ # Hono backend
โโโ package.json # Workspace configuration
โโโ README.md # Project documentationAPI Documentation
Your generated project includes:
- Swagger UI at
http://localhost:8000/ui - OpenAPI spec at
http://localhost:8000/doc - Type-safe API client with runtime validation
Development
# Start the development servers
npm run dev
# Frontend: http://localhost:3000
# Backend: http://localhost:8000
# API Docs: http://localhost:8000/uiAvailable Endpoints
GET /api/users- User managementPOST /api/users- Create usersPOST /api/ai/chat- AI assistantGET /api/health- Health check
Popular Use Cases
- ๐ข Enterprise Apps - Full-stack apps with type safety
- ๐ E-commerce - Product catalogs with AI recommendations
- ๐ Dashboards - Analytics with real-time data
- ๐ค AI Apps - Chat interfaces and intelligent features
- ๐ฑ SaaS Products - Multi-tenant applications
- ๐ฎ Interactive Apps - Real-time features and animations
Comparison
| Feature | create-react-app | Vite | create-tanstack-hono-start | |---------|------------------|------|-----------------------------| | Setup Time | 5-10 min | 2-5 min | 30 seconds | | Backend Included | โ | โ | โ Full API | | TypeScript Setup | Manual | Manual | โ Pre-configured | | AI Integration | โ | โ | โ Built-in | | API Documentation | โ | โ | โ Auto-generated | | Type-Safe Routing | โ | โ | โ TanStack Router |
Contributing
We welcome contributions! Please see our Contributing Guide.
License
MIT ยฉ create-tanstack-hono-start
โญ If this helps you build awesome apps, please star the repo! โญ
