Skip to content
Back to skills

Hono

ASecurity

> Ultrafast web framework for the edge — Cloudflare Workers, Deno, Bun, Node.js, AWS Lambda.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added October 26, 2026
devopstypescriptnodeawstestingapibackend

Works with

  • cli
  • api

Security analysis

A100/100

Scanned October 26, 2026

npx -y skills add nhan03bit/ultrathink --skill hono --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Hono?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Hono
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nhan03bit-hono/badge)](https://www.skillsdirectory.com/skills/nhan03bit-hono)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Hono

> Ultrafast web framework for the edge — Cloudflare Workers, Deno, Bun, Node.js, AWS Lambda.

## When to Use
- Building APIs on edge runtimes (Cloudflare Workers, Vercel Edge)
- Lightweight REST/RPC servers with minimal overhead
- Multi-runtime backends (same code on Node, Bun, Deno, Lambda)
- Type-safe API routes with RPC client

## Core Patterns

### Basic App
```typescript
import { Hono } from "hono";
import { cors } from "hono/cors";
import { logger } from "hono/logger";
import { zValidator } from "@hono/zod-validator";

const app = new Hono()
  .use("*", logger())
  .use("/api/*", cors());

app.get("/", (c) => c.json({ status: "ok" }));

app.post("/users", zValidator("json", CreateUserSchema), async (c) => {
  const data = c.req.valid("json");
  const user = await createUser(data);
  return c.json(user, 201);
});

export default app; // Works on any runtime
```

### RPC Client (End-to-End Type Safety)
```typescript
import { hc } from "hono/client";
import type { AppType } from "../server";

const client = hc<AppType>("http://localhost:3000");
const res = await client.users.$post({ json: { name: "Inu" } });
// Fully typed request and response
```

### Key Features
- **Middleware**: `cors()`, `logger()`, `bearerAuth()`, `compress()`, `secureHeaders()`
- **Validation**: `@hono/zod-validator` for body/query/param validation
- **Grouping**: `app.route("/api/v1", v1Routes)` for modular routing
- **Context**: `c.req`, `c.json()`, `c.text()`, `c.html()`, `c.redirect()`
- **Variables**: `c.set("user", user)` / `c.get("user")` for request-scoped state
- **Streaming**: `c.stream()` and `c.streamText()` for SSE/streaming responses
- **Testing**: `app.request("/path")` returns Response — no HTTP server needed

### Deployment Targets
- Cloudflare Workers: `wrangler deploy`
- Vercel Edge: export as edge function
- Bun/Node: `Bun.serve({ fetch: app.fetch })` or `@hono/node-server`
- AWS Lambda: `@hono/aws-lambda`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.