honojs / hono
- вторник, 19 июля 2022 г. в 00:32:47
Ultrafast web framework for Cloudflare Workers, Deno, and Bun. Fast, but not only fast.
Documentation
v2.x has been released! Migration guide
Hono - [炎] means flame
import { Hono } from 'hono'
const app = new Hono()
app.get('/', (c) => c.text('Hono!!'))
export default app
Hono is fastest, compared to other routers for Cloudflare Workers.
hono - trie-router(default) x 389,510 ops/sec ±3.16% (85 runs sampled)
hono - regexp-router x 452,290 ops/sec ±2.64% (84 runs sampled)
itty-router x 206,013 ops/sec ±3.39% (90 runs sampled)
sunder x 323,131 ops/sec ±0.75% (97 runs sampled)
worktop x 191,218 ops/sec ±2.70% (91 runs sampled)
Fastest is hono - regexp-router
✨ Done in 43.56s.
The documentation is available on honojs.dev.
Migration guide is available on docs/MIGRATION.md
Contributions Welcome! You can contribute in the following ways.
Thanks to all contributors! Especially, @metrue and @usualoma!
Yusuke Wada https://github.com/yusukebe
Distributed under the MIT License. See LICENSE for more information.