hono README

The project's README from github.com/honojs/hono. As one markdown file: README.md.

Hono

GitHub Workflow Status GitHub npm npm JSR Bundle Size Bundle Size GitHub commit activity GitHub last commit codecov Discord badge Ask DeepWiki

Hono - means flame🔥 in Japanese - is a small, simple, and ultrafast web framework built on Web Standards. It works on any JavaScript runtime: Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, AWS Lambda, Lambda@Edge, and Node.js.

Fast, but not only fast.

import { Hono } from 'hono'
const app = new Hono()

app.get('/', (c) => c.text('Hono!'))

export default app

Quick Start

npm create hono@latest

Features

Documentation

The documentation is available on hono.dev.

Migration

The migration guide is available on docs/MIGRATION.md.

Communication

X and Discord channel are available.

Contributing

Contributions Welcome! You can contribute in the following ways.

For more details, see docs/CONTRIBUTING.md.

Contributors

Thanks to all contributors!

Authors

Yusuke Wada https://github.com/yusukebe

RegExpRouter, SmartRouter, LinearRouter, and PatternRouter are created by Taku Amano https://github.com/usualoma

License

Distributed under the MIT License. See LICENSE for more information.

hono (honojs/hono)

Searching Database…

32.6K ·GitHub
这是什么?Hono(日语里是“火焰”🔥的意思)是一个基于 Web 标准构建的小巧、简单、速度极快的 Web 框架,面向 TypeScript 和 JavaScript 生态。
它是框架还是库?代码能在哪些地方运行?它是一个框架:你定义路由和中间件,同一份代码可以运行在 Cloudflare Workers、Fastly Compute、Deno、Bun、Vercel、AWS Lambda、Lambda@Edge 或 Node.js 上。
我怎么才能把一个 Hono 项目跑起来?从 npm 安装 hono 包,然后按照 hono.dev 文档里的快速上手(Quick Start)来做——README 里所有内容都指向那里。
我需要另外安装其他包吗?不需要——它没有任何依赖,完全基于 Web 标准 API 构建,所以不用再引入别的东西。
安装时有什么要注意的坑吗?几乎没有:它就是一个没有任何依赖的包,仓库里唯一的最低版本要求是 Node 部署需要 Node.js 16.9 或更新版本。
它到底有多快?速度是它最大的卖点:默认路由器 RegExpRouter 避免了线性循环,而且 hono/tiny 预设的体积不到 12kB。
它开箱自带哪些东西?中间件——内置的、自定义的、第三方的都支持,这就是 README 里说的“电池已配齐”(batteries included)。
它的 TypeScript 支持怎么样?一流的:README 特别强调了非常干净的 API,以及作为“愉悦开发体验”(delightful DX)一部分的“Types”特性。
为什么叫 Hono?它在日语里是“火焰”的意思。这个框架由 Yusuke Wada 创建,它的路由器——RegExpRouter、SmartRouter、LinearRouter 和 PatternRouter——则是由 Taku Amano 创建的。
What are similar projects?remix, elysia, nitro, echo, micro, express, koa, hapi
Creator
honojs
Size
9.9 MB
Stars
32.6K
Age
4y
Commits · 90 Days