How truemyst/beatprints works
Main Components
a. Core Components:
• Spotify Integration Module
• Lyrics Processing Module
• Poster Generation Module
• Image Processing Module
• CLI Interface
b. External Services:
• Spotify Web API
• LRClib API
• File System (for assets and output)
┌─ User Interface Layer ─────────────────────┐
• CLI Interface │
• (cli/*.py) │
• Application Layer ──────────────────────┐ │
• ┌─ Core Services ─────────────────────┐ │ │
• Poster Generator │ │ │
• Lyrics Processor │ │ │
• Image Processor │ │ │
• Spotify Client │ │ │
• ┘ │ │
• ┌─ Asset Management ───────────────────┐ │ │
• Fonts │ │ │
• Templates │ │ │
• ┘ │ │
• ┘
Component Relationships
• User → CLI → Spotify Client → Spotify Web API
• CLI → Lyrics Processor → LRClib API
• Poster Generator ← Image Processor
• Asset Management → Poster Generator
Specific Implementation Details
• The modular structure reflected in the BeatPrints/ directory
• Configuration management (environment variables)
• Multi-language support system
• Theme customization capability
• Error handling flow
Key Files to Reference
Key components:
• BeatPrints/spotify.py (API integration)
• BeatPrints/lyrics.py (lyrics processing)
• BeatPrints/poster.py (poster generation)
• BeatPrints/image.py (image processing)
• cli/prompt.py (user interaction)