How xmader/musescore-downloader works
musescore-downloader is a deprecated tool for retrieving MuseScore sheet music and exporting it in score, audio, and document formats. The browser workflow waits for a score page, adds download controls, loads the score, and performs the selected export; the CLI provides a separate entry point to the same score and file-processing capabilities. Source references support the main call relationships, but the CLI and several subsystems were not excerpted, so some documented capabilities are represented at subsystem level rather than with detailed internal flows.
Main entry points: cli.ts CLI downloader · index.ts Locale selection · btn.ts Download controls · mscore.ts Score engine
Components 23
Entry points
- Browser startup
src/main.ts - Download controls
src/btn.ts - CLI downloader
src/cli.ts
Score retrieval
- Score metadata
src/scoreinfo.ts - MSCZ retrieval
src/mscz.ts - Site file API
src/file.ts - File token detection
src/file-magics.ts - Request interception
src/anti-detection.ts
Export and conversion
- Score engine
src/mscore.ts - PDF export
src/pdf.ts - PDF worker client
src/worker-helper.ts - PDF worker
src/worker.ts
Shared services
- Locale selection
src/i18n/index.ts - English strings
src/i18n/en.ts - Spanish strings
src/i18n/es.ts - Italian strings
src/i18n/it.ts - Chinese strings
src/i18n/zh.ts - Browser and Node APIs
src/utils.ts - Userscript APIs
src/gm.ts
Other components
- MuseScore visitor
- CLI user
- MuseScore
- IPFS gateway
Connections 34
- MuseScore visitor → Browser startup: opens score page
README.md - Browser startup → Download controls: starts controls
src/main.ts - Browser startup → Browser and Node APIs: waits for page
src/main.ts - Download controls → Score metadata: reads score
src/btn.ts - Download controls → Score engine: loads score
src/btn.ts - Download controls → Userscript APIs: registers menu
src/btn.ts - Download controls → Locale selection: gets labels
src/btn.ts - Download controls → Browser and Node APIs: opens export tab
src/btn.ts - CLI user → CLI downloader: runs downloader
README.md - CLI downloader → Score metadata: gets score details
src/cli.ts - CLI downloader → MSCZ retrieval: retrieves score
src/cli.ts - CLI downloader → Site file API: gets site files
src/cli.ts - CLI downloader → Score engine: processes score
src/cli.ts - CLI downloader → PDF export: exports PDF
src/cli.ts - CLI downloader → Locale selection: gets labels
src/cli.ts - Score metadata → MSCZ retrieval: resolves score ID
src/scoreinfo.ts - MSCZ retrieval → IPFS gateway: resolves and fetches
src/mscz.ts - Score metadata → Browser and Node APIs: uses fetch helpers
src/scoreinfo.ts - MSCZ retrieval → Browser and Node APIs: uses fetch helpers
src/mscz.ts - Score engine → MSCZ retrieval: loads MSCZ
src/mscore.ts - Score engine → Browser and Node APIs: fetches assets
src/mscore.ts - Score engine → Locale selection: names exports
src/mscore.ts - Score engine → MuseScore visitor: downloads formats
- Site file API → MuseScore: requests file URL
- Site file API → File token detection: gets auth tokens
src/file.ts - File token detection → Request interception: uses interception
src/file-magics.ts - PDF export → PDF worker client: requests PDF work
src/pdf.ts - PDF worker client → PDF worker: sends render job
src/worker-helper.ts - PDF export → Score metadata: reads sheet details
src/pdf.ts - PDF export → Site file API: gets page images
src/pdf.ts - Locale selection → English strings: loads locale
src/i18n/index.ts - Locale selection → Spanish strings: loads locale
src/i18n/index.ts - Locale selection → Italian strings: loads locale
src/i18n/index.ts - Locale selection → Chinese strings: loads locale
src/i18n/index.ts