Skip to content
Nensea

Diagram tools · Nensea

Turn a GitHub repository into an architecture diagram.

Most architecture diagrams describe the system someone remembers. Nensea reads the repository instead. Point it at a GitHub or GitLab URL, pick a branch or commit and the kind of view you need, and get an editable diagram where each element cites the files it came from.

Example: map a service repository

Nensea analyses the most relevant files, such as entry points, manifests, Docker Compose and infrastructure configuration, and only draws links it can support with evidence. Uncertain links are left out rather than guessed.

HTTPSpublishwriteWeb appOrders APIQueueDatabase
Web app calls Orders API. Orders API writes to Database and publishes to Queue. This illustration explains the example; it is not an interactive editor.

Example prompt

Repository: github.com/acme/shop at main. View: architecture. Focus on the checkout path: which services handle an order, where data is stored and which events are published.

Six views you can generate from code

Choose the view that answers your question.

Six views you can generate from code
ViewShowsTypical evidence
ArchitectureComponents, boundaries and interfacesServices, modules, Docker Compose
SequenceOrdered calls and responsesHandlers, clients, consumers
Data flowData from producers to storesSchemas, migrations, queues
DependenciesModule and package relationshipspackage.json, go.mod, pom.xml
FlowchartOne workflow from trigger to outcomeControllers, commands, pipelines
CI/CD deliveryBuild, test and deploy stagesGitHub Actions, GitLab CI, Terraform

Private repositories

Connect your GitHub account to pick from your repositories, or supply a one-off access token for a single request. The token is used for that request only.

Repository content is treated as untrusted evidence: instructions embedded in files are ignored, and the diagram reflects what the code implements.

After generation: refine, review, keep

The output is a normal Nensea diagram. Rename elements, add context the code cannot tell you, edit it as Structurizr or Mermaid, and propose larger changes on a branch with a visual diff and reviewed merge.

Common questions

Can AI generate an architecture diagram from code?
Yes. Nensea analyses selected files from a GitHub or GitLab repository and generates an editable architecture, sequence, data-flow, dependency, flowchart or delivery diagram, citing file paths and line ranges.
Does it work with private repositories?
Yes, through a GitHub connection or a one-off access token used only for that request.
Will the diagram include things that are not in the code?
Nensea only draws relationships it can support with evidence and leaves uncertain links out. You can add context by hand afterwards.

Put your next diagram in context.

Tell us what your team, class or lab needs to explain, and we’ll set you up with Nensea’s editable AI diagrams.

Get started with Nensea