# 7ang0n1n3/netdraw architecture

> Architecture diagram of the GitHub repository 7ang0n1n3/netdraw, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/7ang0n1n3/netdraw
- Repository: https://github.com/7ang0n1n3/netdraw

## Overview

NetDraw is a self-contained browser editor for creating network diagrams. The main workflow is to arrange objects and connections on a canvas, organize work into pages, then save or export the document. The alternate HTML copy adds shared-folder collaboration: clients exchange immutable changes and merge shared history. Both applications are documented as standalone HTML files; no source excerpts were provided, so internal calls and module boundaries cannot be verified. Nodes represent documented capabilities, not inspected implementation modules.

Main entry points: [`NetDraw.html`](https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw.html) (Local editor), [`NetDraw-shared-folder.html`](https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw-shared-folder.html) (Shared-folder editor)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_editing["Diagram editing"]
  node_editor["Local editor<br/>[NetDraw.html]"]
  node_canvas["Diagram canvas<br/>[NetDraw.html]"]
  node_objects["Diagram objects<br/>[NetDraw.html]"]
  node_connections["Connections<br/>[NetDraw.html]"]
  node_zones["Zones and lanes<br/>[NetDraw.html]"]
  node_properties["Properties panel<br/>[NetDraw.html]"]
  node_pages["Pages<br/>[NetDraw.html]"]
  node_journeys["Journey walkthroughs<br/>[NetDraw.html]"]
end

subgraph group_documents["Documents and output"]
  node_localstorage[("Browser storage")]
  node_fileio["JSON import and save<br/>[NetDraw.html]"]
  node_exports["Image and video export<br/>[NetDraw.html]"]
end

subgraph group_sharing["Shared collaboration"]
  node_sharededitor["Shared-folder editor"]
  node_changehistory["Change history merge"]
  node_recovery["Pending change recovery"]
  node_sharedfolder[("Shared folder")]
end

node_user(("Diagram author"))

node_user -->|"edits diagrams"| node_editor
node_user -->|"shares diagrams"| node_sharededitor
node_editor -->|"restores and stores"| node_localstorage
node_editor -->|"imports and saves"| node_fileio
node_editor -->|"exports media"| node_exports
node_sharededitor -->|"reads and writes"| node_sharedfolder
node_sharededitor -->|"merges updates"| node_changehistory
node_sharededitor -->|"backs up changes"| node_recovery
node_recovery -->|"stores pending changes"| node_localstorage

click node_editor "https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw.html"
click node_canvas "https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw.html"
click node_objects "https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw.html"
click node_connections "https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw.html"
click node_zones "https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw.html"
click node_properties "https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw.html"
click node_pages "https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw.html"
click node_journeys "https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw.html"
click node_fileio "https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw.html"
click node_exports "https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw.html"
click node_sharededitor "https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw-shared-folder.html"
click node_changehistory "https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw-shared-folder.html"
click node_recovery "https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw-shared-folder.html"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_editor,node_canvas,node_objects,node_connections,node_zones,node_properties,node_pages,node_journeys toneBlue
class node_localstorage,node_fileio,node_exports toneAmber
class node_sharededitor,node_changehistory,node_recovery,node_sharedfolder toneMint
class node_user toneIndigo
```

## Components

### Diagram editing

- [Local editor](https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw.html): `NetDraw.html`
- [Diagram canvas](https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw.html): `NetDraw.html`
- [Diagram objects](https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw.html): `NetDraw.html`
- [Connections](https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw.html): `NetDraw.html`
- [Zones and lanes](https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw.html): `NetDraw.html`
- [Properties panel](https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw.html): `NetDraw.html`
- [Pages](https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw.html): `NetDraw.html`
- [Journey walkthroughs](https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw.html): `NetDraw.html`

### Documents and output

- **Browser storage**
- [JSON import and save](https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw.html): `NetDraw.html`
- [Image and video export](https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw.html): `NetDraw.html`

### Shared collaboration

- [Shared-folder editor](https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw-shared-folder.html): `NetDraw-shared-folder.html`
- [Change history merge](https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw-shared-folder.html): `NetDraw-shared-folder.html`
- [Pending change recovery](https://github.com/7ang0n1n3/netdraw/blob/main/NetDraw-shared-folder.html): `NetDraw-shared-folder.html`
- **Shared folder**

### Other components

- **Diagram author**

## Connections

- Diagram author → Local editor: edits diagrams (evidence: `README.md`)
- Diagram author → Shared-folder editor: shares diagrams (evidence: `README.md`)
- Local editor → Browser storage: restores and stores (evidence: `README.md`)
- Local editor → JSON import and save: imports and saves (evidence: `README.md`)
- Local editor → Image and video export: exports media (evidence: `README.md`)
- Shared-folder editor → Shared folder: reads and writes (evidence: `README.md`)
- Shared-folder editor → Change history merge: merges updates (evidence: `README.md`)
- Shared-folder editor → Pending change recovery: backs up changes (evidence: `README.md`)
- Pending change recovery → Browser storage: stores pending changes (evidence: `README.md`)
