How obsidian-ig/project-dna works
DNA Animator is a desktop rig-authoring and preview tool for Helix-style microcontroller characters. The main workflow is to create or load a rig, edit its hierarchy and properties, and inspect its rendered appearance; the playground route coordinates those editors and shared state. The README also describes direct JSON editing, animation design, and live hardware preview, but the sampled implementation does not establish how those capabilities are wired. The device-preview link is therefore documented but not source-verified.
Main entry points: +page.svelte Rig playground · AppState.svelte.ts App state · DNARig.ts Rig schema · header.svelte Workspace header
Components 13
Animator workspace
- Rig playground
dna-animator/src/routes/rig-tester/+page.svelte - Workspace header
dna-animator/src/routes/header.svelte - Header actions
dna-animator/src/routes/header-actions.svelte.ts - App state
dna-animator/src/AppState.svelte.ts
Rig editing
- Rig schema
dna-animator/src/DNARig.ts - Rig hierarchy
dna-animator/src/components/RigTree.svelte - Property explorer
dna-animator/src/components/RigPropsExplorer.svelte - Property controls
dna-animator/src/components/PropertiesExplorerComponents
Preview and persistence
- Rig renderer
dna-animator/src/components/RigDisplay.svelte - Local browser storage
Desktop integration
- Electron bridge
dna-animator/src/main/preload.ts
Other components
- Rig author
- Helix device
Connections 18
- Rig author → Rig playground: edits rigs
README.md - Rig playground → Rig hierarchy: renders
dna-animator/src/routes/rig-tester/+page.svelte - Rig playground → Property explorer: renders
dna-animator/src/routes/rig-tester/+page.svelte - Rig playground → Rig renderer: renders
dna-animator/src/routes/rig-tester/+page.svelte - Rig playground → Rig schema: creates rigs
dna-animator/src/routes/rig-tester/+page.svelte - Rig playground → App state: updates state
dna-animator/src/routes/rig-tester/+page.svelte - Rig hierarchy → Rig schema: reads and edits
dna-animator/src/components/RigTree.svelte - Rig hierarchy → App state: updates selection
dna-animator/src/components/RigTree.svelte - Property explorer → Property controls: renders controls
dna-animator/src/components/RigPropsExplorer.svelte - Property explorer → Rig schema: edits properties
dna-animator/src/components/RigPropsExplorer.svelte - Rig renderer → Rig schema: renders rig
dna-animator/src/components/RigDisplay.svelte - Rig renderer → App state: reads settings
dna-animator/src/components/RigDisplay.svelte - Rig playground → Electron bridge: reads and saves files
dna-animator/src/routes/rig-tester/+page.svelte - Rig author → Workspace header: uses menus
dna-animator/src/routes/header.svelte - Workspace header → Header actions: runs actions
dna-animator/src/routes/header.svelte - Workspace header → App state: reads configuration
dna-animator/src/routes/header.svelte - App state → Local browser storage: persists state
- Helix device → Rig playground: live preview
README.md