How xiaotianfotos/opc works
OPC is a Python CLI and web dashboard for an AI-assisted personal toolchain, with capabilities spanning speech, audio, images, video, and media cutting. The clearest end-to-end workflow is the dashboard cut editor: a user submits media, the server runs ASR and saves metadata, the editor manages word-level cuts, and an export service produces downloadable video. Other CLI and dashboard capabilities are represented as distinct branches. Some links rely on SOURCE INDEX imports or documented routes; unsampled internals are not inferred.
Main entry points: opc.py OPC CLI · main.js Dashboard Views · cut.js Cut API · CutEditorView.vue Cut Editor View
Components 34
Dashboard
- Dashboard UI
opc-cli/dashboard/server/src/App.vue - Dashboard Views
opc-cli/dashboard/server/src/main.js - Docs
opc-cli/dashboard/server/src/views/Docs.vue - Landing
opc-cli/dashboard/server/src/views/Landing.vue - Model Compare
opc-cli/dashboard/server/src/views/ModelCompare.vue - Gallery
opc-cli/dashboard/server/src/views/Gallery.vue - Knowledge Graph
opc-cli/dashboard/server/src/views/KGView.vue - Dashboard Server
opc-cli/dashboard/server/server.js
Cut Editing
- Cut Editor View
opc-cli/dashboard/server/src/views/CutEditorView.vue - Editor Components
opc-cli/dashboard/server/src/components/cut/CutEditor.vue - Cut State
opc-cli/dashboard/server/src/stores/cut.js - Cut API Client
opc-cli/dashboard/server/src/api/cut.js - Cut API
opc-cli/dashboard/server/api/cut.js - File Metadata
opc-cli/dashboard/server/services/cut/file.service.js - Dashboard ASR
opc-cli/dashboard/server/services/cut/asr.service.js - Valley Detection
opc-cli/dashboard/server/services/cut/valley.service.js - Video Export
opc-cli/dashboard/server/services/cut/export.service.js - Workspace Config
opc-cli/dashboard/server/services/cut/config.js
CLI Media Tools
- OPC CLI
opc-cli/scripts/opc.py - Image Generation
opc-cli/scripts/image/json_prompt.py - Image Knowledge Graph
opc-cli/scripts/image/kg/engine.py - Video Generation
opc-cli/scripts/video/comfyui.py - H3 Video Tools
opc-cli/scripts/video/h3.py - Audio Utilities
opc-cli/scripts/audio/compressor.py - Music Generation
opc-cli/scripts/audio/music.py - Cut Server
opc-cli/scripts/cut/server.py - Editing Analysis
opc-cli/scripts/cut/analyze_for_editing.py
Speech
- ASR Pipeline
opc-cli/scripts/asr/pipeline.py - Qwen ASR Engine
opc-cli/scripts/asr/qwen_asr_engine.py - Subtitle Generation
opc-cli/scripts/asr/subtitle_gen.py - Text to Speech
opc-cli/scripts/tts/qwen_engine.py
Shared Runtime
- Device Control
opc-cli/scripts/shared/device/player.py
Other components
- User
- CLI User
Connections 38
- User → Dashboard UI: uses
opc-cli/dashboard/server/src/App.vue - Dashboard UI → Dashboard Views: renders routes
opc-cli/dashboard/server/src/main.js - Dashboard Views → Docs: routes to
opc-cli/dashboard/server/src/main.js - Dashboard Views → Landing: routes to
opc-cli/dashboard/server/src/main.js - Dashboard Views → Model Compare: routes to
opc-cli/dashboard/server/src/main.js - Dashboard Views → Gallery: routes to
opc-cli/dashboard/server/src/main.js - Dashboard Views → Knowledge Graph: routes to
opc-cli/dashboard/server/src/main.js - Dashboard Views → Cut Editor View: routes to
opc-cli/dashboard/server/src/main.js - Cut Editor View → Cut State: uses state
opc-cli/dashboard/server/src/views/CutEditorView.vue - Cut Editor View → Editor Components: renders
opc-cli/dashboard/server/src/views/CutEditorView.vue - Cut State → Cut API Client: calls
opc-cli/dashboard/server/src/stores/cut.js - Cut API Client → Cut API: requests
opc-cli/dashboard/server/src/api/cut.js - Dashboard Server → Cut API: mounts routes
opc-cli/dashboard/server/server.js - Cut API → File Metadata: stores metadata
opc-cli/dashboard/server/api/cut.js - Cut API → Dashboard ASR: runs ASR
opc-cli/dashboard/server/api/cut.js - Cut API → Valley Detection: finds valleys
opc-cli/dashboard/server/api/cut.js - Cut API → Video Export: exports video
opc-cli/dashboard/server/api/cut.js - Dashboard ASR → Workspace Config: uses workspace
opc-cli/dashboard/server/services/cut/asr.service.js - Valley Detection → Workspace Config: uses workspace
opc-cli/dashboard/server/services/cut/valley.service.js - Video Export → Valley Detection: corrects cuts
opc-cli/dashboard/server/services/cut/export.service.js - Video Export → Workspace Config: uses workspace
opc-cli/dashboard/server/services/cut/export.service.js - CLI User → OPC CLI: runs commands
opc-cli/scripts/opc.py - OPC CLI → ASR Pipeline: dispatches ASR
opc-cli/scripts/opc.py - OPC CLI → Qwen ASR Engine: uses engine
opc-cli/scripts/opc.py - OPC CLI → Subtitle Generation: uses subtitles
opc-cli/scripts/opc.py - OPC CLI → Text to Speech: dispatches TTS
opc-cli/scripts/opc.py - OPC CLI → Image Generation: dispatches image
opc-cli/scripts/opc.py - OPC CLI → Image Knowledge Graph: uses graph engine
opc-cli/scripts/opc.py - OPC CLI → Video Generation: dispatches video
opc-cli/scripts/opc.py - OPC CLI → H3 Video Tools: uses video tools
opc-cli/scripts/opc.py - OPC CLI → Audio Utilities: dispatches audio
opc-cli/scripts/opc.py - OPC CLI → Music Generation: dispatches music
opc-cli/scripts/opc.py - OPC CLI → Cut Server: dispatches cutting
opc-cli/scripts/opc.py - Cut Server → OPC CLI: serves cut API
- Cut Server → Editing Analysis: analyzes media
- ASR Pipeline → Qwen ASR Engine: uses engine
opc-cli/scripts/asr/pipeline.py - ASR Pipeline → Subtitle Generation: uses renderer
opc-cli/scripts/asr/pipeline.py - OPC CLI → Device Control: controls devices
opc-cli/scripts/opc.py