Coflow
Coflow is a visual framework for VS Code: it turns your code and your configuration into clear
pictures you can read at a glance. Open a project, a model, a compose file or a CI workflow, and
Coflow draws it beside the editor, read from the files themselves.
Code and configuration are scary when all you have is text. With Coflow, anything you open becomes a
picture you can read without reading every line: what runs, what talks to what, in which order, and
what is broken.
One visual language. Every view uses the same rules: one shape per kind of thing, colour always
with a shape, arrows from what happens first, grey dashed for what is unknown, double-click to go
inside, problems drawn on the shape and underlined in the editor. Learn one picture, read them all.

- Nothing to set up. The engine is built in. You need no Python, Docker or Node to see the pictures.
- Read, not run. Coflow reads your files. It runs your code only when you ask it to.
- Local and repeatable. No AI, no uploads, no telemetry. The same files always give the same picture.
What you can see
| View |
The question it answers |
Open it with |
| System |
What are the parts of this project, and how do they talk? |
Coflow: Open Map |
| Code map |
What is inside each part, and what calls what? (Python, JavaScript, TypeScript) |
Coflow: Open Map, then double-click |
| Flowchart |
What does this one function do, step by step? |
Visualize function above the function, or double-click down to it |
| Model |
How is this neural network built, and do the shapes fit? |
Visualize model above the class |
| Docker |
Which containers run, on which ports, in what order? |
Visualize this file above services: or FROM |
| CI/CD |
What happens when I push, and in what order? |
Visualize this file above jobs: |
System: how the parts talk
The project drawn the way an architect draws it on a whiteboard: the apps people use, the gateway,
your services and workers, the databases, caches and queues, and the outside services, in tiers
from left to right. Each arrow says what it carries (REST · 58 endpoints, SQL · 37 tables). Click
a box to light up its connections; the details list each one, down to the route and the line.
Double-click a part to go inside it: its folders and files on the Code map. A part that runs as a
compose service has Open in Docker view in its details; a part that holds models has a
N models › button.
From main shows one program as it starts: main at the bottom, then the middleware, routers,
routes and handlers it wires, up to the stores they reach. Switch with System · From main · Code
in the map's toolbar.

Code map: what is inside
The big blocks of the project and how they talk: HTTP requests from the frontend to backend routes,
reads of JSON config, databases, remote APIs, files and environment variables. Double-click a block to
go inside: a package, a module, a class. Code that never runs is faded, and a request to a route that
does not exist is red.

JavaScript and TypeScript
The Code map reads JavaScript and TypeScript with the same levels as Python: folders, modules,
classes, functions, imports and calls. A small app is drawn as cards on one level: ROUTER with its
routes as pills (GET /articles, a lock when the route needs sign-in), SERVICE, DATABASE
CLIENT with the models it uses, MIDDLEWARE with the routes it guards, COMPONENT, HOOK
and PAGE. Express, Nest, Next.js, React and Vue apps are recognised. A request from the frontend
is linked to the backend route that serves it, in Python or in JavaScript. Open it with Coflow:
Open Map.

Flowchart: what one function does
Inside a Python function you see its whole body: if and match branches, loops, try/except,
return and raise. Each call is a row with typed inputs and a typed output.
Click Visualize function above any function, or Visualize class above any class, to open it
straight from the code: a Python function as its flowchart, a class with its methods and how they call
each other. In JavaScript and TypeScript, the function is shown on the Code map with what calls it and
what it calls lit.

To see a real run, click Record a Run… and pick a script or a test: Coflow runs it and replays
it on the map, with the real values at each step.
Model: how a neural network is built
In a file with a PyTorch, Keras, Flax or Lightning model, click Visualize model above the class.
The model is drawn from input to output, with the tensor shapes between the layers and the parameter
counts. Sizes keep the code's own names (channels, out_dim). Clear draws each tensor as its
shape; Paper draws the figure a paper would; Blocks draws one card per layer with its
parameters and key arguments; Compact one pill per layer. A layer fed a shape it cannot take
(nn.Linear(400, 120) after a (B, 256) tensor) is drawn in red and underlined in the editor,
before you run anything.


