How nexu-io/openmotion works
OpenMotion is an agentic video-recreation studio: a user asks a connected agent to create or recreate a video, the project is represented and edited in Studio, and the same project can be rendered to MP4. The README also describes templates, Motion.md, brand kits, media generation, project import, and review workflows. The graph combines those documented capabilities with sampled server routing and Studio behavior; links for unsampled subsystems are marked dashed with no evidence path rather than asserted as inspected calls.
Main entry points: server.ts HTTP server · editor-runtime.ts Studio editor · mcp-tools.ts MCP tools · mcp.ts MCP service
Components 24
Agent creation
- MCP tools
mcp-tools.ts - MCP service
mcp.ts
Projects and assets
- Workspace projects
workspace.ts - Template library
shared/repository-template-catalog.ts - Brand kits
gateway/brand-kits.ts - Project assets
gateway/asset-library.ts - Project archives
gateway/project-archive-http.ts
Studio editing
- Studio editor
editor-runtime.ts - File manager
studio/src/hooks/useFileManager.ts - Timeline editing
studio/src/player/components/useTimelineClipDrag.ts - Keyframe editing
studio/src/player/components/useTimelineKeyframeHandlers.ts - Color grading
studio/src/components/editor/useColorGradingController.ts - Live preview
studio/src/player/hooks/useShadowPreviewReload.ts - Review comments
studio/src/motion/useReviewComments.ts
Runtime and services
- HTTP server
server.ts - Model gateway
gateway/service.ts - Hyperframes project
hyperframes.ts - Video rendering
server.ts
Product capabilities
- Scenario runs
gateway/scenario-runs.ts - Game projects
game-projects.ts - Design projects
design-projects.ts - Motion.md format
hyperframes.ts
Other components
- Creator
- Local agent
Connections 26
- Creator → Local agent: requests creation
README.md - Local agent → MCP tools: uses tools
README.md - MCP tools → MCP service: dispatches
- MCP service → HTTP server: serves requests
server.ts - HTTP server → Workspace projects: manages projects
server.ts - Local agent → Template library: starts from template
README.md - Local agent → Brand kits: supplies brand kit
README.md - Local agent → Model gateway: generates media
README.md - Model gateway → Project assets: stores generated media
gateway/service.ts - HTTP server → Project archives: routes archives
server.ts - HTTP server → Project assets: routes asset requests
server.ts - HTTP server → Scenario runs: routes scenarios
server.ts - HTTP server → Game projects: routes game requests
server.ts - HTTP server → Design projects: routes design requests
server.ts - Workspace projects → Hyperframes project: holds project
README.md - Creator → Studio editor: opens project
README.md - Studio editor → File manager: manages project files
- File manager → HTTP server: uploads and writes
studio/src/hooks/useFileManager.ts - Studio editor → Timeline editing: edits timing
README.md - Timeline editing → Keyframe editing: edits keyframes
- Studio editor → Color grading: adjusts color
- Studio editor → Live preview: refreshes preview
- Creator → Review comments: reviews project
README.md - Studio editor → Video rendering: renders MP4
README.md - HTTP server → Video rendering: runs export jobs
server.ts - Local agent → Motion.md format: authors shot plan
README.md