How shinshin86/mesh-avatar-studio works
Mesh Avatar Studio turns an illustration into a rigged, animated 2D avatar, then supports editing, preview, export/import, and camera-driven streaming. The main user workflow runs from opening a project through rig editing and preview to saving or sharing; agent-assisted avatar preparation and drawn-expression variants are separate authoring capabilities. Runtime modules provide mesh animation, rendering, lighting, and archive validation. Live tracking and the OBS stream view form another branch. Some links reflect README descriptions because the corresponding implementation excerpts were not provided.
Main entry points: App.tsx Editor workspace · project-archive.ts Avatar archive · Preview.tsx Avatar preview · rig.js Avatar animation engine
Components 26
Editor & Projects
- Editor workspace
src/editor/App.tsx - Project access
src/editor/project.ts - Local project service
src/server/local-projects.ts - Rig editing canvas
src/editor/EditorCanvas.tsx - Avatar preview
src/editor/Preview.tsx - Avatar transfer
src/editor/AvatarTransfer.tsx - Layer rebuild jobs
src/server/project-jobs.ts
Avatar Runtime
- Rig model & validation
packages/runtime/src/rig/validate.ts - Avatar animation engine
packages/runtime/src/engine/rig.js - Mesh renderer
packages/runtime/src/engine/renderer.js - Motion tracks
packages/runtime/src/engine/motions.js - Avatar archive
packages/runtime/src/format/project-archive.ts - Archive manifest
packages/runtime/src/format/manifest.ts - Archive validation
packages/runtime/src/format/validate.ts - ZIP packing
packages/runtime/src/format/zip.ts
Avatar Authoring
- Layer preparation
tools/build-layers.py - Drawn expression variants
src/editor/VariantsPanel.tsx
Live & Streaming
- Live controls
src/live/LiveApp.tsx - Face tracking
src/live/tracking.ts - Motion relay
src/server/live-relay.ts - Stream avatar view
src/live/avatar-view.ts
Lighting
- Lighting settings
packages/runtime/src/lighting/settings.ts - Lighting renderer
packages/runtime/src/lighting/shading.ts - Lighting controls
src/lighting/Controls.tsx
Other components
- Studio user
- Coding agent
Connections 29
- Studio user → Editor workspace: opens
README.md - Editor workspace → Project access: opens projects
src/editor/App.tsx - Project access → Local project service: requests projects
src/editor/project.ts - Editor workspace → Rig editing canvas: edits rig
src/editor/App.tsx - Editor workspace → Avatar preview: shows preview
src/editor/App.tsx - Editor workspace → Avatar transfer: imports exports
README.md - Editor workspace → Layer rebuild jobs: requests rebuild
README.md - Coding agent → Layer preparation: prepares layers
README.md - Coding agent → Drawn expression variants: creates variants
README.md - Rig editing canvas → Rig model & validation: edits rig data
- Avatar preview → Avatar animation engine: creates avatar
src/editor/Preview.tsx - Avatar animation engine → Mesh renderer: renders mesh
packages/runtime/src/engine/renderer.js - Avatar animation engine → Motion tracks: applies motion
- Avatar transfer → Avatar archive: imports exports
README.md - Project access → Avatar archive: opens archives
src/editor/project.ts - Local project service → Avatar archive: uses archive format
src/server/local-projects.ts - Avatar archive → Archive manifest: uses manifest
packages/runtime/src/format/project-archive.ts - Avatar archive → ZIP packing: packs archive
packages/runtime/src/format/project-archive.ts - ZIP packing → Archive validation: validates files
packages/runtime/src/format/zip.ts - Archive validation → Rig model & validation: validates rig
packages/runtime/src/format/validate.ts - Live controls → Face tracking: tracks face
- Live controls → Motion relay: sends motion
README.md - Motion relay → Stream avatar view: relays motion
- Stream avatar view → Avatar animation engine: animates avatar
- Avatar preview → Lighting controls: offers controls
src/editor/Preview.tsx - Avatar preview → Lighting settings: sets lighting
src/editor/Preview.tsx - Mesh renderer → Lighting renderer: shades mesh
packages/runtime/src/engine/renderer.js - Mesh renderer → Lighting settings: parses settings
packages/runtime/src/engine/renderer.js - Live controls → Lighting controls: configures lighting