@michaelthielemann/kestrel-h3

Adapter: serves a Kestrel instance's HTTP triggers as an h3 event handler (Nuxt/Nitro).
1,566
Install
npm install @michaelthielemann/kestrel-h3
Latest Version:5.8.1
License:Apache-2.0
Last Updated:Oct 19, 2026
Links: GitHub  ·  npm
Maintainer: michaelthielemann

@michaelthielemann/kestrel-h3

Adapter: serves the HTTP triggers of a booted Kestrel instance as one h3 event handler – for Nuxt/Nitro (h3 v1) or any h3 app. Same behaviour as the built-in server: route params and *path, query + JSON body → payload, multipart → files, binary results, { error, runId }, X-Kestrel-Run-Id, body limit (413), client ip. Options: mountPath (default "", e.g. /api), maxBodyBytes, inlineTypes, and the same peer policy as the core server – trustProxy (the X-Forwarded-For entry proxyHops from the right, default 1; a shorter chain yields no address), trustedHeader (its first value is the client; missing → no address) – derived by the core's clientIp(), so ctx.ip (rate limits) cannot drift between the two paths. Boot Kestrel with http: null; health/CORS stay with the host. Knows no contracts and no modules.

Related Packages

@michaelthielemann/kestrel-web

Nuxt 4 layer with the Kestrel admin UI and public site renderer; embeds a Kestre...

736 0
@michaelthielemann/kestrel-renderer-nuxt

renderer@1 backed by the running Nuxt app: renders a page through Nitro's localF...

607 0

Version History

Version Released License
5.8.1 Apache-2.0
5.8.0 Apache-2.0
5.7.0 Apache-2.0
5.6.0 Apache-2.0
5.5.0 Apache-2.0