# halapenyoharry/exoskeleton architecture

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

- Interactive diagram: https://gitdiagram.com/halapenyoharry/exoskeleton
- Repository: https://github.com/halapenyoharry/exoskeleton

## Overview

Exoskeleton is a Tauri desktop workspace for arranging built-in tools in dockable grids, managing named workspaces, and working with JSON and audio/visual panels. The main flow is: the user opens the workspace, App restores or builds a Dockview layout, and panels perform their tool-specific work; workspace state is persisted and JSON edits are shared with viewers through an in-process bus. The README also documents workspace import/export, presets, a terminal, web viewport, and synchronized graph layouts. Some subsystem links are documented rather than visible in sampled implementation excerpts.

Main entry points: [`src/App.tsx`](https://github.com/halapenyoharry/exoskeleton/blob/main/src/App.tsx) (Dockable Panel Grid), [`src/panels`](https://github.com/halapenyoharry/exoskeleton/tree/main/src/panels) (JSON Visualizers), [`src/persistence/tauri-storage.ts`](https://github.com/halapenyoharry/exoskeleton/blob/main/src/persistence/tauri-storage.ts) (Tauri State Store), [`src/persistence/default-layout.ts`](https://github.com/halapenyoharry/exoskeleton/blob/main/src/persistence/default-layout.ts) (Layout Builder)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspace["Workspace Shell"]
  node_app["Workspace Coordinator<br/>[App.tsx]"]
  node_dock["Dockable Panel Grid<br/>[App.tsx]"]
  node_panelroot["Panel Error Boundary<br/>[PanelRoot.tsx]"]
  node_layout["Layout Builder<br/>[default-layout.ts]"]
end

subgraph group_state["Workspace State"]
  node_workspace_state["Workspace State<br/>[storage.ts]"]
  node_presets["Layout Presets<br/>[presets.ts]"]
  node_storage[("Tauri State Store<br/>[tauri-storage.ts]")]
  node_workspace_files["Workspace Documents<br/>[workspace-file.ts]"]
end

subgraph group_json["JSON Workbench"]
  node_json_editor["JSON Editor<br/>[JsonEditPanel.tsx]"]
  node_json_bus["JSON Document Bus<br/>[json-bus.ts]"]
  node_json_hook["Viewer Subscription<br/>[useJsonDoc.ts]"]
  node_doc_stats["Document Analysis<br/>[docStats.ts]"]
  node_graph_detect["Graph Detection<br/>[graphDetect.ts]"]
  node_hierarchy["JSON Hierarchy<br/>[jsonToHierarchy.ts]"]
  node_layers["Graph Layers<br/>[layers.ts]"]
  node_json_viewers["JSON Visualizers"]
  node_graph_sync["Graph Synchronization<br/>[json-bus.ts]"]
end

subgraph group_av["Audio Visuals"]
  node_av_panels["AV Panels"]
  node_osc["OSC Bridge<br/>[index.ts]"]
  node_rust_osc["Native OSC<br/>[osc.rs]"]
end

subgraph group_tools["Built-in Tools"]
  node_editor["Markdown Editor<br/>[EditorPanel.tsx]"]
  node_terminal["Terminal<br/>[TerminalPanel.tsx]"]
  node_webview["Web Viewport<br/>[LanWebview.tsx]"]
  node_status["Status Bar<br/>[StatusBarPanel.tsx]"]
  node_settings["Settings<br/>[SettingsPanel.tsx]"]
end

node_user(("User"))

node_user -->|"opens"| node_app
node_app -->|"coordinates"| node_dock
node_app -->|"builds layout"| node_layout
node_layout -->|"resolves preset"| node_presets
node_app -->|"loads state"| node_workspace_state
node_app -.->|"persists state"| node_storage
node_storage -->|"migrates state"| node_workspace_state
node_app -->|"exports workspace"| node_workspace_files
node_dock -->|"wraps panels"| node_panelroot
node_dock -->|"hosts"| node_json_editor
node_json_editor -->|"publishes JSON"| node_json_bus
node_json_viewers -->|"subscribes"| node_json_hook
node_json_hook -->|"reads updates"| node_json_bus
node_json_viewers -->|"analyzes documents"| node_doc_stats
node_doc_stats -->|"detects graph"| node_graph_detect
node_json_viewers -->|"builds hierarchy"| node_hierarchy
node_json_viewers -->|"colors layers"| node_layers
node_json_viewers -->|"broadcasts selection"| node_graph_sync
node_av_panels -->|"uses OSC"| node_osc
node_osc -->|"sends messages"| node_rust_osc
node_dock -->|"hosts"| node_editor
node_dock -->|"hosts"| node_terminal
node_dock -->|"hosts"| node_webview
node_dock -.->|"hosts"| node_av_panels
node_dock -->|"hosts"| node_status
node_dock -->|"hosts"| node_settings
node_settings -->|"accesses settings"| node_storage

click node_app "https://github.com/halapenyoharry/exoskeleton/blob/main/src/App.tsx"
click node_dock "https://github.com/halapenyoharry/exoskeleton/blob/main/src/App.tsx"
click node_panelroot "https://github.com/halapenyoharry/exoskeleton/blob/main/src/PanelRoot.tsx"
click node_layout "https://github.com/halapenyoharry/exoskeleton/blob/main/src/persistence/default-layout.ts"
click node_workspace_state "https://github.com/halapenyoharry/exoskeleton/blob/main/src/persistence/storage.ts"
click node_presets "https://github.com/halapenyoharry/exoskeleton/blob/main/src/persistence/presets.ts"
click node_storage "https://github.com/halapenyoharry/exoskeleton/blob/main/src/persistence/tauri-storage.ts"
click node_workspace_files "https://github.com/halapenyoharry/exoskeleton/blob/main/src/persistence/workspace-file.ts"
click node_json_editor "https://github.com/halapenyoharry/exoskeleton/blob/main/src/panels/json-edit/JsonEditPanel.tsx"
click node_json_bus "https://github.com/halapenyoharry/exoskeleton/blob/main/src/data/json-bus.ts"
click node_json_hook "https://github.com/halapenyoharry/exoskeleton/blob/main/src/data/useJsonDoc.ts"
click node_doc_stats "https://github.com/halapenyoharry/exoskeleton/blob/main/src/data/json-utils/docStats.ts"
click node_graph_detect "https://github.com/halapenyoharry/exoskeleton/blob/main/src/data/json-utils/graphDetect.ts"
click node_hierarchy "https://github.com/halapenyoharry/exoskeleton/blob/main/src/data/json-utils/jsonToHierarchy.ts"
click node_layers "https://github.com/halapenyoharry/exoskeleton/blob/main/src/data/json-utils/layers.ts"
click node_json_viewers "https://github.com/halapenyoharry/exoskeleton/tree/main/src/panels"
click node_graph_sync "https://github.com/halapenyoharry/exoskeleton/blob/main/src/data/json-bus.ts"
click node_av_panels "https://github.com/halapenyoharry/exoskeleton/tree/main/src/panels"
click node_osc "https://github.com/halapenyoharry/exoskeleton/blob/main/src/osc/index.ts"
click node_rust_osc "https://github.com/halapenyoharry/exoskeleton/blob/main/src-tauri/src/osc.rs"
click node_editor "https://github.com/halapenyoharry/exoskeleton/blob/main/src/panels/EditorPanel.tsx"
click node_terminal "https://github.com/halapenyoharry/exoskeleton/blob/main/src/panels/TerminalPanel.tsx"
click node_webview "https://github.com/halapenyoharry/exoskeleton/blob/main/src/panels/LanWebview.tsx"
click node_status "https://github.com/halapenyoharry/exoskeleton/blob/main/src/panels/StatusBarPanel.tsx"
click node_settings "https://github.com/halapenyoharry/exoskeleton/blob/main/src/panels/settings/SettingsPanel.tsx"

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_app,node_dock,node_panelroot,node_layout,node_user toneBlue
class node_workspace_state,node_presets,node_storage,node_workspace_files toneAmber
class node_json_editor,node_json_bus,node_json_hook,node_doc_stats,node_graph_detect,node_hierarchy,node_layers,node_json_viewers,node_graph_sync toneMint
class node_av_panels,node_osc,node_rust_osc toneRose
class node_editor,node_terminal,node_webview,node_status,node_settings toneIndigo
```

## Components

### Workspace Shell

- [Workspace Coordinator](https://github.com/halapenyoharry/exoskeleton/blob/main/src/App.tsx): `src/App.tsx`
- [Dockable Panel Grid](https://github.com/halapenyoharry/exoskeleton/blob/main/src/App.tsx): `src/App.tsx`
- [Panel Error Boundary](https://github.com/halapenyoharry/exoskeleton/blob/main/src/PanelRoot.tsx): `src/PanelRoot.tsx`
- [Layout Builder](https://github.com/halapenyoharry/exoskeleton/blob/main/src/persistence/default-layout.ts): `src/persistence/default-layout.ts`

### Workspace State

- [Workspace State](https://github.com/halapenyoharry/exoskeleton/blob/main/src/persistence/storage.ts): `src/persistence/storage.ts`
- [Layout Presets](https://github.com/halapenyoharry/exoskeleton/blob/main/src/persistence/presets.ts): `src/persistence/presets.ts`
- [Tauri State Store](https://github.com/halapenyoharry/exoskeleton/blob/main/src/persistence/tauri-storage.ts): `src/persistence/tauri-storage.ts`
- [Workspace Documents](https://github.com/halapenyoharry/exoskeleton/blob/main/src/persistence/workspace-file.ts): `src/persistence/workspace-file.ts`

### JSON Workbench

- [JSON Editor](https://github.com/halapenyoharry/exoskeleton/blob/main/src/panels/json-edit/JsonEditPanel.tsx): `src/panels/json-edit/JsonEditPanel.tsx`
- [JSON Document Bus](https://github.com/halapenyoharry/exoskeleton/blob/main/src/data/json-bus.ts): `src/data/json-bus.ts`
- [Viewer Subscription](https://github.com/halapenyoharry/exoskeleton/blob/main/src/data/useJsonDoc.ts): `src/data/useJsonDoc.ts`
- [Document Analysis](https://github.com/halapenyoharry/exoskeleton/blob/main/src/data/json-utils/docStats.ts): `src/data/json-utils/docStats.ts`
- [Graph Detection](https://github.com/halapenyoharry/exoskeleton/blob/main/src/data/json-utils/graphDetect.ts): `src/data/json-utils/graphDetect.ts`
- [JSON Hierarchy](https://github.com/halapenyoharry/exoskeleton/blob/main/src/data/json-utils/jsonToHierarchy.ts): `src/data/json-utils/jsonToHierarchy.ts`
- [Graph Layers](https://github.com/halapenyoharry/exoskeleton/blob/main/src/data/json-utils/layers.ts): `src/data/json-utils/layers.ts`
- [JSON Visualizers](https://github.com/halapenyoharry/exoskeleton/tree/main/src/panels): `src/panels`
- [Graph Synchronization](https://github.com/halapenyoharry/exoskeleton/blob/main/src/data/json-bus.ts): `src/data/json-bus.ts`

### Audio Visuals

- [AV Panels](https://github.com/halapenyoharry/exoskeleton/tree/main/src/panels): `src/panels`
- [OSC Bridge](https://github.com/halapenyoharry/exoskeleton/blob/main/src/osc/index.ts): `src/osc/index.ts`
- [Native OSC](https://github.com/halapenyoharry/exoskeleton/blob/main/src-tauri/src/osc.rs): `src-tauri/src/osc.rs`

### Built-in Tools

- [Markdown Editor](https://github.com/halapenyoharry/exoskeleton/blob/main/src/panels/EditorPanel.tsx): `src/panels/EditorPanel.tsx`
- [Terminal](https://github.com/halapenyoharry/exoskeleton/blob/main/src/panels/TerminalPanel.tsx): `src/panels/TerminalPanel.tsx`
- [Web Viewport](https://github.com/halapenyoharry/exoskeleton/blob/main/src/panels/LanWebview.tsx): `src/panels/LanWebview.tsx`
- [Status Bar](https://github.com/halapenyoharry/exoskeleton/blob/main/src/panels/StatusBarPanel.tsx): `src/panels/StatusBarPanel.tsx`
- [Settings](https://github.com/halapenyoharry/exoskeleton/blob/main/src/panels/settings/SettingsPanel.tsx): `src/panels/settings/SettingsPanel.tsx`

### Other components

- **User**

## Connections

- User → Workspace Coordinator: opens (evidence: `README.md`)
- Workspace Coordinator → Dockable Panel Grid: coordinates (evidence: `src/App.tsx`)
- Workspace Coordinator → Layout Builder: builds layout (evidence: `src/App.tsx`)
- Layout Builder → Layout Presets: resolves preset (evidence: `src/persistence/default-layout.ts`)
- Workspace Coordinator → Workspace State: loads state (evidence: `src/App.tsx`)
- Workspace Coordinator → Tauri State Store: persists state (evidence: `README.md`)
- Tauri State Store → Workspace State: migrates state (evidence: `src/persistence/tauri-storage.ts`)
- Workspace Coordinator → Workspace Documents: exports workspace (evidence: `src/App.tsx`)
- Dockable Panel Grid → Panel Error Boundary: wraps panels (evidence: `src/App.tsx`)
- Dockable Panel Grid → JSON Editor: hosts (evidence: `src/App.tsx`)
- JSON Editor → JSON Document Bus: publishes JSON (evidence: `src/panels/json-edit/JsonEditPanel.tsx`)
- JSON Visualizers → Viewer Subscription: subscribes (evidence: `src/data/useJsonDoc.ts`)
- Viewer Subscription → JSON Document Bus: reads updates (evidence: `src/data/useJsonDoc.ts`)
- JSON Visualizers → Document Analysis: analyzes documents (evidence: `src/data/json-utils/docStats.ts`)
- Document Analysis → Graph Detection: detects graph (evidence: `src/data/json-utils/docStats.ts`)
- JSON Visualizers → JSON Hierarchy: builds hierarchy (evidence: `src/panels/json-circles/JsonCirclesPanel.tsx`)
- JSON Visualizers → Graph Layers: colors layers (evidence: `src/panels/json-graph3d/JsonGraph3DPanel.tsx`)
- JSON Visualizers → Graph Synchronization: broadcasts selection (evidence: `src/panels/json-graph3d/JsonGraph3DPanel.tsx`)
- AV Panels → OSC Bridge: uses OSC (evidence: `src/osc/index.ts`)
- OSC Bridge → Native OSC: sends messages (evidence: `src/osc/index.ts`)
- Dockable Panel Grid → Markdown Editor: hosts (evidence: `src/App.tsx`)
- Dockable Panel Grid → Terminal: hosts (evidence: `src/App.tsx`)
- Dockable Panel Grid → Web Viewport: hosts (evidence: `src/App.tsx`)
- Dockable Panel Grid → AV Panels: hosts (evidence: `README.md`)
- Dockable Panel Grid → Status Bar: hosts (evidence: `src/App.tsx`)
- Dockable Panel Grid → Settings: hosts (evidence: `src/App.tsx`)
- Settings → Tauri State Store: accesses settings (evidence: `src/panels/settings/SettingsPanel.tsx`)