Docker: what runs and how it is wired
On a compose file, each service is a machine. Its ports sit on its edge with both numbers
(8080 → 80, or 127.0.0.1:13306 → 3306 when a port is open to your computer only), so you see at
once what you can open. Networks are zones, volumes
are drums, and arrows show the start order (a pulse means "waits until healthy"). On a Dockerfile,
the build stages run top to bottom, with COPY --from drawn between them. Override files,
include, extends, profiles, !reset and !override are merged the way docker compose merges
them. A value known only at run time stays as it is written (${PORT}), and so does one your .env
file sets, marked set in .env: Coflow never shows a default that compose would not use. A secret is shown as ••••.


CI/CD: what happens when you push
On a GitHub Actions workflow, the pipeline reads left to right: the triggers (push, pull request,
schedule, manual), then the jobs in columns by needs, then where things are published. A matrix
is one job marked ×N, with its rows. Reusable workflows open in place, artifacts travel between
jobs as labelled parcels, and if: conditions sit on the arrows. Double-click a job to see its steps,
each said in a few words (npm ci, gh release create).
Both views come in three styles: Clear, Reference (the tool's own diagram) and Compact,
which switches on by itself when a level has too many wires to read (the toolbar says why, such as
Compact (auto: 49 wires between 24 jobs), and a click on another style draws it anyway). Beside the
editor, a big picture opens at a size you can read: the cut edge fades, a chip counts what lies
beyond (→ 2 more services), and Zoomed to read · Fit all shows everything. Problems such as a needs
naming no job or two services on one host port are drawn on the shape and underlined in the editor;
a problem is shown as an error only when the real tool is proven to reject the same file.


And also
- The Coflow side bar. Click the Coflow icon in the activity bar: Visualize lists every
picture of the project (the map, the models found, each compose file, Dockerfile and workflow), one
click away; Findings lists entry points, code no entry
point reaches, requests to missing routes and JSON keys no code reads. Never-run code is faded in
the editor.
- Search. The Search code box in the map's toolbar finds any function, class, module or route.
- Export. Every view saves to a file you can share: HTML, SVG, PNG or JSON, and the map also to
Mermaid, Markdown, Graphviz DOT, PlantUML, GraphML and CSV.

The visual language in one minute
Every view follows the same rules, so once you can read one picture you can read them all.
- Shapes are things, wires are relations. One shape per kind of thing: a service is a machine, a
job is a card, a function is a card with its inputs and its output, a database is a cylinder.
- Colour always comes with a shape. The colours are safe for colour-blind readers, and every
colour also has its own shape, so the picture still reads in grey.
- Time flows one way. An arrow goes from what happens first to what waits for it.
- Grey dashed means unknown. A grey dashed line or chip is a guess, or a value that only exists
at run time (
${VAR}, ${{ matrix.os }}); Coflow shows the hole and never invents the value.
Coloured dashes have their own meaning, given in each view's legend line (a network, a bind mount,
an artifact, database access): those are facts. A secret is a lock and dots.
- Every shape leads to its code. Every shape knows its file and line: click it in the Docker and
CI/CD views, use the details panel on the map, press O in the Model view (see the keys below).
- Go inside. Double-click, or press Enter, to open a level. The breadcrumb shows where you
are, and Alt+← goes back.
- Problems where they are. A problem is drawn on the shape it concerns, underlined on the exact
line in the editor and listed in the Problems panel. A solid red outline is an error, a dashed
one a warning, a small i a hint or a note that may be fine.
Quick start
- Open a project folder and trust it when VS Code asks.
- Run Coflow: Open Map (
Ctrl+Alt+M in a Python file, Cmd+Alt+M on macOS), or click
Visualize this file above a compose file, a Dockerfile or a workflow, Visualize model
above a model class, or Visualize function / Visualize class above any function or class.
The picture opens beside your code.
- Double-click to go inside. Alt+← goes back.
Help > Welcome > Get Started with Coflow walks through the map; the Model, Docker and CI/CD views
open from the CodeLens above the file.
Keyboard and mouse
|
Map (System, Code, Flowchart) |
Model view |
Docker and CI/CD views |
| Go inside |
double-click, or Enter |
double-click, or Enter |
double-click, or Enter |
| Open the code |
the details panel, or double-click a step inside a function |
double-click a layer, or O |
click |
| Up one level |
Esc (the first press clears the focus) |
Backspace |
Backspace |
| Back |
Alt+← or Backspace |
Alt+← |
Alt+← |
| Zoom |
Ctrl + scroll, + / -; F fits, 0 is actual size |
Ctrl + scroll, + / -; 0 fits |
Ctrl + scroll, + / -; F or 0 fits |
| Next problem |
|
F8 |
F8 |
| A box's wires |
] / [ step through them (Code map), Enter goes to the other end |
|
|
On the map, Esc goes up; in the other views, Backspace does. During a replay, Space plays
or pauses and ← / → step.
Commands
| Command |
Where |
| Coflow: Open Map |
Ctrl+Alt+M / Cmd+Alt+M in a Python file, editor title bar, the Coflow side bar |
| Coflow: Show What Changed |
Command Palette, or the Source Control view's title bar: the map marked with what is new, changed or removed since the last commit or a branch, and the entry points it reaches |
| Coflow: Show Current Function on Map |
Ctrl+Alt+R / Cmd+Alt+R, editor context menu, or click the cursor's place in the status bar (Python, JavaScript, TypeScript) |
| Coflow: Visualize Function or Class |
Visualize function / Visualize class CodeLens, editor context menu (Python, JavaScript, TypeScript) |
| Coflow: Record a Run… |
map title bar, editor Run menu, Explorer context menu (Python) |
| Coflow: Refresh Map |
map title bar (the map also refreshes on save) |
| Coflow: Export Map… |
map title bar menu: the project or what is on screen, in 8 formats, or a picture |
| Coflow: Export Map as HTML… |
map title bar menu: one self-contained file to share |
| Coflow: Visualize Model |
Visualize model CodeLens, editor title bar, editor and Explorer context menus, the map, the Coflow side bar |
| Coflow: Refresh Model View |
Model view title bar |
| Coflow: Set Model Input Shape… |
Model view title bar menu |
| Coflow: Measure Exact Shapes (Runs the Model) |
Model view title bar |
| Coflow: Export Model… |
Model view title bar: HTML, SVG, PNG or JSON |
| Coflow: Visualize This File |
Visualize this file CodeLens, editor title bar, editor and Explorer context menus, the Coflow side bar, on compose files, Dockerfiles, workflows and actions |
| Coflow: Visualize Infrastructure |
Command Palette, or the Explorer context menu on the project folder: every compose file, Dockerfile and workflow |
| Coflow: Visualize Docker |
Command Palette: compose files and Dockerfiles only |
| Coflow: Visualize CI/CD |
Command Palette: workflows and actions only |
| Coflow: Refresh Infrastructure View |
Infrastructure view title bar (it also refreshes on save) |
| Coflow: Export Infrastructure… |
Infrastructure view title bar: HTML, SVG, PNG or JSON |
| Coflow: Optional Tools: How to Install… |
Command Palette: how to install docker compose and actionlint |
| Coflow: Copy Diagnostics (for a Bug Report) |
Command Palette: versions and settings for a bug report, no code |
| Coflow: Show Log |
the title bar menu of each view |
Settings
| Setting |
Default |
What it does |
coflow.pythonPath |
empty |
The interpreter used to record a run and to measure exact shapes. Empty: the one selected in the Python extension, else python3. |
coflow.analyzeOnSave |
true |
Analyze the project again when a project file (Python, JSON, JavaScript, TypeScript, compose, Dockerfile…) is saved. |
coflow.exclude |
[] |
Glob patterns to leave out, such as legacy/**. Virtual environments, node_modules, build folders and caches are always left out. |
coflow.codeLens |
true |
Show Visualize function and Visualize class above each function and class (Python, JavaScript, TypeScript). |
coflow.cursorMode |
follow |
How the map follows the editor cursor: follow goes to the function or class under it and outlines it (and what its line calls), reveal only outlines it when it is on screen, manual waits for Show Current Function on Map. The status bar always shows where the cursor is in the project. |
coflow.followCursor |
true |
Replaced by coflow.cursorMode (off here is reveal). |
coflow.showImports |
false |
Also draw import arrows between modules. |
coflow.showOnlyConnected |
false |
Hide the boxes with no arrow at the level on screen. |
coflow.showTests |
true |
Show test files, test folders and test functions. |
coflow.showNeverRun |
true |
Show code no entry point reaches (faded). |
coflow.showDocuments |
false |
Show data and documentation files: Markdown, YAML, TOML, text, INI/CFG, CSV. |
coflow.showInstalledPackages |
false |
Show the installed (third-party) packages the code calls. |
coflow.showStandardLibrary |
false |
Show the standard-library modules the code calls. |
coflow.system.* |
|
What the System and From main views show: each tier, guessed parts, connection labels, dev-only connections, deployment frames and direction; for From main, startup, depth, stores and triggers. Also in the map's View Options. |
coflow.playbackSpeed |
1 |
Replay speed, from 0.25 to 4. |
coflow.recordTimeoutSeconds |
60 |
Stop a recorded run after this many seconds (5 to 3600). |
coflow.recordMaxEvents |
20000 |
The most calls and returns a recorded run keeps. |
coflow.semanticZoom |
false |
Zooming far into a box goes inside it, and zooming far out goes up a level. |
coflow.layoutFile |
true |
Save the boxes you moved in .vscode/coflow-layout.json, so a team can share one arrangement. |
coflow.model.* |
|
The Model view: when it is offered (enabled, codeLens, heuristics), shape checks in the editor (checkShapes), input shapes per model (inputShapes), exact shapes (exactShapes: off / manual / auto, exactShapesTimeoutSeconds), the size limit (maxNodes) and what it draws (style, direction and more). Also in the view's View Options. |
coflow.infra.enabled |
true |
Offer the Docker and CI/CD views, their CodeLens and their checks. |
coflow.infra.codeLens |
true |
Show Visualize this file above services:, the first FROM, jobs:, and runs: in an action. |
coflow.infra.problems |
all |
Problems of compose files, Dockerfiles and workflows on the exact line: all, warnings (errors and warnings only) or off (the view still shows them). |
coflow.infra.style |
clear |
How the Docker and CI/CD views are drawn: clear, reference (the tool's own diagram) or compact. Also in the view's toolbar. |
coflow.infra.autoCompact |
true |
Switch to the compact style on a level with too many wires to read. |
coflow.infra.tools |
auto |
auto: when docker compose or actionlint is installed, use it to double-check the problems. off: never run a tool. |
coflow.tools.hints |
true |
Show one quiet hint when an optional tool would double-check the view you opened. |
The coflow.show* settings are also the map's View Options menu (⋯). Whatever the options hide
is counted on the map ("5 hidden here"), so nothing disappears silently. Colour themes can override
coflow.missingRouteForeground, coflow.activeStepForeground and coflow.ranForeground.
Coflow works fully on its own: every view and every check is Coflow's own reading of your files.
If docker compose or actionlint is already on your machine, Coflow uses it to double-check its
problems each time it checks a compose file or workflow (when you open or save one, and when a view
is drawn); a problem the tool confirms says verified by docker compose or verified by
actionlint. When a tool would help, Coflow shows one quiet hint (at most once per tool and
workspace, never at startup) with a How to Install button. Turn the hint off with
coflow.tools.hints, and the tools with coflow.infra.tools.
A tool is only run read-only and offline (docker compose config and actionlint; never
docker build, run or up), and never from a program inside your project folder.
Privacy and security
- Coflow reads your files and does not run them. It runs code only when you ask: Record a
Run… runs the script or test you pick, and Measure Exact Shapes imports your model's file
(its top-level code runs) and runs the model once without real data (on PyTorch's meta device, or
symbolically for Keras and Flax). Both use your own interpreter; see
SECURITY.md for the details.
- Your installed tools. If
docker compose or actionlint is installed, Coflow runs it
read-only and offline when it checks a compose file or workflow; coflow.infra.tools: off stops it.
- Secrets stay hidden. In the Docker and CI/CD views a value is shown only when it is clearly
harmless (a number, a port, a path, a host name); everything else is
••••, in the views and in
exports. From a .env file these views keep only the variable names; the System view keeps only
addresses (*_URL, *_HOST, *_PORT…), never secret-looking keys.
- What Coflow writes into your project. Only what you ask for. Clicking a view option, a style
or a direction, in any view, writes no file: VS Code remembers it for the workspace. Boxes you drag
on the map are saved in
.vscode/coflow-layout.json (turn off with coflow.layoutFile), Share in
Workspace Settings writes a model's input shape to .vscode/settings.json, and exports go where
you save them.
- Offline. Coflow makes no network requests, collects no telemetry and needs no account or AI.
(The optional Pro licensing, off in this build, is the one exception; see below.)
- Trusted folders only. The extension is off in Restricted Mode, because recording a run and
measuring shapes run code.
See the privacy statement.
Requirements
- VS Code 1.100 or newer. Nothing else to install for the pictures: the engine is built in, for
every platform VS Code runs on (Windows x64 and ARM64, macOS Apple silicon and Intel, Linux x64,
ARM64 and ARMv7 with glibc 2.28+ (ARMv7 2.31+), Alpine 3.20+ x64 and ARM64).
- Python 3.10 or newer, only to record a run. The model's own library in the project's Python, only
to measure exact shapes.
- The Python extension is optional: it is only used to find the interpreter you selected.
Known limits
- Languages. Python is read in full. JavaScript and TypeScript get the Code map (modules,
classes, functions, imports, calls, routes), but not yet the flowchart inside a function or the
replay. In
.vue and .svelte files only the <script> part is read.
- Configuration. Docker Compose, Dockerfiles and GitHub Actions. Kubernetes and Airflow views
come in a later version (the Kubernetes and Orchestration tabs stay greyed until then); the
System view already uses Kubernetes manifests to find the parts. Other CI systems (GitLab CI,
Jenkins…) are not read yet.
- What only exists at run time stays open. A call through
getattr or a dictionary of handlers,
a ${VAR} set by your shell, a model built from a downloaded config: Coflow draws them grey dashed
or as written, and does not guess. A recorded run shows what really happened.
- Big pictures scroll. Beside the editor, a large compose file or pipeline opens at a readable
size and you pan; the faded edge and
→ N more say what is off screen. Press F to fit
everything (0 in the Model view).
Links
About the author
Coflow is designed and built by Ismail Ben Alla. For questions, feedback or collaboration, reach
out through the portfolio and its
contact page, on
LinkedIn or GitHub.
Optional Pro licensing
All current features are free. Pro is not on sale in this build, and its licensing commands stay
hidden until a product is configured. Once enabled, activation and periodic validation send your
license key and an activation label or ID to Lemon Squeezy over HTTPS; project source code is never
sent. Keys are stored in VS Code secret storage. A verified license works offline for up to seven
days after its last successful check, limited by known license expiry. Free features continue when
Pro access ends.
| |