# App map

Source: https://docs.coderhelm.com/concepts/app-map

How your app fits together across all its repositories, in plain words, made with the open-source Floorplan project and kept current with every push.

The **app map** shows how your team's app fits together across every repository CoderHelm works in: its parts, what calls what, the screens and everything behind them, and the outside services it uses. It is written in plain words, so people who don't read code can follow it.

Open **App map** in the menu, beside Chat and Knowledge (or search for it with Cmd+K). The first visit starts the first build. While it builds, the page lists the steps (reading the repositories, finding the parts and how they connect, describing each part, done) with the one it is on, when it started, and how long a map of your number of repositories usually takes; it fills in by itself, and you can leave the page meanwhile. If a build stops, the page says at which step, with one **Try again**.

Map viewer and extractor from the open-source [Floorplan](https://github.com/haydenschmitty/floorplan) project, MIT. CoderHelm runs a pinned Floorplan release and adds its own Recent work and Health, and Chat answers questions from it.

## What is on it [#what-is-on-it]

Floorplan reads every repository side by side and finds:

- **parts**: the app's main pieces, chosen and named in plain words, each with its files;
- **endpoints** the servers answer and **web requests** the apps make, matched to each other by method and address, across repositories too;
- **screens**, with everything behind each one: the code it uses, the requests it sends, the server code that answers and the outside services behind it;
- **outside services** from the packages and hosts the code uses (Stripe, AWS, SendGrid, Supabase, Firebase, Sanity and others);
- a short tour, and a name and one-line description for every file and endpoint.

The map's own search and Health buttons work as they do in Floorplan; its Screens and Flows menus are replaced by the Journeys and Screens list beside the map, and its tour doesn't open by itself.

## Finding your way [#finding-your-way]

The map opens on its **System** level, with **Journeys** and **Screens** beside it.

- **System** shows the whole app on one board, sized to read at first sight beside the list: the apps people use, the servers behind them, where they run and keep data, and the outside services they call. More than three outside services are one **Outside services** card, and cloud resources that run none of your code are shown by their cloud setup part; open either to see each one. Cloud pieces that start or deploy your code, like a CDN and its image function, stay on the board. If there is still more than fits, a **More of the system** card opens the rest. **Parts** shows the parts as Floorplan found them, and **Code** opens a part (the one you picked, else the largest) down to its folders, files and endpoints. Double-click any card to open it.
- **Journeys** are the paths through your app that matter, like signing in or booking: type a few words ("sign in") to find one. A journey plays on one board that never moves: its steps are numbered on the cards and listed beside them, each with what happens and where it is in the code (`file:line`, which opens on GitHub). **Back** and **Next**, or the arrow keys, light one step at a time.
- **Screens** lists every screen by app, signed-out screens first, then signed-in ones by area. Pick one to see everything behind it.
- Solid lines were found in the code. **Dashed** lines were inferred: joined by a name, an env var or infrastructure code rather than a call the code makes. The key at the bottom right says so.
- An answer in Chat that follows a journey links to it: **Open the journey in App map** opens this page playing it.
- On a phone, the **Journeys** button at the top opens the list over the map.

## Recent work and Health [#recent-work-and-health]

Two switches under the map add what CoderHelm knows, in the map's own Recent work and Health panels:

- **Recent work** marks the files CoderHelm's runs of the last two weeks changed, each run with its ticket, why (from the run's plan) and its pull request.
- **Health** adds CoderHelm's open security findings, infrastructure findings, log findings and alerts on the files and parts they concern, each linking to its finding in CoderHelm. Floorplan's own checks stay too, marked **Floorplan check**; one that names the same file and line as a CoderHelm finding is shown once.

## Ask about the map [#ask-about-the-map]

Questions about the map are answered by [Chat](/concepts/chat), and kept with your chats:

