mcpField
H
hono

hono

github.com/fandhe-ai开发486 次安装3 天前更新
代码仓库

关于 hono

面向 Hono 的参考技能;Hono 是基于 Web Standards、支持多种运行时的 Web 框架。它帮助开发者查找 API 设计、中间件选择、路由和运行时配置资料。

主要功能

  1. 01各运行时配置参考
  2. 02API 与路由文档
  3. 03中间件和辅助功能指南
  4. 04测试与验证指引

适用场景

  1. 01为特定运行时配置 Hono
  2. 02查询路由或 Context API
  3. 03选择认证或 CORS 中间件
  4. 04查找测试或 RPC 指南

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/fandhe-ai/agent-reference-skills --skill hono

安装后在 Claude Code 中输入/hono确认已加载。

包含的文件

除 SKILL.md 外,安装时一起下载的参考资料和脚本。

references/api/
context.md
exception.md
hono.md
presets.md
README.md
request.md
routing.md
references/concepts/
benchmarks.md
developer-experience.md
middleware.md
motivation.md
README.md
routers.md
stacks.md
web-standard.md
references/getting-started/
ali-function-compute.md
aws-lambda.md
azure-functions.md
basic.md
bun.md
cloudbase.md
cloudflare-pages.md
cloudflare-workers-vite.md
cloudflare-workers.md
deno.md
fastly.md
google-cloud-run.md
lambda-edge.md
netlify.md
nextjs.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 中确定目标页面:

  1. 在下方映射表中查找与任务对应的类别
  2. 参考该类别的 references/{category}/README.md,确定目标页面
  3. Read 相应的 .md 文件以查看详情

任务 → 类别映射

任务类别参考 README
项目初始设置、按运行时配置(包括 Tencent CloudBase)、@hono/* 适配器包、serve 函数getting-startedreferences/getting-started/README.md
Hono App、HonoRequest、Context、路由、HTTPException、预设apireferences/api/README.md
设计理念、Web Standards、中间件概念、路由器类型、Stacksconceptsreferences/concepts/README.md
身份验证(JWT / Basic / Bearer)、CORS、CSRF、Cache、Logger、Compress、ETag 等、Mount(集成其他框架创建的应用。app.mount() 已弃用)、第三方中间件(验证器、OpenAPI、身份验证、监控)middlewarereferences/middleware/README.md
Cookie、Streaming、WebSocket、Proxy、Factory、SSG、Testing、ConnInfohelpersreferences/helpers/README.md
最佳实践、自定义中间件、JSX、验证、RPC、测试guidesreferences/guides/README.md
了解典型用法samplessamples/README.md
了解安装和 CLI 命令scriptsscripts/README.md

评论

支持 Markdown