Hono is an ultra-lightweight web framework optimized for Edge runtimes. It supports various runtimes including Cloudflare Workers, Deno, Bun, and Node.js, and its Express-like API makes it quick to learn. Its very small bundle size makes it ideal for serverless environments.
Hono (η, Japanese for "flame") is an ultra-lightweight web framework based on TypeScript that appeared in 2022. Its core library is only about 12KB (gzip), so it runs comfortably within the 1MB limit of Cloudflare Workers. Built on the Web Standard API (Request, Response), it offers excellent portability across runtimes.
It provides a routing API similar to Express, but internally it uses a Trie-based router that delivers faster matching performance. You define routes with familiar patterns such as app.get() and app.post(), and generate responses with context helpers such as c.json() and c.html(). TypeScript support is excellent, so route parameters and request/response types are inferred automatically.
The middleware ecosystem is rich. Official middleware is provided for CORS, JWT authentication, logging, caching, compression, and more, and it is compatible with the Express middleware style. Using the Zod Validator middleware, you can handle request body validation and type inference at the same time, which improves type safety.
Multi-runtime support is its core strength. The same code runs on Cloudflare Workers, Deno Deploy, AWS Lambda, Vercel Edge, Bun, and Node.js. On Cloudflare Workers, you can directly access bindings such as KV, D1, and R2, and platform-specific features of each platform can also be used through hono/adapter.
"Try Hono. The core is only 12KB, and its API is similar to Express, so it's quick to get used to. TypeScript support is great too, and if you integrate Zod, request validation and type inference happen automatically. You can also use Workers' D1 and KV bindings cleanly."
π¨βπΌ Technical interviewer
"What are the main differences between Hono and Express?"
π¨βπ» Candidate
"Express is Node.js-only and uses req/res objects, but Hono uses the Web Standard Request/Response, so it also works on Edge runtimes. Its bundle size is much smaller, its TypeScript support is excellent, and its router performance is faster as well. However, compared to Express's vast ecosystem, it still has fewer middleware options."
Node.js API limitations: In Edge runtimes, you cannot use Node.js-only APIs such as fs and child_process. Write your code with Web Standard APIs, for example by using the Web Crypto API instead of node:crypto.
State management: In serverless environments, in-memory state may not persist between requests. Use external storage such as KV, D1, or Redis instead of global variables.
Ecosystem size: There are fewer third-party middleware options than for Express. If you need complex functionality, you may have to implement it yourself or wrap compatible Express middleware with an adapter.