Skip to content

Turn code or ideas into diagrams you can edit

Paste a GitHub repo or describe a system. Nensea draws architecture, sequence, data-model and flowchart diagrams you can edit on the canvas or as code.

New diagram Early access

ShopperStorefrontNext.jsAPI gatewayEnvoyOrdersKotlinPaymentsNode.jsOrders DBPostgreSQLStripeExternal
  • Works with
  • GitHub
  • GitLab
  • Mermaid
  • Structurizr DSL
  • PlantUML
  • D2
  • PostgreSQL
  • MySQL
  • SQL Server
  • SQLite
  • draw.io
  • Visio
  • Excalidraw
  • OpenAPI 3.1

Code to diagram and diagram to code

It works in both directions

Code Diagram

Calls in your code become boxes and arrows. Select a line to see the box it produced.

orders/Checkout.ktyour code
  1. }
CheckoutOrdersPaymentsEvent bus
  • Architecture, sequence, data-flow and dependency views
  • Private repositories through a GitHub connection or a one-off token
  • Uncertain links are left out instead of guessed

Diagram Code

Open any view as diagram code, or turn a data model into SQL. Edit the text and the canvas redraws.

Your diagramon the canvas
StorefrontAPI gatewayOrdersPaymentsOrders DBStripe
  1. flowchart TB
  • Mermaid, Structurizr DSL, PlantUML and D2
  • SQL DDL for PostgreSQL, MySQL, SQL Server and SQLite
  • A loss report lists anything an export format cannot express

See what changes before it merges

Propose a change on a branch. Reviewers see what was added, changed and removed, and approve it before it reaches main.

OrdersEvent busNotificationsChangedFraud scoringAddedOrder pollerRemoved

Comment on Notifications: should retries stop after three attempts?

Everything it takes to keep diagrams alive

  • Linked C4 views

    Context, container and component views come from one model. Rename something once and every view updates.

  • Decision records

    Link architecture decision records and requirements to the elements they affect.

  • Real-time collaboration

    Work on the same diagram together with live cursors. Pin a comment to an element and mention who should answer.

  • Version history

    Undo anything and go back to any earlier version.

  • Import and export

    Bring in draw.io, Visio or Excalidraw files. Export SVG, PNG, PDF or draw.io.

  • Governance

    Roles, audit log, retention rules, legal holds and IP allowlists for the whole workspace.

  • Offline editing

    Keep working without a connection and sync when you are back.

From a repository or a sentence in four steps

  1. Step 1

    Connect or describe

    Connect GitHub, paste a GitHub or GitLab URL at a branch or commit, or describe the system in plain language.

  2. Step 2

    Generate linked views

    Nensea drafts C4, sequence, data-flow or dependency views with evidence for each element, laid out and fully editable.

  3. Step 3

    Refine on canvas or in code

    Edit visually or switch to Mermaid, Structurizr, PlantUML or D2. Generate SQL DDL from your data model.

  4. Step 4

    Collaborate and merge

    Edit together in real time, propose bigger changes on a branch, review the visual diff and merge when it is approved.

Read the prompt guide

For anyone who explains how things work

Software and solution architects

Model the system once, then produce the context, container and component views each audience needs.

Tech leads and staff engineers

Document what the code actually does for design reviews, onboarding and incident write-ups.

Platform and DevOps teams

Map services, event flows, dependencies and delivery pipelines straight from repositories.

Consultants and agencies

Understand an unfamiliar codebase in hours, not weeks, and hand over an editable model of it.

Students and educators

Plan algorithms and projects, build concept maps and lesson flows, and work on the same diagram as a class.

Researchers and analysts

Lay out study designs, data pipelines and processes, and keep every revision for co-authors and reviewers.

Nensea, whiteboards and diagram-as-code

Nensea compared with freeform whiteboards and diagram-as-code tools
CapabilityNenseaWhite­boardAs code
Generate diagrams from a code repository
Generate from a plain-language promptPartly
Edit visually on a canvas
Edit as Mermaid, Structurizr, PlantUML or D2Partly
Linked C4 views from one modelPartly
Branches, visual diff and reviewed mergePartly
ERD to SQL DDL in four dialectsPartly
Audit log, retention and IP allowlistsPartly

Based on the typical workflow of each category, not any single product.

Common questions

Ask a different question

How do I make a diagram with AI?

Describe what you want to show in plain language, or paste a GitHub repository URL, and Nensea generates an editable diagram: architecture, flowchart, sequence, data flow, ERD, mind map and more. You can then change any shape, label or connection by hand, ask the AI for changes, or edit the diagram as code.

What is Nensea?

Nensea is an AI architecture diagram tool for software architects. It generates editable C4, sequence, data-flow and dependency diagrams from a code repository or a prompt, keeps linked views consistent, and supports editing on a canvas or as code.

Can Nensea generate an architecture diagram from a GitHub repository?

Yes. Connect GitHub or paste a GitHub or GitLab repository URL, choose a branch or commit and a diagram type: architecture, sequence, data flow, dependencies, flowchart or CI/CD delivery. Nensea analyses relevant files and cites file paths and line ranges as evidence. Private repositories work through a GitHub connection or a one-off access token.

What is the best AI diagram generator for software architecture?

Look for three things: diagrams grounded in your real code, output you can edit instead of a flat image, and a way to review changes. Nensea generates architecture diagrams from GitHub and GitLab repositories with file-and-line evidence, keeps C4 views linked, and supports branches with reviewed merge.

Which diagram-as-code formats are supported?

Mermaid, Structurizr DSL, PlantUML and D2. You can edit a view as code and see the canvas update, or export a view to a format. When a format cannot express something, a loss report lists exactly what would change.

Does Nensea support the C4 model?

Yes. System context, container, component, dynamic and deployment views are driven by one model, so renaming or changing an element updates every view, and you can drill down from a container into its components.

Can I generate SQL from a diagram?

Yes. Model your data as an entity relationship diagram and generate SQL DDL for PostgreSQL, MySQL, SQL Server or SQLite, or import existing DDL to create the diagram.

How do reviews and branches work?

Propose changes on a branch, compare it with the main version as a visual diff of added, removed and changed elements, discuss it in comments, and merge after review.

Can I import diagrams from draw.io, Visio or Excalidraw?

Yes. Nensea imports draw.io, Visio and Excalidraw files as well as Mermaid, Structurizr, PlantUML and D2 sources, and exports SVG, PNG, PDF and draw.io.

Is Nensea available now?

Nensea is in early access. Join the early access list on this page and tell us about the systems you need to document. We reply to every message personally.

Request early access

Access opens to teams, classes and labs in stages. We will email you about yours.

What are you most interested in? (optional)

Loading security check…

Talk to us about your system

Tell us what you need to document. We reply with how to map it in Nensea.