bun-hono-integration

Solid

Use when building APIs with Hono framework on Bun, including routing, middleware, REST APIs, context handling, or web framework features.

API & Backend 162 stars 25 forks Updated 2 weeks ago MIT

Install

View on GitHub

Quality Score: 88/100

Stars 20%
74
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Bun Hono Integration Hono is a fast, lightweight web framework optimized for Bun. ## Quick Start ```bash bun create hono my-app cd my-app bun install bun run dev ``` ## Basic Setup ```typescript 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 ```typescript 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}`); }); // Regex-like patterns app.get("/user/:id{[0-9]+}", (c) => c.json({ id: c.req.param("id") })); export default app; ``` ## Route Groups ```typescript import { Hono } from "hono"; const app = new Hono(); // Group routes const api = new Hono(); api.get("/users", (c) => c.json([])); api.get("/posts", (c) => c.json([])); app.route("/api/v1", api); // Bas...

Details

Author
secondsky
Repository
secondsky/claude-skills
Created
6 months ago
Last Updated
2 weeks ago
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category