How hanliang97/matrixmedia works
MatrixMedia is an Electron desktop app and CLI for managing accounts and distributing video across multiple creator platforms, with HTTP and MCP entry points for automation. The main workflow is to initiate a publish request, resolve its account and media details, then automate platform upload; users can also inspect history and account/work statistics. The graph includes documented capabilities whose implementation was not sampled; those relationships are cited to the README rather than inferred from module names.
Main entry points: cli/index.js CLI Commands · index.ts MCP Server · puppeteerFile.js Browser Automation · routes/index.js HTTP API
Components 18
User Interfaces
- Electron Desktop
src/main/services/windowManager.js - Vue Interface
src/renderer/App.vue - CLI Commands
src/main/cli/index.js - HTTP API
src/main/server/routes/index.js - MCP Server
mcp/src/index.ts - CLI Runner
mcp/src/runner.ts
Request Orchestration
- Publish Arguments
src/main/cli/parsePublishArgs.js - Publish Coordinator
src/main/services/publishVideo.js - Scheduled Publishing
src/main/services/scheduledPublish.js
Publishing Runtime
- Browser Automation
src/main/services/puppeteerFile.js - Platform Uploaders
src/main/services/upLoad - Video Metadata
src/shared/videoMetadata.js
Account and Insights
- Account Sessions
src/shared/accountPartition.js - Publish History
src/main/server/utils.js - Account Statistics
src/main/services/dataStats - MCP Jobs
mcp/src/jobs.ts
Other components
- User
- External Automation
Connections 23
- User → Electron Desktop: uses
README.md - Electron Desktop → Vue Interface: loads
src/main/services/windowManager.js - User → CLI Commands: runs commands
README.md - External Automation → CLI Commands: invokes
README.md - External Automation → HTTP API: requests publish
README.md - External Automation → MCP Server: calls tools
README.md - MCP Server → CLI Runner: dispatches
mcp/src/index.ts - MCP Server → MCP Jobs: tracks jobs
mcp/src/index.ts - CLI Runner → CLI Commands: spawns
mcp/src/runner.ts - CLI Commands → Publish Arguments: parses
src/main/cli/index.js - CLI Commands → Publish Coordinator: starts publishing
src/main/cli/index.js - HTTP API → Publish Coordinator: routes publish
src/main/server/routes/index.js - Scheduled Publishing → Browser Automation: starts scheduled tasks
src/main/services/scheduledPublish.js - Publish Coordinator → Browser Automation: coordinates
- Browser Automation → Platform Uploaders: dispatches uploads
src/main/services/puppeteerFile.js - Browser Automation → Account Sessions: uses partition
src/main/services/puppeteerFile.js - Browser Automation → Video Metadata: normalizes content
src/main/services/puppeteerFile.js - CLI Commands → Account Sessions: shares login state
README.md - CLI Commands → Publish History: queries history
README.md - HTTP API → Publish History: reads and updates
src/main/server/routes/index.js - MCP Server → Account Statistics: dispatches stats tools
mcp/src/index.ts - HTTP API → Account Statistics: triggers collection
src/main/server/routes/index.js - MCP Server → Publish History: queries history
README.md