errflow captures exceptions in your Node.js app, enriches them with stack frames, code snippets and git history, then has an AI generate a fix and open a PR for you to review — automatically.
Free tier included · No credit card required · MIT-licensed SDK
$ node server.js
✗ TypeError: Cannot read properties of undefined (reading 'id')
→ captured, enriched with git blame + code snippet
→ AI fix generated · confidence 0.86 · 3 lines changed
→ existing tests passed
✓ opened PR #42: fix: guard against undefined user
How it works
Install the SDK once. errflow handles the rest of the pipeline on every error.
The SDK hooks uncaught exceptions and unhandled rejections — or capture manually with one call.
Each error ships with stack frames, ±5 lines of code, git blame and the recent diff for the failing file.
An AI proposes a fix. It only proceeds when confidence is high, the diff is small, and your existing tests still pass.
A branch is created, the fix committed, and a PR opened on GitHub — with the root cause and explanation in the body.
Features
Everything the AI needs to understand — and safely fix — what broke.
Catches uncaught exceptions and unhandled rejections out of the box, with a manual capture API for handled paths.
Stack frames, surrounding code, git blame, recent diffs, breadcrumbs and request context — collected concurrently, never blocking your app.
Fixes become PRs only past a confidence threshold and changed-line limit, and only if your existing test suite still passes.
Every accepted fix lands as a reviewable GitHub pull request — you stay in control of what merges.
Collected code and diffs are scanned and redacted before they leave your machine, with a beforeSend hook for anything domain-specific.
Deduplicates noisy errors, scores severity, and stays silent in your logs unless you turn on debug mode.
Quickstart
Add the SDK, initialise with your API key, and you're live. The host app owns its own env — errflow never loads it for you.
// npm install errflow
import { Errflow } from "errflow";
Errflow.init({
apiKey: process.env.ERRFLOW_API_KEY!,
});
// uncaught errors are now captured,
// enriched, and sent for an AI fix.Pricing
The SDK is open source and MIT-licensed. Plans cover the hosted pipeline and auto-fix volume.
For side projects and trying errflow out.
For teams shipping to production.
For organisations with scale and compliance needs.
Point errflow at your project and let the next production error arrive as a pull request instead of a pager alert.