secondsky avatar

Bun Hono Integration

Handles Hono framework integration on Bun, covering routing patterns, middleware stacks, and request/response handling. You get path parameters with type extraction, built-in middleware like CORS and auth, Zod validation hooks, and RPC mode for type-safe client calls. The examples show real patterns like route grouping, context variables for passing data between middleware, and error boundaries with HTTPException. Useful when you're building REST APIs on Bun and want framework niceties without the weight of Express. The validator integration is clean, and the type safety story with RPC mode actually works across client and server.

skills.sh installs
376
GitHub stars
248
last updated
Aug 21, 2026

Install

$ npx -y skills add secondsky/claude-skills --skill bun-hono-integration --agent claude-code

Installs into .claude/skills of the current project.

Files

Bun Hono Integration

Hono is a fast, lightweight web framework optimized for Bun.

Quick Start

bun create hono my-app
cd my-app
bun install
bun run dev

Basic Setup

import { Hono } from "hono";

const app = new Hono();

app.get("/", (c) => c.text("Hello Hono!"));

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

export default app;

Routing

import { Hono } from "hono";

const app = new Hono();

// HTTP methods
app.get("/users", (c) => c.json([]));
app.post("/users", (c) => c.json({ created: true }));
app.put("/users/:id", (c) => c.json({ updated: true }));
app.delete("/users/:id", (c) => c.json({ deleted: true }));

// All methods
app.all("/any", (c) => c.text("Any method"));

// Path parameters
app.get("/users/:id", (c) => {
  const id = c.req.param("id");
  return c.json({ id });
});

// Multiple parameters
app.get("/posts/:postId/comments/:commentId", (c) => {
  const { postId, commentId } = c.req.param();
  return c.json({ postId, commentId });
});

// Wildcards
app.get("/files/*", (c) => {
  const path = c.req.path;
  return c.text(`File: ${path}`);
});

Sponsors

Details

Repository
github.com/secondsky/claude-skills
Category
Backend & APIs
First seen
Jun 3, 2026

More from secondsky/claude-skills

All 146
1levnikolaevich avatarln-770-crosscutting-setuplevnikolaevich/claude-code-skillsSets up logging, error handling, CORS, health checks, and API docs. Use when adding cross-cutting concerns to backend projects.373skills.sh installs
2zzci avatarbkdzzci/skillsOperate a BKD kanban board over its REST API. Use when the user wants to manage BKD projects, issue execution workflows, cron jobs, or execution capacity, inclu373skills.sh installs
3diskd-ai avatardesign-docdiskd-ai/design-docCreate technical design documents for new features, systems, refactoring plans, API designs, and database schemas. Use when asked to write a design doc, TRD (te372skills.sh installs
4firebase avatardeveloping-genkit-jsfirebase/skillsdeveloping genkit js371skills.sh installs
5yonatangross avatarlanggraphyonatangross/orchestkitLangGraph 1.x (LTS) Python workflow patterns for state management, delta channels, resilience (node timeouts, error handlers, graceful drain), routing, parallel371skills.sh installs
6sanjay3290 avatarazure-devopssanjay3290/ai-skillsManage Azure DevOps projects, work items, repos, PRs, pipelines, wikis, test plans, security alerts, variable groups, environments/approvals, branch policies, a369skills.sh installs