Skip to content

Kroro1208/tanstack-hono-start

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ TanStack Hono Start

npm version Downloads TypeScript React Hono TanStack Router

⚑ The fastest way to bootstrap modern fullstack applications with React 19, TanStack Router, Hono OpenAPI, and Mastra AI

🎬 Quick Demo

CLI Demo

Create a modern fullstack app in seconds with React 19, TanStack Router, Hono OpenAPI, and AI integration!

✨ Features

  • 🎯 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

πŸš€ Quick Start

# 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

🎯 What's New in 2025

  • πŸ†• 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

🎯 What You Get

Frontend (React 19 + TanStack Router)

  • βš›οΈ 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

Backend (Hono + OpenAPI)

  • πŸ”₯ 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

Generated API Endpoints

  • GET /api/users - User management with type validation
  • POST /api/users - Create users with Zod schema validation
  • POST /api/ai/chat - AI assistant with Mastra integration
  • GET /ui - Interactive Swagger UI documentation
  • GET /doc - OpenAPI JSON specification

πŸ› οΈ Available Templates

  • basic - Essential fullstack setup with React + Hono
  • advanced - Includes auth, database, and testing (coming soon)

πŸ“‹ CLI Options

# 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

πŸ—οΈ Generated Project Structure

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

πŸ› οΈ Usage

# 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

🀝 Why TanStack Router + Hono?

  • πŸ”₯ 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

πŸ§ͺ Tech Stack

Frontend (Web App)

  • React - UI library
  • TanStack Router - Type-safe routing
  • TypeScript - Type safety
  • Vite - Build tool

Backend (API)

  • Hono - Web framework
  • TypeScript - Type safety
  • Node.js - Runtime

πŸ“– Documentation

🀝 Contributing

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

πŸ“„ License

MIT License - see the LICENSE file for details.

🌟 Show Your Support

If this project helped you, please consider giving it a ⭐ on GitHub!

πŸ”— Links


Happy coding! πŸŽ‰ Built with ❀️ for the modern web development community.

About

This repository is the Package that modern fullstack applications with TanStack Router, Hono, and AI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •