Web framework built on Web Standards. Use when: 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. NOT for: client-side browser applications; static file serving without a server.
Install
npx skillscat add yusenthebot/skills-pack/hono Install via the SkillsCat registry.
SKILL.md
hono
Overview
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.
Installation
npm install honoCore API / Usage
import { Hono } from 'hono'
const app = new Hono()
app.get('/', (c) => c.text('Hono!'))
export default appnpm create hono@latestCommon Patterns
Key Features
- Ultrafast ๐ - The router
RegExpRouteris really fast. Not using linear loops. Fast. - Lightweight ๐ชถ - The
hono/tinypreset 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.
Example
npm create hono@latestConfiguration
import { Hono } from 'hono'
const app = new Hono()
app.get('/', (c) => c.text('Hono!'))
export default appTips & Gotchas
- Includes built-in TypeScript type definitions.
- Current version: 4.12.4. Check the changelog when upgrading across major versions.