> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flowmaps.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# What is Flowmaps

> Flowmaps maps each entry point in your repos into a flow: trigger, steps and outcomes, with each step citing the code behind it, kept current as you merge.

Flowmaps reads your GitHub repos, finds the places where work starts (HTTP routes, RPCs, webhooks, queue consumers, scheduled jobs, CLI commands and GraphQL fields) and writes down what each one does as a **flow**. A flow reads like a short procedure: what triggers it, each step in order, and the ways it can end. Every step cites the exact lines of code that back it, so you can check any claim in one click instead of taking it on trust.

## What a flow is

A flow follows one entry point from start to finish:

* **Trigger.** What starts it: `POST /api/orders`, a message on the `orders` queue, a nightly job, a `billing.v1.Invoices/Create` RPC.
* **Steps.** What the code does, in the order it runs, in plain words. Steps that check something and stop the request, branches that send the request down different paths, reads and writes, calls to other services and to vendors such as Stripe.
* **Outcomes.** The ways the flow ends that Flowmaps found: what the caller gets on success, and what it gets when a step fails.
* **Evidence.** Each step points at the file and line range that performs it, at a specific commit. Flowmaps stores these pointers, not your code.

Each step also says how far it was checked against the code it cites. A step is **verified** when a separate check confirmed that the cited lines show it, and **inferred** when that check couldn't confirm it; an inferred step keeps the reason. Where Flowmaps can't follow the code at all, it leaves a **gap** in the flow rather than a guess.

## An example flow

Here is the kind of flow Flowmaps writes for an order endpoint in a made-up repo, `acme/shop`:

> **HTTP POST /api/orders**
> Places an order for the signed-in customer's cart, charging their card through Stripe.
>
> 1. Stop if the request has no valid session token. `src/middleware/auth.ts:14-31`
> 2. Stop if the cart is empty. `src/routes/orders.ts:42-45`
> 3. Read the cart's items and current prices. `src/routes/orders.ts:47-58`
> 4. Charge the card through Stripe. `src/payments/charge.ts:20-41`
> 5. Save the order with its items. `src/db/orders.ts:63-88`
> 6. Publish an `order.created` event to the orders queue. `src/events/publish.ts:9-17`
>
> **Ends with**
>
> * The order is created and the caller gets 201 with the order's id.
> * When the token is missing or expired, the caller gets 401.
> * When the cart is empty, the caller gets 400.
> * When Stripe declines the card, the caller gets 402 and no order is saved.

In the app, step 4 also shows that it reaches an external vendor (Stripe), and step 6 links to the flow that consumes `order.created`, if that consumer is mapped too.

![A flow page for an HTTP endpoint, listing its steps in order with a details panel beside them](https://mintcdn.com/flowmaps/Laxd03p6_qALyN3o/images/flow-view-light.png?fit=max\&auto=format\&n=Laxd03p6_qALyN3o\&q=85\&s=485b83bbcafeddff7b499093597aead4)

A flow page: its steps in order, how many are verified, and the step panel with the lines each step cites.

## Who uses Flowmaps

* **Developers new to a codebase.** Read what each endpoint does before opening a single file, then open only the lines a step cites.
* **Reviewers.** A [PR preview](https://docs.flowmaps.ai/pull-requests/previews.md) shows which flows a pull request changes and how, step by step, before it merges.
* **On-call engineers.** During an incident, a flow's failure endings show what the caller gets when each step fails, and which vendors and services the request depends on.
* **Coding agents.** Claude Code, VS Code, Zed and Codex read the same flows over [MCP](https://docs.flowmaps.ai/agents/connect.md), so an agent can check which flows a file change touches before it edits anything.
* **Engineering leads.** [Connections](https://docs.flowmaps.ai/flows/connections.md) shows how flows link across repos and which third-party vendors each repo calls.

## Flows stay current

When a pull request merges to a repo's default branch, Flowmaps updates the flows it changed and moves the line numbers of the ones it didn't. Each flow keeps a [history](https://docs.flowmaps.ai/flows/history.md) of every change and the pull request that made it. See [Keeping flows current](https://docs.flowmaps.ai/mapping/keeping-flows-current.md).

## Next steps

> [card] [Quickstart](https://docs.flowmaps.ai/quickstart.md)
>
> Sign in, connect GitHub, map your first repo and read a flow.

> [card] [Core concepts](https://docs.flowmaps.ai/concepts.md)
>
> Entry points, steps, evidence, verification, gaps and the other terms the app uses.

> [card] [Read a flow](https://docs.flowmaps.ai/flows/flow-view.md)
>
> Everything on the flow page, from branches to failure endings.

> [card] [Connect your agent](https://docs.flowmaps.ai/agents/connect.md)
>
> Give your coding agent your flows over MCP.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.