01Overview
Koa is a small HTTP framework from the Express team built around async middleware. An Application collects middleware and composes it into one function with koa-compose; for every request it creates a Context that wraps Node's req/res in Koa's own Request and Response objects, runs the middleware chain, then writes the response in respond(). Errors bubble to ctx.onerror, which resets the response and emits them on the app.
Verified by static imports
Inferred runtime relationship
anthropic · Claude · 11/29/2026
Done by Claude (an AI by Anthropic): Claude wrote this analysis from the files RepoLens selected, then RepoLens's pipeline checked every path, import link and line number against the real repo.