This repository contains examples that use Hono.
- basic - basic usage of routing, middleware, and
Context - blog - CRUD example
- durable-objects - simple example with Cloudflare Durable Objects
- env-vars - example using environment variables with Hono in Typescript:
Bindings&Variables - jsx-ssr - JSX Server Side Rendering with
JSXMiddleware - hono-vite-jsx - Example of using
hono/jsx/domwithvite - serve-static - example of serving static files using Cloudflare Workers
- deno - Deno example
- bun - Bun example
- pages-stack - Zod + Zod Validator +
hc+ React on Cloudflare Pages - stytch-auth - TODO App built with Stytch Auth + Cloudflare Workers +
vite
Install dependencies
npm installFor running the examples, run the below command and replace [workspace] with the example name.
npm -w [workspace] run devOr if you have cloned a specific example, you can follow the instructions in the example's README.
deno run --allow-net hello.tsor allow to read files on local disk:
deno run --allow-net --allow-read jsx.tsxInstall dependencies
bun installRun the example
bun run hello.tsYusuke Wada https://github.com/yusukebe
Distributed under the MIT License.