关于 hono
面向 Hono 的参考技能;Hono 是基于 Web Standards、支持多种运行时的 Web 框架。它帮助开发者查找 API 设计、中间件选择、路由和运行时配置资料。
主要功能
- 01各运行时配置参考
- 02API 与路由文档
- 03中间件和辅助功能指南
- 04测试与验证指引
适用场景
- 01为特定运行时配置 Hono
- 02查询路由或 Context API
- 03选择认证或 CORS 中间件
- 04查找测试或 RPC 指南
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ fandhe-ai/ agent-reference-skills --skill hono安装后在 Claude Code 中输入/hono确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
references/api/context.mdexception.mdhono.mdpresets.mdREADME.mdrequest.mdrouting.mdreferences/concepts/benchmarks.mddeveloper-experience.mdmiddleware.mdmotivation.mdREADME.mdrouters.mdstacks.mdweb-standard.mdreferences/getting-started/ali-function-compute.mdaws-lambda.mdazure-functions.mdbasic.mdbun.mdcloudbase.mdcloudflare-pages.mdcloudflare-workers-vite.mdcloudflare-workers.mddeno.mdfastly.mdgoogle-cloud-run.mdlambda-edge.mdnetlify.mdnextjs.md详细介绍
Hono API 参考文档
Hono 是一款基于 Web Standards 的轻量、高速 Web 框架。 可在多种运行时(Cloudflare Workers、Deno、Bun、Node.js 等)中运行。 在设计 API、选择中间件和实现路由时可参考。
适用版本:Hono v4.13.13 / 运行时适配器 @hono/* 1.0.x(文档:honojs/website 7838d779,2026-10-13)。
目录结构
skills/hono/
SKILL.md
references/
getting-started/
README.md
basic.md
nodejs.md
bun.md
deno.md
cloudflare-workers.md
cloudflare-pages.md
vercel.md
netlify.md
aws-lambda.md
lambda-edge.md
fastly.md
azure-functions.md
google-cloud-run.md
nextjs.md
supabase-functions.md
service-worker.md
ali-function-compute.md
cloudflare-workers-vite.md
webassembly-wasi.md
cloudbase.md
api/
README.md
hono.md
context.md
request.md
routing.md
exception.md
presets.md
concepts/
README.md
motivation.md
web-standard.md
middleware.md
routers.md
benchmarks.md
developer-experience.md
stacks.md
middleware/
README.md
basic-auth.md
bearer-auth.md
jwt.md
jwk.md
csrf.md
secure-headers.md
cors.md
etag.md
body-limit.md
cache.md
compress.md
pretty-json.md
method-override.md
request-id.md
timeout.md
timing.md
logger.md
language.md
trailing-slash.md
context-storage.md
jsx-renderer.md
combine.md
ip-restriction.md
method-not-allowed.md
mount.md
third-party.md
helpers/
README.md
accepts.md
adapter.md
conninfo.md
cookie.md
css.md
dev.md
factory.md
html.md
jwt.md
proxy.md
route.md
ssg.md
streaming.md
testing.md
websocket.md
guides/
README.md
best-practices.md
create-hono.md
examples.md
faq.md
helpers.md
jsx.md
jsx-dom.md
middleware.md
others.md
rpc.md
testing.md
validation.md
samples/
README.md
basic-app.md
cors-jwt-auth.md
middleware-custom.md
jsx-ssr.md
rpc.md
routing.md
streaming-sse.md
testing.md
validation-zod.md
websocket.md
scripts/
README.md
install.md
dev.md
build.md
deploy.md
test.md
探索步骤
根据任务查找类别,并在类别的 README.md 中确定目标页面:
- 在下方映射表中查找与任务对应的类别
- 参考该类别的
references/{category}/README.md,确定目标页面 - Read 相应的
.md文件以查看详情
任务 → 类别映射
| 任务 | 类别 | 参考 README |
|---|---|---|
| 项目初始设置、按运行时配置(包括 Tencent CloudBase)、@hono/* 适配器包、serve 函数 | getting-started | references/getting-started/README.md |
| Hono App、HonoRequest、Context、路由、HTTPException、预设 | api | references/api/README.md |
| 设计理念、Web Standards、中间件概念、路由器类型、Stacks | concepts | references/concepts/README.md |
| 身份验证(JWT / Basic / Bearer)、CORS、CSRF、Cache、Logger、Compress、ETag 等、Mount(集成其他框架创建的应用。app.mount() 已弃用)、第三方中间件(验证器、OpenAPI、身份验证、监控) | middleware | references/middleware/README.md |
| Cookie、Streaming、WebSocket、Proxy、Factory、SSG、Testing、ConnInfo | helpers | references/helpers/README.md |
| 最佳实践、自定义中间件、JSX、验证、RPC、测试 | guides | references/guides/README.md |
| 了解典型用法 | samples | samples/README.md |
| 了解安装和 CLI 命令 | scripts | scripts/README.md |
评论
支持 Markdown