
Hono Has a Free API Framework That Runs on Every JavaScript Runtime
Hono is the ultrafast web framework that runs on Cloudflare Workers, Deno, Bun, Node.js, and AWS Lambda — with the same code. Zero dependencies, sub-millisecond routing. What Is Hono? Hono (meaning flame in Japanese) is a small, fast web framework built on Web Standards. Write once, deploy everywhere. Quick Start npm create hono@latest my-api cd my-api && npm install && npm run dev import { Hono } from ' hono ' const app = new Hono () app . get ( ' / ' , ( c ) => c . json ({ message : ' Hello Hono! ' })) app . get ( ' /users/:id ' , ( c ) => { const id = c . req . param ( ' id ' ) return c . json ({ id , name : `User ${ id } ` }) }) app . post ( ' /users ' , async ( c ) => { const body = await c . req . json () return c . json ({ created : true , ... body }, 201 ) }) export default app Built-in Middleware import { Hono } from ' hono ' import { cors } from ' hono/cors ' import { jwt } from ' hono/jwt ' import { logger } from ' hono/logger ' import { rateLimit } from ' hono/rate-limit '
Continue reading on Dev.to Webdev
Opens in a new tab

