How orhandogankaplan/night-constellation works
Night Constellation is a Windows live-wallpaper, desktop music-skin, and screensaver application. Its main workflow reads Windows media-session state and loopback audio, exposes application services through a pywebview JavaScript bridge, and presents a real-time night-sky interface. The README also describes visual effects, lyrics, weather, telemetry, listening history, themes, tray controls, and wallpaper integration. Some frontend and backend relationships are only documented or indexed, so the graph avoids inferring unshown calls between those components.
Main entry points: main.py Application Bridge · constellation.js Constellation Scene · app.js Web Interface · lyrics_client.py Synced Lyrics
Components 28
Runtime and UI
- Application Bridge
main.py - PyWebView Window
main.py - Web Interface
frontend/app.js
Media Experience
- Media Session
backend/media_smtc.py - Audio Analysis
backend/audio_reactive.py - Synced Lyrics
backend/lyrics_client.py - Listening History
backend/history_log.py
Visual Scene
- Constellation Scene
frontend/constellation.js - Sky Effects
frontend/sky.js - Fluid Effects
frontend/fluid.js - 3D Background
frontend/gl_background.js - Weather Effects
frontend/weather_fx.js - Themes
backend/themes.py
Desktop Services
- Weather Service
backend/weather.py - HUD Telemetry
backend/telemetry.py - Auto-Eco Monitor
backend/eco_monitor.py - System Tray
backend/tray_manager.py - Wallpaper Controls
backend/win_wallpaper.py - Tray Localization
backend/i18n.py - Update Checker
backend/updater.py
External Integrations
- Windows SMTC
- WASAPI Loopback
- LRCLIB
- Google Translate
- Open-Meteo
- IP Geolocation
- GitHub Releases
Other components
- Desktop User
Connections 29
- Desktop User → Application Bridge: launches
README.md - Application Bridge → Media Session: creates
main.py - Application Bridge → Audio Analysis: creates
main.py - Application Bridge → Synced Lyrics: creates
main.py - Application Bridge → HUD Telemetry: creates
main.py - Application Bridge → Listening History: creates
main.py - Application Bridge → Weather Service: creates
main.py - Application Bridge → Web Interface: serves
main.py - Application Bridge → PyWebView Window: creates
main.py - PyWebView Window → Web Interface: loads
main.py - Application Bridge → Listening History: records tracks
main.py - Application Bridge → System Tray: configures
main.py - Application Bridge → Wallpaper Controls: uses
main.py - Application Bridge → Auto-Eco Monitor: uses
main.py - System Tray → Tray Localization: translates labels
backend/tray_manager.py - System Tray → Update Checker: reads update info
backend/tray_manager.py - Audio Analysis → WASAPI Loopback: captures audio
backend/audio_reactive.py - Media Session → Windows SMTC: polls sessions
backend/media_smtc.py - Synced Lyrics → LRCLIB: fetches lyrics
backend/lyrics_client.py - Synced Lyrics → Google Translate: translates lyrics
backend/lyrics_client.py - Weather Service → IP Geolocation: detects location
backend/weather.py - Weather Service → Open-Meteo: fetches forecast
backend/weather.py - Update Checker → GitHub Releases: checks releases
backend/updater.py - Web Interface → Constellation Scene: renders scene
- Constellation Scene → Sky Effects: uses effects
- Constellation Scene → Fluid Effects: uses effects
- Constellation Scene → 3D Background: uses background
- Constellation Scene → Weather Effects: uses weather FX
- Web Interface → Themes: supports themes