epicenterhq/epicenter

hono

Hono patterns for TypeScript API routes, middleware, request and response typing, streaming, WebSockets, and Cloudflare Workers deployment. Use when users mention Hono, honojs, Cloudflare Worker handlers, Hono middleware, or Hono route typing.

First seen May 8, 2026

Installation

$ npx skills add epicenterhq/epicenter --skill hono

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from epicenterhq/epicenter · top by installs.

npx skills add epicenterhq/epicenter

Browse all from epicenterhq/epicenter

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 4.8K
License licenses
Default branch main
Open issues 125
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

Version1.0
More metadata
author
epicenter
version
1.0

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,051 B
  • docs SUMMARY.md 255 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 7 installs

SKILL.md

Hono

Reference Repositories

  • Hono - TypeScript web framework for edge runtimes and Cloudflare Workers
  • Cloudflare Docs - Workers, Durable Objects, WebSockets, KV, R2, and deployment docs

Upstream Grounding

When Hono route typing, middleware order, context variables, response helpers, streaming, WebSockets, or Cloudflare Worker runtime behavior affects correctness, ask DeepWiki a narrow question against honojs/hono or cloudflare/cloudflare-docs before relying on memory. Use it to orient, then verify decisive details against local installed types, source, or official docs before changing code.

Skip DeepWiki for stable HTTP basics and repo-local API conventions already visible in the code.

Middleware And Context

  • Middleware is onion-style and order-sensitive. Resource setup belongs before auth; auth belongs before protected routes.
  • Use createFactory<Env>() and Env['Variables'] to type c.var and c.set().
  • Middleware that continues must await next(). Middleware that rejects or redirects should return the response and skip next().
  • Handlers should return Hono response helpers such as c.json(), c.text(), c.html(), or a Response.
  • On Cloudflare Workers, read bindings from c.env and request lifecycle APIs from c.executionCtx.
  • Register CORS before auth routes when cookie auth or credentialed cross-origin frontend calls are involved.
  • Test route behavior with app.request() or testClient plus mocked bindings and execution context before reaching for a network server.
  • Keep WebSocket upgrade detection explicit whenever generic middleware might mutate response headers.