1. Import Hono
Hono is an ultrafast, tiny framework built on Web Standards, imported as a named export.
import { Hono } from "hono";Typorithm · medium
Step 1 of 8 · intro card
Web Frameworks
Hono is an ultrafast, tiny framework built on Web Standards that runs on Node, Bun, Deno, Cloudflare Workers and the edge. A single context object c carries the request and response helpers, middleware composes cleanly, and TypeScript is first-class — ideal for edge and serverless.
Hono is a tiny, ultrafast web framework built on Web Standards (the Fetch Request and Response). Because it targets the standard, the same app runs on Node, Bun, Deno, and Cloudflare Workers.
Handlers receive a single context object, conventionally c, that bundles the request (c.req) and response helpers (c.json, c.text). You read a route param with c.req.param("id").
Middleware composes around handlers, TypeScript support is first-class, and exporting the app as the default makes it the entry point edge and serverless runtimes invoke.
Built on Web Standards; runs on Node, Bun, Deno, and the edge.
One context object c holds request and response helpers.
First-class TypeScript; great for edge and serverless.
import { Hono } from "hono";
const app = new Hono();
app.get("/users/:id", (c) => {
return c.json({ id: c.req.param("id") });
});
export default app;Connect each part of the code to the concept before you type.
Hono is an ultrafast, tiny framework built on Web Standards, imported as a named export.
import { Hono } from "hono";new Hono() constructs the app instance you attach routes and middleware to.
const app = new Hono();A single context object c carries both the request and the response helpers.
app.get("/users/:id", (c) => {c.req.param reads a route param and c.json builds a JSON Response.
return c.json({ id: c.req.param("id") });Exporting the app as default lets edge runtimes like Cloudflare Workers pick it up.
export default app;Read the concept map and follow the code breakdown.
Type the implementation, repair mistakes and work through every recall exercise.
Use the final check without hints; revisit weak concepts in short practice sessions.