cloudflare-hono
星标11
分支1
更新时间2026年4月5日 15:06
Hono lightweight web framework on Cloudflare Workers
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Hono lightweight web framework on Cloudflare Workers
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Biome JavaScript/TypeScript linter and formatter
Cloudflare Workers edge computing platform
Laravel PHP framework best practices
MySQL database best practices and query patterns
Next.js with React 19 App Router patterns
React with TypeScript best practices
| name | cloudflare-hono |
| description | Hono lightweight web framework on Cloudflare Workers |
| model | inherit |
| triggers | [{"file_pattern":"**/hono/**/*.ts"}] |
Build fast, lightweight web applications with Hono on Cloudflare Workers.
import { Hono } from 'hono';
import { cors } from 'hono/cors';
interface Bindings {
KV: KVNamespace;
DB: D1Database;
}
const app = new Hono<{ Bindings: Bindings }>();
app.use('/*', cors());
app.get('/api/users/:id', async (c) => {
const id = c.req.param('id');
const user = await c.env.DB.prepare(
'SELECT * FROM users WHERE id = ?'
).bind(id).first();
if (!user) {
return c.json({ error: 'Not found' }, 404);
}
return c.json(user);
});
export default app;
/cloudflare-workers - CF Workers fundamentals/typescript - TypeScript patterns