Hono React Router is a production-ready template designed to launch your web app seamlessly on Cloudflare Workers.
It builds upon the official React Router Cloudflare D1 template, offering a more powerful and flexible foundation.
📖 Explore the Hono and React Router documentation for full feature references.
Demo: https://hono-react-router.zett.workers.dev
This repository also includes a lighter version under the mini
branch — choose the version that best fits your needs.
Feature / Branch | main |
mini |
---|---|---|
Hono Server | ✅ | ✅ |
└─ Clean Architecture | ✅ | |
React Router (Framework mode) | ✅ | ✅ |
D1 Database | ✅ | |
Authentication (Clerk) | ✅ | |
Drizzle ORM | ✅ | |
Testing (Vitest) | ✅ | |
Zod Validation | ✅ | |
Tailwind CSS | ✅ | ✅ |
Prettier | ✅ | ✅ |
ESLint (Flat Config) | ✅ | ✅ |
Vite | ✅ | ✅ |
TypeScript | ✅ | ✅ |
pnpm install
pnpm typegen
pnpm db:generate
pnpm db:migrate
pnpm dev
Your app will be available at: http://localhost:5173
pnpm build
pnpm start
To create a production-ready build:
pnpm run build
Deployment is handled via Wrangler.
npx wrangler deploy
npx wrangler versions upload
Once validated, you can promote a version to production:
npx wrangler versions deploy
This template comes pre-configured with Tailwind CSS for rapid styling. Feel free to replace or extend it with your preferred CSS framework or methodology.