MCPcopy
hub / github.com/honojs/hono

github.com/honojs/hono @v4.12.27 sqlite

repository ↗ · DeepWiki ↗ · release v4.12.27 ↗
1,354 symbols 3,534 edges 363 files 41 documented · 3%
README

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

  • Ultrafast 🚀 - The router RegExpRouter is really fast. Not using linear loops. Fast.
  • Lightweight 🪶 - The hono/tiny preset is under 12kB. Hono has zero dependencies and uses only the Web Standard API.
  • Multi-runtime 🌍 - Works on Cloudflare Workers, Fastly Compute, Deno, Bun, AWS Lambda, Lambda@Edge, or Node.js. The same code runs on all platforms.
  • Batteries Included 🔋 - Hono has built-in middleware, custom middleware, and third-party middleware. Batteries included.
  • Delightful DX 😃 - Super clean APIs. First-class TypeScript support. Now, we've got "Types".

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.

  • Create an Issue - Propose a new feature. Report a bug.
  • Pull Request - Fix a bug or typo. Refactor the code.
  • Create third-party middleware - See instructions below.
  • Share - Share your thoughts on the Blog, X, and others.
  • Make your application - Please try to use Hono.

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.

Extension points exported contracts — how you extend this code

Router (Interface)
(no doc) [4 implementers]
src/router.ts
ExecutionContext (Interface)
(no doc) [2 implementers]
src/context.ts
ParseBody (Interface)
* Parses the body of a request based on the provided options. * * @template T - The type of the parsed body data. * @
src/utils/body.ts
WSContextInit (Interface)
(no doc) [1 implementers]
src/helper/websocket/index.ts
ExtendableEvent (Interface)
(no doc) [1 implementers]
src/adapter/service-worker/types.ts
ContextVariableMap (Interface)
(no doc)
src/types.test.ts
ContextRenderer (Interface)
(no doc)
src/hono.test.ts
ContextRenderer (Interface)
(no doc)
src/context.test.ts

Core symbols most depended-on inside this repo

text
called by 1134
src/client/types.ts
json
called by 829
src/client/types.ts
toString
called by 346
src/jsx/base.ts
header
called by 217
src/request.ts
render
called by 213
src/jsx/dom/render.ts
add
called by 176
src/router.ts
param
called by 159
src/request.ts
useState
called by 146
src/jsx/hooks/index.ts

Shape

Function 857
Interface 203
Method 176
Class 114
Enum 4

Languages

TypeScript100%

Modules by API surface

src/jsx/intrinsic-elements.ts55 symbols
src/adapter/aws-lambda/handler.ts53 symbols
src/utils/jwt/types.ts46 symbols
src/jsx/hooks/index.ts28 symbols
src/jsx/base.ts27 symbols
src/hono.test.ts27 symbols
src/context.ts27 symbols
src/request.ts26 symbols
src/jsx/dom/render.ts26 symbols
src/jsx/index.test.tsx24 symbols
src/jsx/dom/index.test.tsx22 symbols
src/jsx/dom/css.ts17 symbols

Dependencies from manifests, versioned

@hono/eslint-config2.1.0 · 1×
@hono/node-server2.0.2 · 1×
@medley/router0.2.1 · 1×
@types/benchmark2.1.5 · 1×
@types/jsdom21.1.7 · 1×
@types/node24.3.0 · 1×
@types/qs6.9.17 · 1×
@types/react18.2.40 · 1×
@types/react-dom18.2.17 · 1×
@types/ws8.18.1 · 1×
@typescript/native-preview7.0.0-dev.20260210.1 · 1×
@vitest/coverage-v84.1.7 · 1×

For agents

$ claude mcp add hono \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact