Ismail Ben Alla

Coflow

Visual framework for VS Code

See your code, models and pipelines.

Coflow turns code and configuration into clear pictures beside your editor: the architecture of a project, what runs from main, every function as a flowchart, deep-learning models, Docker Compose files, Dockerfiles and GitHub Actions pipelines, all in one visual language and read from the files themselves.

Or search for benisalla.coflow in the Extensions view (Ctrl+Shift+X).

The System view of a full-stack app: the React frontend, the Traefik gateway, the FastAPI backend, Postgres, Mailpit and Sentry, with labelled connectionsThe System view of a full-stack app: the React frontend, the Traefik gateway, the FastAPI backend, Postgres, Mailpit and Sentry, with labelled connections
The System view of a full-stack app: the React frontend, the Traefik gateway, the FastAPI backend, Postgres, Mailpit and Sentry, with labelled connections

How it works

One visual language for every layer: start from the system, go down into the code, then open a model, a compose file or a pipeline.

  1. The system

    Start with the architecture: apps, gateway, services, workers, databases, queues and outside services, read from compose files, nginx, frontends and routes, with every connection labelled. From main then shows the program as it runs, from the file that starts it.

    The System view: clients, gateway, services and data stores in tiers, with labelled connectionsThe System view: clients, gateway, services and data stores in tiers, with labelled connections
  2. The code

    Double-click to go inside: a block, a package, a module, a class, then one function drawn line by line as a flowchart. Python, JavaScript and TypeScript are mapped, with routes, services and database clients.

    The top level of the code map: frontend, backend, config, tests, legacy code that never runs and the outside world, with HTTP requests and a missing routeThe top level of the code map: frontend, backend, config, tests, legacy code that never runs and the outside world, with HTTP requests and a missing route
  3. Models and infrastructure

    Above a model class, Visualize model draws the network as papers do, with every tensor shape. Above a compose file, a Dockerfile or a workflow, Visualize this file draws the containers or the pipeline.

    nanoGPT drawn by the Model view in the Paper style: embeddings, 12 transformer blocks and the output layernanoGPT drawn by the Model view in the Paper style: embeddings, 12 transformer blocks and the output layer

Screenshots

Each screenshot follows this page’s light or dark theme, as Coflow follows VS Code’s.

Features

Get started in a minute

  1. Install

    Search for Coflow in the Extensions view, or install it from the VS Code Marketplace or Open VSX. Nothing else to install: the engine is built in.

  2. Open a project

    Open a folder and trust it when VS Code asks.

  3. Open a picture

    Press Ctrl+Alt+M (Cmd+Alt+M on macOS) for the map. Click Visualize model above a model class, or Visualize this file in a compose file, a Dockerfile or a workflow.

  4. Go inside

    Double-click to go inside, and press Alt+← to go back.

Questions

Does my code leave my machine?

No. Coflow reads your files on your computer and draws the pictures there. It sends no telemetry, needs no account and uses no AI. See the privacy statement.

What can it draw?

Python, JavaScript and TypeScript code (the system, From main and the code map; flowcharts for Python), deep-learning models in PyTorch, Keras and Flax, Docker Compose files, Dockerfiles and GitHub Actions workflows. Kubernetes and Airflow come in a later version.

Does it run my code?

Not to draw the pictures: it reads your files and never runs them. It runs code only when you ask: Record a Run… runs the script or test you choose, and Measure Exact Shapes runs a model once. If docker compose or actionlint is installed, Coflow runs it read-only and offline to double-check problems (setting coflow.infra.tools).

What does it cost? What is the license?

Every current feature is free. Coflow is proprietary software: you may use it, but not copy, modify or redistribute it.

What do I need?

VS Code 1.100 or newer, on Windows, macOS or Linux. Nothing else for the pictures. Python 3.10 or newer only to record a run, and the model's own library only to measure exact shapes.

Where do I report a bug or ask for a feature?

By email. The support page says what to include so it can be fixed quickly.

What’s new

  1. 0.11.0

    • Docker view: compose files and Dockerfiles, with secrets hidden and errors checked against docker compose config
    • CI/CD view: GitHub Actions workflows and each job's steps, with errors checked against actionlint
    • JavaScript and TypeScript on the code map: routes, services, middleware and database clients
    • View choices never write files into your project
  2. 0.10.0

    • Model view: PyTorch, Keras and Flax models in four styles, with tensor shapes and parameter counts
    • Every platform VS Code runs on, with the engine built in
  3. 0.9.0

    • Record a run and replay it on the map
    • Export Map…, and exported maps hide credentials
    • Fewer false "never runs" and "missing routes"

Full changelog on the VS Code Marketplace →