fixme-nitro
v0.2.0
Published
Report Nitro/TypeScript app errors to Fixme, which opens a fix PR automatically
Maintainers
Readme
fixme-nitro
Report your Nitro app's unhandled errors to Fixme — which analyses each one with Claude and opens a fix pull request on your linked GitHub repo. Reporting is fire-and-forget and never affects your app.
Install
bun add fixme-nitro # or: npm i fixme-nitroUse
Create a Nitro server plugin and pass your DSN (from the Fixme dashboard):
// server/plugins/fixme.ts
import { fixme } from 'fixme-nitro'
export default fixme({ dsn: process.env.FIXME_DSN })# .env
FIXME_DSN=https://<token>@<your-fixme-host>That's it. Every unhandled error (Nitro error hook, uncaughtException, unhandledRejection) is
sent to Fixme, deduplicated by fingerprint, and turned into a fix PR. Errors reported by this SDK
are tagged with the back origin on the dashboard.
On startup — and every 5 minutes after — the plugin also sends a lightweight heartbeat so the dashboard shows the project as connected, even before the first error is reported.
Options
fixme({
dsn: process.env.FIXME_DSN,
context: { service: 'api', region: 'eu' }, // optional metadata attached to every report
})If dsn is omitted it falls back to process.env.FIXME_DSN; with no DSN, reporting is disabled
with a warning.
License
MIT