- Type a question in the box under the map ("what happens when someone books a slip?"). Chat answers from the map first, in numbered steps for how something happens, and reads the code for exact lines. The answer shows the parts it involves as a small map, and **Continue in Chat** opens the chat to keep going.
- Pick **Ask about this** on a card in the map to start a new chat about that part, with the question ready in the box.
- In Chat, any question about how your app fits together ("how does checkout work?", "what calls the bookings endpoint?", "what's behind the slip page?", "which service charges the card?") uses the map the same way. **Open in App map** under such an answer opens this page on the parts it involves.
- "What breaks if I change the bookings endpoint?" uses `map_impact`: the callers in your other repositories, the screens (and whether they need a signed-in user) and journeys that use it, and the outside services and cloud resources behind it, each with its file and line.
- AI tools connected through [/mcp](/mcp) can read the map too (`map_overview`, `map_find`, `map_part`, `map_screen`, `map_file`, `map_flow` and `map_impact`, under `code:read`). Its instructions tell them to call `map_impact` before changing shared code or an endpoint.

## Runs use the map [#runs-use-the-map]

Runs plan, write and review code one repository at a time; the map tells them what that code is to the rest of your app.

- The planner, the coder (and the rounds that fix CI, fix tests, or answer an incident or an alarm) and the reviewer can look things up on the map, like Chat.
- The planner starts with a short overview of the map: your repositories, the parts, and where the ticket's files sit. Its design gets an **Affected elsewhere** section: the other repositories, screens, journeys, outside services and cloud resources the change reaches, each with its file and line on the map. A plan that leaves out what the map shows goes back once, and a place the map doesn't have is left out.
- The reviewer is shown each endpoint a pull request changes that your other repositories call, with every caller's file and line, and raises a change that breaks them.
- With no map yet, or one more than a month old, runs work as before.
- The [Knowledge](/concepts/knowledge) page shows the map as a source: whether it is built, when, what it covers (screens per app, outside services, cloud links, repositories), and for admins **Build again**. It isn't split into passages like a knowledge base: runs and Chat look things up in it directly.

## How it is made and kept current [#how-it-is-made-and-kept-current]

- CoderHelm runs Floorplan's scripts in its code sandbox on a snapshot of the team's repositories, and does Floorplan's writing jobs (choosing the parts, describing files and endpoints) with your team's own model. Their cost is recorded under **App map** in Analytics.
- After a push to a default branch, the map is brought up to date with Floorplan's own update: unchanged files keep their descriptions, and only new or changed files and endpoints are described again. Nothing is redone when no default branch moved.
- When a CoderHelm release finds more in code than the one that made your map (new kinds of screens, a newer Floorplan), the map is built again once, by itself, the next time the page is opened: every file is read again, while the parts and the descriptions that still fit are kept. Until it's done the page shows the map from before, with **Rebuilding with this release's improvements**.
- The map keeps names, paths and short descriptions, never your source files. The viewer runs in a sandboxed frame on the page with no network access of its own.
- Above the map the page says when it was built and from how many repositories. Admins can build it again with the small **Build the map again** button there.
- One build runs at a time per team. While one is queued or running, the button is hidden and the page says what the build is doing; pressing it twice, or a second admin pressing it at the same time, never starts a second build.
- The map's layout keeps lines clear of the cards they don't join and spaces the lines that meet one card apart. The title and description of what the map shows (the app, or the part you opened) sit above the map, never over its cards.
- On a large app, a part with many files opens as smaller parts, one per folder (tests together in **Tests**), so no board holds more than about 30 cards and every part opens at once.
- At first the map shows how parts call each other (web requests, data, outside services). Lines for code imports are off; turn them on in the map's **Connection types** menu.
- **Full screen** (the button with outward arrows, under the zoom buttons) puts the map on the whole screen; press it again or Esc to come back. The button with four corners fits the map to its frame.
- The page reads the map straight from your install's storage once per build, and only Recent work and Health from the API, so a large map opens quickly. If a read takes longer than 20 seconds, the page says so with **Try again**.
