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.
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.
| View | Shows | Typical evidence |
|---|---|---|
| Architecture | Components, boundaries and interfaces | Services, modules, Docker Compose |
| Sequence | Ordered calls and responses | Handlers, clients, consumers |
| Data flow | Data from producers to stores | Schemas, migrations, queues |
| Dependencies | Module and package relationships | package.json, go.mod, pom.xml |
| Flowchart | One workflow from trigger to outcome | Controllers, commands, pipelines |
| CI/CD delivery | Build, test and deploy stages | GitHub 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