From uncaught error to open pull request

Your runtime errors, fixed by AI and shipped as a pull request

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

errflow · pipeline

$ 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

Four steps, zero babysitting

Install the SDK once. errflow handles the rest of the pipeline on every error.

Step 1

Capture

The SDK hooks uncaught exceptions and unhandled rejections — or capture manually with one call.

Step 2

Enrich

Each error ships with stack frames, ±5 lines of code, git blame and the recent diff for the failing file.

Step 3

AI fix

An AI proposes a fix. It only proceeds when confidence is high, the diff is small, and your existing tests still pass.

Step 4

Pull request

A branch is created, the fix committed, and a PR opened on GitHub — with the root cause and explanation in the body.

Features

Built for real production debugging

Everything the AI needs to understand — and safely fix — what broke.

Auto-capture

Catches uncaught exceptions and unhandled rejections out of the box, with a manual capture API for handled paths.

Rich context

Stack frames, surrounding code, git blame, recent diffs, breadcrumbs and request context — collected concurrently, never blocking your app.

Guarded AI fixes

Fixes become PRs only past a confidence threshold and changed-line limit, and only if your existing test suite still passes.

Automatic PRs

Every accepted fix lands as a reviewable GitHub pull request — you stay in control of what merges.

Secrets stay home

Collected code and diffs are scanned and redacted before they leave your machine, with a beforeSend hook for anything domain-specific.

Quiet by default

Deduplicates noisy errors, scores severity, and stays silent in your logs unless you turn on debug mode.

Quickstart

Two lines to start capturing

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.

  • Dual ESM / CommonJS build — works anywhere Node 18+ runs
  • TypeScript types included
  • Fully async context collection — no event-loop blocking
  • Silent by default; opt into debug logs when you need them
server.ts
// 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

Start free, scale when you need to

The SDK is open source and MIT-licensed. Plans cover the hosted pipeline and auto-fix volume.

Free

$0/month

For side projects and trying errflow out.

  • 1 project
  • 10 auto-fixes / month
  • Community support
  • Full error context
Most popular

Pro

$29/month

For teams shipping to production.

  • 5 projects
  • 500 auto-fixes / month
  • Priority support
  • Regression detection
  • Email notifications

Enterprise

Custom

For organisations with scale and compliance needs.

  • Unlimited projects
  • Custom fix volume
  • SSO & audit logs
  • Dedicated support
  • SLA

Stop triaging. Start reviewing fixes.

Point errflow at your project and let the next production error arrive as a pull request instead of a pager alert.