whoopsie

See your AI app's failures live.

Vercel AI SDK middleware. Catches loops, hallucinations, and cost spikes in your Next.js agent and surfaces them in a live dashboard. Free forever.

$npx @whoopsie/cli init

Works inside any Next.js + Vercel AI SDK project. First failure visible within seconds.

60-second install

One CLI command wraps your model and opens the dashboard. No signup.

7 detectors

loop, repetition, cost-spike, completion-gap, hallucination-lite, context-neglect, derailment.

Privacy-first

PII redaction in the SDK before bytes leave the machine. Toggleable, default-on.

How it works

  1. 01

    Install

    `npx @whoopsie/cli init` detects your Next.js + AI SDK setup and patches the first streamText call.

  2. 02

    Run

    Hit your chat route once. The middleware streams trace events to the live dashboard via SSE.

  3. 03

    See

    Your first detector hit lands in the dashboard within a second. Click any event for full evidence.

app/api/chat/route.tstypescript
import { wrapLanguageModel, streamText } from "ai";
import { whoopsieMiddleware } from "@whoopsie/sdk";

const model = wrapLanguageModel({
  model: openai("gpt-4o"),
  middleware: whoopsieMiddleware(),
});

await streamText({ model, prompt: "..." });