Starter template for a Hono app on Cloudflare Workers with Preact frontend. Get going fast with a simple, minimalistic setup. No magic, no bloat shipped.
Note
Project is a tryout in the search for a solid, painless full-stack approach in Hono apps. I'm setting it up as a template repo for firing off new projects easily.
- Hono - Fast web framework for Cloudflare Workers
- Preact - Lightweight React alternative
- Wouter - Minimalist but powerful routing
- SSR & client-side hydration
# Install dependencies
pnpm install
# Start development server
pnpm dev
# Build for production
pnpm build
# Deploy to Cloudflare Workers
pnpm deploysrc/api.ts- API routessrc/client/- Frontend applicationsrc/middleware/- SSR middlewaresrc/index.ts- Main app entry point
Can't have it all, can we?
Warning
Currently doesn't support server-side data fetching & hydration for passed down props. This might or might not be addressed soon.