# filippocalippo/stykanimate-app architecture

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

- Interactive diagram: https://gitdiagram.com/filippocalippo/stykanimate-app
- Repository: https://github.com/filippocalippo/stykanimate-app

## Overview

StykAnimate is a local-first stick-figure animation editor for desktop and browser. Users open or import projects, edit figures and animation on either timeline, preview playback, then save native files or export media. The graph preserves documented capabilities including drawing, effects, audio, community assets, and platform services. Most links are documented at subsystem level in the README; unsampled modules are represented by their exact paths without assuming internal call chains.

Main entry points: [`src/editor.mjs`](https://github.com/filippocalippo/stykanimate-app/blob/main/src/editor.mjs) (Document editing), [`src/app.mjs`](https://github.com/filippocalippo/stykanimate-app/blob/main/src/app.mjs) (Application UI), [`src/import-client.mjs`](https://github.com/filippocalippo/stykanimate-app/blob/main/src/import-client.mjs) (Project import), [`src/layer-sheet.mjs`](https://github.com/filippocalippo/stykanimate-app/blob/main/src/layer-sheet.mjs) (Simple timeline)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Editor experience"]
  node_app["Application UI<br/>[app.mjs]"]
  node_shell["Workspace shell<br/>[dock-host.mjs]"]
  node_simple["Simple timeline<br/>[layer-sheet.mjs]"]
  node_advanced["Advanced timeline<br/>[timeline.mjs]"]
end

subgraph group_model["Animation and scene"]
  node_editor["Document editing<br/>[editor.mjs]"]
  node_figures["Figure geometry<br/>[geometry.mjs]"]
  node_rigging["Pose and rigging<br/>[animation-pose.mjs]"]
  node_drawing["Drawing tools"]
  node_effects["Effects and movieclips<br/>[vfx-canvas.mjs]"]
  node_audio["Audio timeline<br/>[audio-engine.mjs]"]
end

subgraph group_assets["Import and persistence"]
  node_import["Project import<br/>[import-client.mjs]"]
  node_sticknodes["Stick Nodes adapter<br/>[adapter.mjs]"]
  node_pivcodec["Pivot codec<br/>[piv_codec.py]"]
  node_codecservice["Codec service<br/>[server.py]"]
  node_saving["Document save"]
end

subgraph group_output["Playback and export"]
  node_playback["Playback evaluation<br/>[playback.mjs]"]
  node_render["Scene rendering"]
  node_export["Media export<br/>[video-export.mjs]"]
end

subgraph group_platform["Platform services"]
  node_desktop["Desktop services<br/>[main.cjs]"]
  node_web["Offline browser<br/>[sw.js]"]
  node_community["Community library"]
end

node_user(("Animator"))

node_user -->|"uses"| node_app
node_app -->|"opens workspace"| node_shell
node_app -->|"offers timeline"| node_simple
node_app -->|"offers timeline"| node_advanced
node_app -->|"opens projects"| node_import
node_import -->|"adapts projects"| node_sticknodes
node_import -->|"decodes Pivot"| node_pivcodec
node_import -->|"uses codec service"| node_codecservice
node_editor -->|"edits geometry"| node_figures
node_editor -->|"edits poses"| node_rigging
node_editor -->|"supports drawing"| node_drawing
node_editor -->|"supports effects"| node_effects
node_editor -.->|"supports audio"| node_audio
node_simple -->|"edits frames"| node_editor
node_advanced -->|"edits animation"| node_editor
node_editor -->|"evaluates animation"| node_playback
node_playback -->|"renders scene"| node_render
node_editor -->|"saves documents"| node_saving
node_editor -->|"exports media"| node_export
node_app -->|"browses assets"| node_community
node_app -->|"runs in Electron"| node_desktop
node_app -->|"runs offline"| node_web
node_desktop -.->|"hosts codec service"| node_codecservice

click node_app "https://github.com/filippocalippo/stykanimate-app/blob/main/src/app.mjs"
click node_shell "https://github.com/filippocalippo/stykanimate-app/blob/main/src/shell/dock-host.mjs"
click node_simple "https://github.com/filippocalippo/stykanimate-app/blob/main/src/layer-sheet.mjs"
click node_advanced "https://github.com/filippocalippo/stykanimate-app/blob/main/src/timeline.mjs"
click node_editor "https://github.com/filippocalippo/stykanimate-app/blob/main/src/editor.mjs"
click node_figures "https://github.com/filippocalippo/stykanimate-app/blob/main/src/pivot/geometry.mjs"
click node_rigging "https://github.com/filippocalippo/stykanimate-app/blob/main/src/animation-pose.mjs"
click node_drawing "https://github.com/filippocalippo/stykanimate-app/blob/main/src/drawing-stroke-engine.mjs"
click node_effects "https://github.com/filippocalippo/stykanimate-app/blob/main/src/vfx-canvas.mjs"
click node_audio "https://github.com/filippocalippo/stykanimate-app/blob/main/src/audio-engine.mjs"
click node_import "https://github.com/filippocalippo/stykanimate-app/blob/main/src/import-client.mjs"
click node_sticknodes "https://github.com/filippocalippo/stykanimate-app/blob/main/src/sticknodes/adapter.mjs"
click node_pivcodec "https://github.com/filippocalippo/stykanimate-app/blob/main/codecs/piv_codec.py"
click node_codecservice "https://github.com/filippocalippo/stykanimate-app/blob/main/backend/server.py"
click node_saving "https://github.com/filippocalippo/stykanimate-app/blob/main/src/document-export.mjs"
click node_playback "https://github.com/filippocalippo/stykanimate-app/blob/main/src/playback.mjs"
click node_render "https://github.com/filippocalippo/stykanimate-app/blob/main/src/renderer-geometry.mjs"
click node_export "https://github.com/filippocalippo/stykanimate-app/blob/main/src/video-export.mjs"
click node_desktop "https://github.com/filippocalippo/stykanimate-app/blob/main/desktop/main.cjs"
click node_web "https://github.com/filippocalippo/stykanimate-app/blob/main/web/sw.js"
click node_community "https://github.com/filippocalippo/stykanimate-app/blob/main/src/community-library.mjs"

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_shell,node_simple,node_advanced toneBlue
class node_editor,node_figures,node_rigging,node_drawing,node_effects,node_audio toneAmber
class node_import,node_sticknodes,node_pivcodec,node_codecservice,node_saving toneMint
class node_playback,node_render,node_export toneRose
class node_desktop,node_web,node_community,node_user toneIndigo
```

## Components

### Editor experience

- [Application UI](https://github.com/filippocalippo/stykanimate-app/blob/main/src/app.mjs): `src/app.mjs`
- [Workspace shell](https://github.com/filippocalippo/stykanimate-app/blob/main/src/shell/dock-host.mjs): `src/shell/dock-host.mjs`
- [Simple timeline](https://github.com/filippocalippo/stykanimate-app/blob/main/src/layer-sheet.mjs): `src/layer-sheet.mjs`
- [Advanced timeline](https://github.com/filippocalippo/stykanimate-app/blob/main/src/timeline.mjs): `src/timeline.mjs`

### Animation and scene

- [Document editing](https://github.com/filippocalippo/stykanimate-app/blob/main/src/editor.mjs): `src/editor.mjs`
- [Figure geometry](https://github.com/filippocalippo/stykanimate-app/blob/main/src/pivot/geometry.mjs): `src/pivot/geometry.mjs`
- [Pose and rigging](https://github.com/filippocalippo/stykanimate-app/blob/main/src/animation-pose.mjs): `src/animation-pose.mjs`
- [Drawing tools](https://github.com/filippocalippo/stykanimate-app/blob/main/src/drawing-stroke-engine.mjs): `src/drawing-stroke-engine.mjs`
- [Effects and movieclips](https://github.com/filippocalippo/stykanimate-app/blob/main/src/vfx-canvas.mjs): `src/vfx-canvas.mjs`
- [Audio timeline](https://github.com/filippocalippo/stykanimate-app/blob/main/src/audio-engine.mjs): `src/audio-engine.mjs`

### Import and persistence

- [Project import](https://github.com/filippocalippo/stykanimate-app/blob/main/src/import-client.mjs): `src/import-client.mjs`
- [Stick Nodes adapter](https://github.com/filippocalippo/stykanimate-app/blob/main/src/sticknodes/adapter.mjs): `src/sticknodes/adapter.mjs`
- [Pivot codec](https://github.com/filippocalippo/stykanimate-app/blob/main/codecs/piv_codec.py): `codecs/piv_codec.py`
- [Codec service](https://github.com/filippocalippo/stykanimate-app/blob/main/backend/server.py): `backend/server.py`
- [Document save](https://github.com/filippocalippo/stykanimate-app/blob/main/src/document-export.mjs): `src/document-export.mjs`

### Playback and export

- [Playback evaluation](https://github.com/filippocalippo/stykanimate-app/blob/main/src/playback.mjs): `src/playback.mjs`
- [Scene rendering](https://github.com/filippocalippo/stykanimate-app/blob/main/src/renderer-geometry.mjs): `src/renderer-geometry.mjs`
- [Media export](https://github.com/filippocalippo/stykanimate-app/blob/main/src/video-export.mjs): `src/video-export.mjs`

### Platform services

- [Desktop services](https://github.com/filippocalippo/stykanimate-app/blob/main/desktop/main.cjs): `desktop/main.cjs`
- [Offline browser](https://github.com/filippocalippo/stykanimate-app/blob/main/web/sw.js): `web/sw.js`
- [Community library](https://github.com/filippocalippo/stykanimate-app/blob/main/src/community-library.mjs): `src/community-library.mjs`

### Other components

- **Animator**

## Connections

- Animator → Application UI: uses (evidence: `README.md`)
- Application UI → Workspace shell: opens workspace (evidence: `README.md`)
- Application UI → Simple timeline: offers timeline (evidence: `README.md`)
- Application UI → Advanced timeline: offers timeline (evidence: `README.md`)
- Application UI → Project import: opens projects (evidence: `README.md`)
- Project import → Stick Nodes adapter: adapts projects (evidence: `README.md`)
- Project import → Pivot codec: decodes Pivot (evidence: `README.md`)
- Project import → Codec service: uses codec service (evidence: `README.md`)
- Document editing → Figure geometry: edits geometry (evidence: `README.md`)
- Document editing → Pose and rigging: edits poses (evidence: `README.md`)
- Document editing → Drawing tools: supports drawing (evidence: `README.md`)
- Document editing → Effects and movieclips: supports effects (evidence: `README.md`)
- Document editing → Audio timeline: supports audio (evidence: `README.md`)
- Simple timeline → Document editing: edits frames (evidence: `README.md`)
- Advanced timeline → Document editing: edits animation (evidence: `README.md`)
- Document editing → Playback evaluation: evaluates animation (evidence: `README.md`)
- Playback evaluation → Scene rendering: renders scene (evidence: `README.md`)
- Document editing → Document save: saves documents (evidence: `README.md`)
- Document editing → Media export: exports media (evidence: `README.md`)
- Application UI → Community library: browses assets (evidence: `README.md`)
- Application UI → Desktop services: runs in Electron (evidence: `README.md`)
- Application UI → Offline browser: runs offline (evidence: `README.md`)
- Desktop services → Codec service: hosts codec service (evidence: `README.md`)
