honojs

website

Repository for hono.dev

by honojs

TypeScript

TypeScript53%
CSS34%
Vue13%

Commit activity

Last 12 weeks · 30 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
37
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Active · Last activity 1h ago
See all on GitHub →
Masyaka

Adds injecute to the Utilities section, next to InferDI. I'm the author. injecute is a type-safe dependency injection container without decorators or , so it runs everywhere Hono does: Node.js, Bun, Deno and Cloudflare Workers. There is no separate middleware package: the integration is a few lines of plain Hono code, shown in the guide. The guide covers: services built once and typed from the registrations, instead of being set on per request feature modules that contribute their own Hono sub-apps, without the HTTP module importing them request data reaching services deep in the graph through a request context graceful shutdown in the right order, and tests with and isolated forks Docs: https://masyaka.github.io/injecute/frameworks/hono Repo: https://github.com/Masyaka/injecute npm: https://www.npmjs.com/package/injecute License: MIT

Masyaka · 3d ago
supertj

Adds UsageRail to the Utilities section of the third-party middleware list. is a Hono middleware that checks each request's API key, per-customer rate limit and quota before the handler runs, then counts the request for usage-based billing on Stripe. Keys and limits are checked inside the app process, so requests don't go through a proxy. It needs Hono 4.8 or later and runs on Node.js and Cloudflare Workers. The SDK is MIT licensed; UsageRail itself is a hosted service with a free plan. npm: https://www.npmjs.com/package/@usagerail/node Source: https://github.com/usagerail/sdk Docs: https://usagerail.com/docs/hono

supertj · 2w ago
ankur-arch

Hi Hono team! This updates the Prisma on Cloudflare Workers example, which still showed the Accelerate-based setup that no longer works with current Prisma releases. What changed Prisma Postgres section: rewritten for Prisma ORM 8: , the package and the flag. The example is a Hono middleware that creates one client per request and closes it with , plus and routes. It follows the Prisma docs guide for Cloudflare Workers. D1 section: stays on Prisma ORM 7 because Prisma ORM 8 has no D1 package yet, so the commands now pin and (plain installs 8 today). It drops the preview flag, switches to the generator with , changes to , fixes the client import path so it matches the generator output, and adds a tab since the template now creates that file. It follows the Prisma Cloudflare D1 guide. New section: a short pointer to running the same Hono app on Prisma Compute, linking the docs guide and the open-source example. Resources: removed the dead caching link and updated the docs links. How I tested I followed the page step by step in fresh (cloudflare-workers) projects with Wrangler 4.151: Prisma Postgres, Prisma ORM 8 ( 8.0.0-rc.24, 8.0.0-rc.18): created a database with , ran , then . created rows and returned them across repeated requests. and pass. D1, Prisma ORM 7.10.1: ran , , and as written, then returned the inserted rows from . Local D1 only, since and need a Cloudflare account. Compute example:** ran locally against a Prisma Postgres database and returned the seeded rows. Deploys to Cloudflare were not run. One gotcha found while testing is now called out in the page: the Hono template ships a , so installs with pnpm unless the file is removed first. Disclosure: I work at Prisma. Happy to trim the Compute section or change anything else you'd like.

ankur-arch · 1h ago
n-hiraha

In the Content-Security-Policy example, is missing the inner quotes. Hono passes the values through as-is, so the header comes out as , which browsers read as a host named rather than the keyword. and in the same example already use . Checked with hono 4.13.17:

n-hiraha · 22h ago
tiagozip
.MergedPR
tiagozip · 2d ago
Structured data for AI agents

Repository: honojs/website. Description: Repository for hono.dev Stars: 186, Forks: 547. Primary language: TypeScript. Languages: TypeScript (53%), CSS (34%), Vue (13%). License: MIT. Homepage: https://hono.dev Topics: hono. Open PRs: 30, open issues: 16. Last activity: 1h ago. Community health: 37%. Top contributors: yusukebe, ryuapp, sor4chi, MathurAditya724, NicoPlyley, watany-dev, 3w36zj6, ThatOneBro, schettn, ysknsid25 and others.