yusenthebot

hono

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.

yusenthebot 0 Updated 3mo ago
GitHub

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 hono

Core API / Usage

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

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

export default app
npm create hono@latest

Common Patterns

Key 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.

Example

npm create hono@latest

Configuration

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

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

export default app

Tips & Gotchas

  • Includes built-in TypeScript type definitions.
  • Current version: 4.12.4. Check the changelog when upgrading across major versions.