# wheresryan22/anatomy-figures architecture

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

- Interactive diagram: https://gitdiagram.com/wheresryan22/anatomy-figures
- Repository: https://github.com/wheresryan22/anatomy-figures

## Overview

anatomy-figures is a package of interactive, themeable educational figures, exposed as React components and as custom elements. The documented workflow is to import a figure, render it in a React tree (optionally under AnatomyTheme or with theme tokens), or call a custom element’s define() function and use its HTML tag. Figures cover computing, engineering, and early WebGL examples. The source excerpts contain no implementation files, so figure-family internals and wiring are grouped conservatively; edges reflect README documentation rather than inspected calls.

Main entry points: [`dist`](https://github.com/wheresryan22/anatomy-figures/tree/main/dist) (React figures), [`dist/element`](https://github.com/wheresryan22/anatomy-figures/tree/main/dist/element) (Custom elements), [`dist/themes.js`](https://github.com/wheresryan22/anatomy-figures/blob/main/dist/themes.js) (Theme system), [`dist/index.js`](https://github.com/wheresryan22/anatomy-figures/blob/main/dist/index.js) (Package entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["Package APIs"]
  node_package["Package entry<br/>[index.js]"]
  node_theme["Theme system<br/>[themes.js]"]
  node_reactfig["React figures"]
  node_elementfig["Custom elements"]
end

subgraph group_computing["Computing Figures"]
  node_algorithms["Algorithms"]
  node_data["Data structures"]
  node_network["Network protocols"]
  node_layout["Layout and motion"]
  node_coordination["Concurrency patterns"]
end

subgraph group_engineering["Engineering Figures"]
  node_industrial["Industrial processes"]
  node_mechanical["Mechanical systems"]
  node_nature["Nature and physics"]
end

subgraph group_early["Early WebGL Figures"]
  node_rendering["Rendering concepts"]
end

node_consumer(("Application developer"))
node_react["React runtime"]

node_consumer -->|"imports package"| node_package
node_consumer -->|"imports figure"| node_reactfig
node_consumer -->|"defines element"| node_elementfig
node_reactfig -.->|"renders with"| node_react
node_consumer -->|"sets theme"| node_theme
node_theme -->|"themes figures"| node_reactfig
node_reactfig -->|"includes"| node_algorithms
node_reactfig -->|"includes"| node_data
node_reactfig -->|"includes"| node_network
node_reactfig -->|"includes"| node_rendering
node_reactfig -->|"includes"| node_industrial
node_reactfig -->|"includes"| node_mechanical
node_reactfig -->|"includes"| node_nature
node_reactfig -->|"includes"| node_layout
node_reactfig -->|"includes"| node_coordination
node_elementfig -->|"includes"| node_algorithms
node_elementfig -->|"includes"| node_industrial

click node_package "https://github.com/wheresryan22/anatomy-figures/blob/main/dist/index.js"
click node_theme "https://github.com/wheresryan22/anatomy-figures/blob/main/dist/themes.js"
click node_reactfig "https://github.com/wheresryan22/anatomy-figures/tree/main/dist"
click node_elementfig "https://github.com/wheresryan22/anatomy-figures/tree/main/dist/element"
click node_algorithms "https://github.com/wheresryan22/anatomy-figures/tree/main/dist"
click node_data "https://github.com/wheresryan22/anatomy-figures/tree/main/dist"
click node_network "https://github.com/wheresryan22/anatomy-figures/tree/main/dist"
click node_rendering "https://github.com/wheresryan22/anatomy-figures/tree/main/dist"
click node_industrial "https://github.com/wheresryan22/anatomy-figures/tree/main/dist"
click node_mechanical "https://github.com/wheresryan22/anatomy-figures/tree/main/dist"
click node_nature "https://github.com/wheresryan22/anatomy-figures/tree/main/dist"
click node_layout "https://github.com/wheresryan22/anatomy-figures/tree/main/dist"
click node_coordination "https://github.com/wheresryan22/anatomy-figures/tree/main/dist"

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_package,node_theme,node_reactfig,node_elementfig toneBlue
class node_algorithms,node_data,node_network,node_layout,node_coordination toneAmber
class node_industrial,node_mechanical,node_nature toneMint
class node_rendering toneRose
class node_consumer,node_react toneIndigo
```

## Components

### Package APIs

- [Package entry](https://github.com/wheresryan22/anatomy-figures/blob/main/dist/index.js): `dist/index.js`
- [Theme system](https://github.com/wheresryan22/anatomy-figures/blob/main/dist/themes.js): `dist/themes.js`
- [React figures](https://github.com/wheresryan22/anatomy-figures/tree/main/dist): `dist`
- [Custom elements](https://github.com/wheresryan22/anatomy-figures/tree/main/dist/element): `dist/element`

### Computing Figures

- [Algorithms](https://github.com/wheresryan22/anatomy-figures/tree/main/dist): `dist`
- [Data structures](https://github.com/wheresryan22/anatomy-figures/tree/main/dist): `dist`
- [Network protocols](https://github.com/wheresryan22/anatomy-figures/tree/main/dist): `dist`
- [Layout and motion](https://github.com/wheresryan22/anatomy-figures/tree/main/dist): `dist`
- [Concurrency patterns](https://github.com/wheresryan22/anatomy-figures/tree/main/dist): `dist`

### Engineering Figures

- [Industrial processes](https://github.com/wheresryan22/anatomy-figures/tree/main/dist): `dist`
- [Mechanical systems](https://github.com/wheresryan22/anatomy-figures/tree/main/dist): `dist`
- [Nature and physics](https://github.com/wheresryan22/anatomy-figures/tree/main/dist): `dist`

### Early WebGL Figures

- [Rendering concepts](https://github.com/wheresryan22/anatomy-figures/tree/main/dist): `dist`

### Other components

- **Application developer**
- **React runtime**

## Connections

- Application developer → Package entry: imports package (evidence: `README.md`)
- Application developer → React figures: imports figure (evidence: `README.md`)
- Application developer → Custom elements: defines element (evidence: `README.md`)
- React figures → React runtime: renders with (evidence: `README.md`)
- Application developer → Theme system: sets theme (evidence: `README.md`)
- Theme system → React figures: themes figures (evidence: `README.md`)
- React figures → Algorithms: includes (evidence: `README.md`)
- React figures → Data structures: includes (evidence: `README.md`)
- React figures → Network protocols: includes (evidence: `README.md`)
- React figures → Rendering concepts: includes (evidence: `README.md`)
- React figures → Industrial processes: includes (evidence: `README.md`)
- React figures → Mechanical systems: includes (evidence: `README.md`)
- React figures → Nature and physics: includes (evidence: `README.md`)
- React figures → Layout and motion: includes (evidence: `README.md`)
- React figures → Concurrency patterns: includes (evidence: `README.md`)
- Custom elements → Algorithms: includes (evidence: `README.md`)
- Custom elements → Industrial processes: includes (evidence: `README.md`)
