Hono Examples
This repository is containing examples using Hono.
Included Examples
- basic - basic usage of a routing, middleware, and
Context - blog - CRUD example
- durable-objects - simple example with Cloudflare Durable Objects
- jsx-ssr - JSX Sever Side Rendering with
jsxmiddleware - serve-static - example of
serve-staticmiddleware - pages - using Hono for Cloudflare Pages Functions
- deno - examples for Deno
- bun - examples for Bun
How to run
Cloudflare Workers
Install:
yarn install
Run:
yarn dev
Deno
deno run --allow-net hello.ts
or allow to read files on local disk:
deno run --allow-net --allow-read jsx.tsx
Boilerplates
- hono-minimal - Minimal project with Hono for Cloudflare Workers.
- compute-starter-kit - A starter template with Hono for the Fastly Compute@Edge.
Author
Yusuke Wada https://github.com/yusukebe
License
Distributed under the MIT License.