β‘ 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
- basic - Essential fullstack setup with React + Hono
- advanced - Includes auth, database, and testing (coming soon)
# 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 list
When 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
# Interactive mode
npx create-tanstack-hono-start
# Specify project name
npx create-tanstack-hono-start my-project
# Choose template (coming soon)
npx create-tanstack-hono-start my-project --template advanced
- π₯ 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/yourusername/tanstack-hono-starter.git
# Install dependencies
cd tanstack-hono-starter
npm install
# Start development
npm run dev
MIT 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.