Hono

A small, ultrafast web framework built on Web Standards that runs identically everywhere.

Framework
npm
v4.13.13
32,649 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
89 /100 Excellent
Development Activity 96
Maintenance 100
Community 64
Maturity 56
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
88 /100 Excellent
Architecture 92
Code Quality 90
Innovation 90
Learning Curve 78

Hono is a lightweight, ultrafast web framework for building HTTP APIs and full-stack web applications on Web Standard APIs (Request/Response, Fetch). Because it targets the platform rather than a specific runtime, the exact same application code runs unmodified on Cloudflare Workers, Deno, Bun, Node.js, Fastly Compute, AWS Lambda, and Vercel Edge Functions.

Its core is a router-agnostic, middleware-composable design: a pluggable router layer (RegExpRouter, TrieRouter, SmartRouter, and more) handles URL matching, a Koa-style compose function chains middleware around a single Context object, and dozens of first-party middleware modules cover authentication, CORS, caching, compression, JWT/JWK, and more. The hono/tiny preset stays under 12kB and has zero runtime dependencies, making it a common choice for edge and serverless workloads where cold-start size matters as much as raw throughput.

What You Get

  • A chainable, Express-style routing API (app.get, app.post, .route(), .basePath()) with full TypeScript inference for path params and typed environment bindings.
  • A pluggable router layer — RegExpRouter (fastest, precompiles routes into a single regex dispatch table), TrieRouter, LinearRouter, PatternRouter, and SmartRouter, which auto-selects the best one at runtime.
  • Over 25 first-party middleware modules covering CORS, CSRF, basic/bearer/JWT/JWK auth, caching, compression, secure headers, request ID, logging, ETag, and body-limit.
  • Runtime adapters for Cloudflare Workers/Pages, Deno, Bun, AWS Lambda, Lambda@Edge, Vercel, Netlify, and Service Workers, so the same handler code targets any of them.
  • A built-in JSX renderer and streaming helpers for server-rendered HTML without pulling in a separate templating engine.
  • A type-safe RPC client (hono/client) that infers request/response types directly from server route definitions for end-to-end type safety.

Common Use Cases

  • Building HTTP APIs and backends-for-frontend (BFF) layers deployed to edge platforms like Cloudflare Workers or Fastly Compute.
  • Serverless functions on AWS Lambda or Vercel where cold-start time and bundle size are critical.
  • Full-stack applications combining Hono’s JSX renderer with client-side hydration for lightweight server-rendered UIs.
  • Migrating Express-style Node.js APIs to modern, multi-runtime deployments without a framework rewrite.
  • Type-safe client-server communication via the built-in RPC client for internal service-to-service calls.

Under The Hood

Architecture: Hono’s core (src/hono-base.ts) is a router-agnostic base class: HTTP-method calls like app.get() register [method, path, handler] tuples onto an injected Router implementation (src/router.ts defines the Router<T> interface with add()/match()). Request dispatch flows through compose() (src/compose.ts), a Koa-style middleware chain that recursively calls dispatch(i+1) around a single mutable Context object, threading next(), error handling (onError), and 404 fallthrough (onNotFound) through one closure. .route() and .basePath() let sub-apps be mounted with path prefixes by cloning the instance and remapping registered routes, giving Hono’s routing tree its compositional, Express-like feel while staying framework-agnostic underneath.

Tech Stack: Written entirely in TypeScript (99.7% of the codebase) targeting ES modules with a CJS build via a custom build/build.ts script (using esbuild). The package ships zero runtime dependencies — everything from JSX to streaming to the RPC client is implemented against Web Standard APIs (Fetch, Request, Response, ReadableStream), which is exactly what allows the same bundle to run on Cloudflare Workers, Deno, Bun, and Node.js without polyfills. Build tooling includes TypeScript’s native-preview compiler, publint for package export validation, and Bun as the primary dev/build runner.

