How valens429/lyricstudio works
Lyric Studio is an Electron desktop editor for timing lyrics to audio and exporting lyric videos. The user edits lyrics and timing in the editor, previews the composition, then can export through the desktop FFmpeg workflow. The graph also shows desktop sign-in and the local server that supports the app. Several editor capabilities are visible only through partial excerpts; links between unsampled editor subsystems are omitted rather than inferred.
Main entry points: main.js Electron app · desktop-auth-main.js Auth IPC handlers · preload.js Secure IPC bridge · electron-ffmpeg.js FFmpeg integration
Components 16
Lyric editing
- Lyric editor
editor/app.js - Lyric timing
editor/timing.js - Editor themes
editor/themes.js - Platform features
editor/platform.js
Desktop runtime
- Electron app
main.js - Local editor server
server.js - Secure IPC bridge
preload.js
Video export
- MP4 muxer
editor/mp4-muxer.js - Export controls
editor/export-desktop.js - Export specification
editor/ffmpeg-spec.js - FFmpeg integration
electron-ffmpeg.js
Desktop sign-in
- Sign-in UI
editor/desktop-auth.js - Auth IPC handlers
desktop-auth-main.js
Other components
- Editor user
- FFmpeg
- System browser
Connections 18
- Editor user → Lyric editor: edits lyrics
- Lyric timing → Lyric editor: uses editor state
editor/timing.js - Electron app → Local editor server: starts server
main.js - Electron app → FFmpeg integration: registers integration
main.js - Electron app → Auth IPC handlers: registers handlers
main.js - Electron app → Secure IPC bridge: configures preload
main.js - Electron app → Local editor server: loads editor URL
main.js - Export controls → Secure IPC bridge: calls export bridge
editor/export-desktop.js - Secure IPC bridge → FFmpeg integration: invokes IPC handlers
preload.js - FFmpeg integration → Export specification: loads specification
electron-ffmpeg.js - Export controls → Export specification: uses export rules
editor/export-desktop.js - FFmpeg integration → FFmpeg: runs encoder
electron-ffmpeg.js - Sign-in UI → Auth IPC handlers: uses auth bridge
editor/desktop-auth.js - Secure IPC bridge → Auth IPC handlers: invokes auth IPC
preload.js - Auth IPC handlers → System browser: opens sign-in URL
desktop-auth-main.js - System browser → Local editor server: posts auth result
server.js - Local editor server → Auth IPC handlers: delivers callback
server.js - Editor user → Electron app: opens app