A map of what your web app actually does.

Per role. Traced to source.

BrokenApp drives your local app in Chrome behind a write guard. It records what each control it reaches does, the endpoint it calls and the line of code behind it, for every login role, in .brokenapp/map/. Your coding agent reads that in under 0.2 seconds.

route
/checkout
role
member
control
button "Apply"
outcome
broken
what happened
GET /api/coupons/SAVE10, returned 500
source
app/checkout/coupon.tsx:58 (exact)

One command walks your app as every role.

It clicks, types and submits as each login role. The write guard blocks the writes it recognizes, and no guard catches everything, so point it at data you can throw away. What happened is written down, control by control, along with what it could not reach.

Demo: BrokenApp re-crawls a checkout page as the member role with its write guard on. It exercises five controls. The Apply coupon request is blocked before it reaches the backend, and the Pay now button is reported dead because it no longer sends POST /api/orders.

terminalrunning
$brokenapp init && brokenapp map

Committed beside your code.

Everything it learns lands in plain files.

Markdown and TSV you can grep, review in a pull request, or query with brokenapp ui without opening a browser. Only config.toml and map/ are committed. Sessions and credentials stay gitignored.

tree .brokenapp

.brokenapp/

├── config.toml

└── map/

├── ui-map.tsv

├── role-access.tsv

├── UI-MAP.html

└── roles/

.brokenapp/map/UI-MAP.md

Human-readable behavioral spec committed alongside your code. Every interactive control records its observed effect, blocked write target, and runtime source attribution.

# UI Map — acme-web (role: anonymous)Coverage: 41/44 exercisable controls exercised (93%) · 14/14 routes visitedWrite guard: block (local-only) ## /checkout  (11/12 exercised)- [ok]    input   "Promo code"     typed test value -> DOM updated- [ok]    button  "Apply promo"    calls POST /api/promos (write blocked)          source: app/checkout/page.tsx:84 (handler, exact)- [dead]  button  "Pay now"        no effect, no handler attached          source: components/ui/button.tsx:38 · caller: app/checkout/page.tsx:142- [skip]  button  "Delete cart"    not_exercised (dangerous_label) ## /pricing  (8/8 exercised)- [ok]    tab     "Annual billing" toggles price cards (DOM change)- [ok]    link    "Start trial"    navigates -> /sign-up
$ brokenapp ui --route /checkout --exact-route --compact

What it writes down.

Every finding comes with its evidence.

Read the docs
write guard

On by default. Intercepts POST, PUT, PATCH, DELETE, GraphQL mutations and form posts inside Chrome before they reach your backend, and still records what each control would have called.

calls POST /api/orders (blocked)

role access

Maps anonymous next to admin, member, owner or any role you define. Signs in by form, cookie, bearer token, Supabase, Firebase, or an interactive SSO or MFA session, and flags ACCESS GAINED before merge.

brokenapp changes --role all --fail-on access-gained

journeys

A bounded 10-minute crawl by default, --full for very large single-page apps. Traces multi-step journeys across routes, modals, drawers, tabs and wizards with exact step counts.

brokenapp journey "POST /api/orders" --max-hops 40

source lines

Resolves the component and handler behind each control to a file and line through dev source maps. Static guesses are labelled probable or ambiguous, never passed off as exact.

handler: app/checkout/page.tsx:142 (exact)

parity

Rewriting a monolith or changing frameworks? Diff two saved maps across every route, control, endpoint and role before you move traffic.

brokenapp parity ./legacy/.brokenapp/map ./new/.brokenapp/map

honest coverage

Every report says how many controls were exercised and how many routes were visited. Controls it could not exercise never count as working, and a missing CI baseline fails closed.

Coverage: 41/44 exercisable (93%), 14/14 routes

For coding agents.

Stop spending 30 browser turns to find one button.

Playwright drives a browser step by step. BrokenApp indexes your running app once, so Claude Code, Codex, Antigravity or Cursor can read the live UI, its API calls and the role matrix in milliseconds, before editing a file.

  1. 1

    Install the skill

    brokenapp init writes a 64-line SKILL.md or AGENTS.md block for Claude Code, Codex, Cursor or any agent that reads one.

  2. 2

    Query instead of clicking

    Every command takes --json, keeps stdout and stderr apart, and returns one error shape on exit 1.

  3. 3

    Verify after every edit

    brokenapp map --changed re-crawls only the routes your edit touched and diffs behavior and role access.

Read the agent guide
agent session
  1. 1 orient0.04s, no browser

    $ brokenapp ui --route /checkout --exact-route --compact

    [dead] button "Pay now": no handler attached (app/checkout/page.tsx:142)

  2. 2 trace0.05s, no browser

    $ brokenapp journey "POST /api/orders" --role member

    4 steps (1 route, 3 in-page), chain breaks at "Pay now"

  3. 3 patchexact file:line from the map

    Rewires onClick={submitOrder} in app/checkout/page.tsx:142. No guessed selectors, no 20 Playwright turns.

  4. 4 verifyincremental crawl and diff gate

    $ brokenapp map --changed --json && brokenapp changes --role all --fail-on dead,broken,access-gained

    FIXED /checkout button "Pay now" -> calls POST /api/orders [write blocked]

    Coverage: 42/44 exercisable (95%), 0 role drift, exit 0

Framework-agnostic.

Works on anything Chrome can render.

brokenapp init finds the stack, dev command, port and routes for 17+ frameworks, including monorepo workspaces.

stacks init detects
  • Next.js
  • Vite
  • React
  • Astro
  • SvelteKit
  • Nuxt
  • Remix
  • Vue
  • Angular
  • Rails
  • Django
  • FastAPI
  • Flask
  • Laravel
  • Go
  • Spring Boot
  • ASP.NET
  • Static HTML

Code has ripgrep. Running web apps had nothing.

Map your local app in minutes, commit .brokenapp/map/ beside your code, and check every edit before it ships.