Code Quality: The repo maintains 99 *.test.ts files directly alongside source (co-located unit tests) plus a separate runtime-tests/ tree that runs the same suite against Deno, Bun, Node, Fastly, Lambda, and Workerd projects via per-runtime Vitest configs — a strong signal that cross-runtime parity is treated as a first-class quality requirement rather than an afterthought. ESLint is configured with @hono/eslint-config plus stricter custom rules (no-explicit-any mostly enforced, unused-vars errors), and Prettier/editorconfig-checker enforce formatting. Public APIs and internal helpers alike carry JSDoc comments with @see links back to the hono.dev docs.

API Design: The chainable app.get(path, handler) / app.use(handler) surface mirrors Express closely enough to be immediately familiar, while TypeScript generics (Env, Schema, BasePath) thread typed path params, bindings, and typed JSON responses through the whole chain with no manual type annotations required from the developer. Getting started is a single new Hono() plus one route — no config file, no build step required for the base framework — and the hono/client RPC layer extends that same type inference to the HTTP client, so consumers get compile-time safety on API calls without a code-gen step.

Used by 60 apps in this directory

TypeScript
45%
Other

Convex Backend

Databases · Developer Tools

12,754

Open-source reactive database that lets developers build live-updating apps with pure TypeScript, strong consistency, and real-time subscriptions—no separate API layer required.

View details
88
Repo Health
82
Technical
65
Dependency
Built with
TypeScript 45%
Rust 43%
Updated 6 days ago
Python
56%
Other

Dify

AI Development · Design Tools · Developer Tools

159,396

Visual LLM workflow platform with RAG pipelines, agent capabilities, and model management for building production AI applications.

View details
92
Repo Health
85
Technical
67
Dependency
Built with
Python 56%
TypeScript 42%
Updated 6 days ago
TypeScript
92%
AGPL 3.0

Documenso

Digital Signiture

15,537

Self-hosted, open-source DocuSign alternative with legally binding PDF signatures, multi-party workflows, and a full REST and tRPC API.

View details
93
Repo Health
79
Technical
67
Dependency
Built with
TypeScript 92%
Updated 1 weeks ago
TypeScript
98%
Other

Dokploy

Devops · Hosting Control Panel · Security

37,989

Self-hosted PaaS that deploys apps and databases on your own VPS using Docker, Traefik, and multi-build-system orchestration

View details
89
Repo Health
76
Technical
64
Dependency
Built with
TypeScript 98%
Updated 6 days ago
TypeScript
95%
Apache 2.0

Enclosed

Security

2,099

Send end-to-end encrypted notes and files where the server never sees your content — true zero-knowledge sharing.

View details
78
Repo Health
88
Technical
71
Dependency
Built with
TypeScript 95%
Updated 1 weeks ago
TypeScript
64%
Other

Epicenter

Developer Tools · Knowledge Management · Note Taking

4,825

A local-first monorepo led by Whispering, an open-source speech-to-text app, built on an MIT toolkit that turns your data into plain Markdown and SQLite files you own instead of a database you rent.

View details
87
Repo Health
90
Technical
64
Dependency
Built with
TypeScript 64%
Rust 15%
Updated 1 weeks ago
TypeScript
91%
Other

FastGPT

AI Agents · AI Development

29,900

Build, debug, and deploy knowledge-based AI agents with a visual workflow editor, RAG retrieval, and support for any OpenAI-compatible LLM.

View details
93
Repo Health
84
Technical
66
Dependency
Built with
TypeScript 91%
Updated 6 days ago
TypeScript
94%
Apache 2.0

flue

AI Agents · Developer Tools

8,521

Build autonomous AI agents and powerful workflows with a programmable TypeScript harness that gives any model sessions, tools, sandboxes, and durable execution.

View details
81
Repo Health
82
Technical
69
Dependency
Built with
TypeScript 94%
Updated 1 weeks ago
MDX
50%
Apache 2.0

Formizee

Forms Surveys

184

An open-source form backend and builder platform — design forms, collect submissions, and get analytics without hosting your own server, positioned as an alternative to Formspree and Typeform.

View details
30
Repo Health
59
Technical
67
Dependency
Built with
MDX 50%
TypeScript 49%
Updated 1 years ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers