A modern web application boilerplate using Hono framework with Vite and React Server Components (RSC).
- Hono - Lightweight, fast web framework
- Vite - Fast development and build tooling
- React 19 - UI library with Server Components
- Tailwind CSS v4 - Utility-first CSS framework
- Node.js 18+
- npm, yarn, pnpm or bun
- Clone or use this template
git clone https://github.com/kfly8/boilerplate-hono-vite-rsc.git
cd boilerplate-hono-vite-rsc- Install dependencies
npm install- Start development server
npm run devOpen http://localhost:5173 to view the application.
npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production build locallynpm run deploy- Deploy to Cloudflare Workersnpm run cf-preview- Preview with Wrangler locallynpm run cf-typegen- Generate Cloudflare binding types
src/
├── cloudflare-workers.tsx # Cloudflare Workers entry point
├── server.ts # Hono server configuration
├── components/ # Shared React components
│ └── Layout.tsx # Main layout component
├── routes/ # File-based routing
│ ├── _404.tsx # 404 page
│ ├── _error.tsx # Error page
│ └── home/ # Home route
│ ├── index.tsx # Route handler
│ ├── page.tsx # Page component
│ └── components/ # Route-specific components
└── rsc/ # React Server Components setup
├── entry.browser.tsx # Browser entry point
├── entry.rsc.tsx # RSC entry point
├── entry.ssr.tsx # SSR entry point
└── rsc-renderer.tsx # RSC renderer middleware
Looking for a more feature-rich example? Check out hono-vite-rsc-shadcnui for an implementation with shadcn/ui components.