How 1x7xxxxxxx/dashboard_music_platform_algo_spotify works
streaMLytics is a multi-tenant music-analytics SaaS: platform data is collected or uploaded, stored in PostgreSQL, and presented through an artist dashboard, with ML analysis and a REST API as additional product surfaces. The README documents the broad collection and dashboard capabilities; the source excerpts/index confirm key application, routing, authentication, parsing, and storage components. Several detailed collector-to-storage and model-serving calls were not sampled, so those links are omitted or marked unverified.
Main entry points: app.py Streamlit application · postgres_handler.py PostgreSQL handler · views Analytics and workflow views · transformers CSV parsers
Components 23
Data ingestion
- Airflow schedules
airflow/dags/spotify_api_daily.py - Platform collectors
src/collectors - CSV parsers
src/transformers
Persistence and quality
- PostgreSQL handler
src/database/postgres_handler.py - Subscription schema
src/database/stripe_schema.py - Data invariants
src/utils/gold_invariants.py
Artist experience
- Streamlit application
src/dashboard/app.py - Page routing
src/dashboard/routes.py - Analytics and workflow views
src/dashboard/views - Dashboard authentication
src/dashboard/auth.py - Dashboard navigation
src/dashboard/utils/navigation.py - Application settings
src/dashboard/utils/app_settings.py - Localization
src/dashboard/utils/i18n.py - Request throttling
src/dashboard/utils/throttle.py - Shared UI utilities
src/dashboard/utils/ui.py
API and analytics
- REST API
src/api/main.py - Stripe webhook
src/api/routers/stripe_webhook.py - ML inference
src/utils/ml_inference.py - Track matching
src/utils/track_matching.py - Verification email
src/utils/verification_email.py - Instance identity
src/utils/instance_identity.py - Metrics
src/utils/metrics.py
Other components
- Artist or operator
Connections 23
- Artist or operator → Streamlit application: uses
README.md - Airflow schedules → Platform collectors: schedules collection
- Artist or operator → CSV parsers: uploads platform data
README.md - Platform collectors → PostgreSQL handler: stores collected data
- CSV parsers → PostgreSQL handler: loads parsed data
- Streamlit application → Dashboard authentication: authenticates users
src/dashboard/app.py - Streamlit application → Page routing: dispatches pages
src/dashboard/routes.py - Page routing → Analytics and workflow views: resolves page modules
src/dashboard/routes.py - Streamlit application → Dashboard navigation: builds navigation
src/dashboard/app.py - Dashboard authentication → PostgreSQL handler: reads user records
src/dashboard/auth.py - Streamlit application → Application settings: loads configuration
src/dashboard/app.py - Streamlit application → Localization: uses translations
src/dashboard/app.py - Analytics and workflow views → Request throttling: uses throttling
src/dashboard/views/service.py - Analytics and workflow views → Shared UI utilities: uses shared UI
- Analytics and workflow views → PostgreSQL handler: queries analytics data
- REST API → PostgreSQL handler: checks database health
src/api/main.py - REST API → Metrics: publishes metrics
src/api/main.py - Stripe webhook → PostgreSQL handler: updates subscription records
src/api/routers/stripe_webhook.py - Stripe webhook → Subscription schema: maintains subscription state
- ML inference → Track matching: matches tracks
src/utils/ml_inference.py - CSV parsers → Track matching: matches imported tracks
src/transformers/s4a_csv_parser.py - Data invariants → PostgreSQL handler: validates stored data
- Verification email → Instance identity: labels email instance
src/utils/service_request_mail.py