apiflow

apiflow

A dependency map for systems that talk over HTTP. Which screens break if you change an endpoint or a response field — answered before you edit, with the file:line for every hop.

Two screens read one endpoint, which carries three fields; every edge keeps the file and line it was read from. SCREEN ENDPOINT FIELD UserPage users/[id].tsx:4 UsersList users/index.tsx:6 GET /users/{param} routes/users.ts:12 id email name
Three node kinds and two edges. Nothing here is drawn by hand — every node and every edge was read out of source, and keeps the file and line it came from.

How it works

Each repo is scanned into its own .apimap file; link joins them into one map, which impact, check and probe read. READ MAP JOIN ASK frontend any repo api another machine fe.apimap be.apimap link impact what breaks check a CI gate probe confirm by running scan-fe scan-be
Each side is scanned where it lives, into its own file. link joins them. The map is a file, derived from content alone — two people scanning the same commit get the same bytes, and nothing is hosted.

Install

npm install -g @junixlabs/apiflow
apiflow project add "web" --fe=/path/to/frontend [--be=/path/to/api]
apiflow project scan web
apiflow impact ~/.apiflow/projects/web/fe.apimap --field=email

Every claim carries its confidence

Label What it means
exact the path is a literal at the call site
inferred one half was derived — a template string, an implicit verb
guess the path was assembled, or the screen was reached through a wide module hop
unresolved call sites the scanner could not read. 0 screens means nothing in this map calls it — never nothing calls it

Audited on a real Next.js app: 28 guess-level claims sampled, the endpoint was right 28/28, the screen 17/28. Read exact and inferred as answers, guess as a lead worth thirty seconds.

Documentation

Every page below is a transcript replayed by CI, not prose about the tool — one that stops matching what the tool prints fails the build. How that works →

shipped

Your first impact answer

The whole path against a four-file fixture committed to this repo.

upcoming

A wrapper definition is not a call

A real defect, written down before it is fixed. CI asserts this one still fails.

reference

probe — confirm by running

Turn “the code declares this field” into “the API actually sent it”.

reference

FE here, BE elsewhere

Two machines, one map, no server. The file travels; nothing is hosted.