The diagram
Read one entry point as a flow of calls, drawn from the code, down to the data it touches.
Diagram is the main screen. It draws the call flow of one entry point, from the first filter down to the database, cache, queue or outside service it reaches. Everything on it comes from code the engine read on your computer, with the file and line.

What you see
| Element | Meaning |
|---|---|
| Start | The entry point: an HTTP route, gRPC method, consumer, job, CLI command or screen. |
| Block | A function or method, with its class and file. Kinds include Service, Repository, External client, Event, Config, Component and Hook. |
| Line | A call, labelled when it is more: reads, writes, publishes, consumes, HTTP, configures. |
| Resource | A Database, Cache, Redis, HTTP API, Topic or Other repo, with the table, key or path the call uses. |
| Numbered steps | Calls inside one function, in the order the code makes them. |
| End | Where the flow returns. |
Checks, loops and errors
Every check in the code is drawn with where it leads: if … with its yes and no branches, for each …, while …, try, on error and finally. A branch that throws shows the exception it throws. When a call's result is kept, a chip says so (Result assigned to …).
Resilience settings sit on the block they guard: retry, rate limit, circuit breaker, timeout, bulkhead and concurrency limit. A transactional method is framed with its annotation, for example @Transactional(readOnly).
The layer strip
Before your handler, a request passes framework layers: auth, input validation, rate limit, CORS, CSRF, session, cache, logging, tracing, timeout, proxy and more. The strip after Start shows them as dots (The request passes N layers before the handler). Collapse the layer strip folds it away.
On the way out
The strip covers the response too: interceptors, advices, after_request, response filters and the like, and which error handler turns an error into which status. This works for Spring, JAX-RS, Rails, Laravel, Symfony, Slim, ASP.NET Core, Express, Fastify, Koa, Hono, Nest, FastAPI, Django, Flask, axum, actix, echo, fiber and gin. The chip beside End counts the layers on the way out.
Frontend screens
A screen in React, Next, Vue, Nuxt, Angular or Svelte is drawn in three parts: Data in (what it loads), Shows (what it renders) and Interactions (what you can do on it).
- Loading, error and empty states show as chips on the card instead of a row of
ifblocks. - Each interaction says which parts of the page redraw after it.
- Reads and writes of URL and query state appear as the statement, and a query shows how often it refetches.
- What runs when the screen opens is listed as on open steps, with the component's local state.
- A plain HTML site with several pages gets one screen per page.
Code behind a block
Click a block for its menu: Quick look shows the code in place, Changes shows its diff, Open in Source opens it in the editor, and Open in … opens it in your IDE. peekcode ranks the IDEs it finds by file type (IntelliJ IDEA for Java and Kotlin, PyCharm for Python, WebStorm for TypeScript, GoLand, RustRover, PhpStorm, RubyMine, Rider, Xcode), then VS Code and Cursor; the rest are under Other IDEs.
Select several blocks (drag with V, or ⌘A) for View code, which opens all of them in one sheet, Zoom to and Clear selection.
Sub-diagrams
A block that calls further code has its own diagram, one level deeper.
| Command | Does |
|---|---|
| Open sub-diagram | Opens that block's diagram in place, beside the block. |
| Open all sub-diagrams | Opens the sub-diagrams of every block on the flow. |
| Sub-diagrams beside blocks | In the View menu: opens 1 to N levels at once, or closes them all. |
| Up one level | Goes back to the diagram above. |
| Open alone | Makes the sub-diagram the whole canvas. |
Describe sub-diagrams in the Diagram AI menu writes business descriptions for them, down to the depth you pick.
View options
| Option | Does |
|---|---|
| Changes | Show only changed steps or Show the full flow when comparing. |
| Block detail level | Compact, Detailed or Code (the statement as written). |
| Display names | Business names written by AI, or Code names. |
| Canvas background | Dots, Crosses, Grid or Plain (also in Settings → Appearance). |
Moving around
- H hand tool, V select tool, hold Space to pan.
- ⌘ + scroll or a touchpad pinch to zoom. The canvas controls have Fit to view, Actual size (100%) and Reset layout.
- ⌘F finds a block by name on this screen, with previous and next.
What the engine could not read
If the engine can't resolve a call, it does not guess. The diagram says N spots not analyzed, split into calls to outside code and calls whose target is decided at run time (dynamic target). Complete the diagram can add them with file and line evidence, marked Added by AI. A step marked declared comes from your team's .peekcode configuration, not from the analyzer.
If type analysis is missing for a language, a banner says Limited type analysis and offers Reinstall peekcode.