bun-hono-integration
仓库创建 2025年11月8日最近提交 29 天前SkillHot 收录 22 天前
▸ 精选理由
轻量快速,适合需要低延迟微服务与边缘路由的开发者。
这个 Skill 做什么
在 Bun 上使用 Hono 快速搭建路由、API 与中间件示例。
在 Bun 上用 Hono 快速搭路由、写 REST API 和中间件,示例直接给出启动命令和常见路由写法。适合想用轻量框架快速搭后端接口、处理 context 或做简单服务端功能的场景。特点是极简上手、性能友好,代码示例能直接在 Bun 环境跑起来。
▸ 展开 SKILL.md 英文原文
Use when building APIs with Hono framework on Bun, including routing, middleware, REST APIs, context handling, or web framework features.
180
Stars
28
Forks
40
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/secondsky/claude-skills/main/plugins/bun/skills/bun-hono-integration/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/secondsky/claude-skills/main/plugins/bun/skills/bun-hono-integration/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# 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 metvia SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有