How namantenguria/mini-supercell-platform works
Mini Supercell Platform generates mobile-game telemetry, streams it through a processor, stores raw events, validates their quality, transforms them into analytics marts, and presents them in Metabase. The graph preserves the documented DAU, session, experiment, and retention capabilities, as well as MinIO archival and fraud checks. Several implementation files were not sampled; relationships based only on README descriptions are cited there, and uncertain model-to-model flow is marked dashed.
Main entry points: stg_events.sql Event staging · processor.py Stream processor · docker-compose.yml Metabase dashboards · schema.sql PostgreSQL raw events
Components 14
Event ingestion
- Event generator
services/event_generator/generate.py - Redpanda / Kafka
docker/docker-compose.yml - Stream processor
services/processor/processor.py - Fraud checks
services/processor/processor.py
Raw storage
- MinIO event archive
docker/docker-compose.yml - PostgreSQL raw events
warehouse/schema.sql
Quality and analytics
- Event quality gate
quality/run_quality_checks.py - Event staging
dbt/game_dbt/models/staging/stg_events.sql - DAU metrics
dbt/game_dbt/models/marts/daily_active_users.sql - Session metrics
dbt/game_dbt/models/marts/sessions.sql - Experiment metrics
dbt/game_dbt/models/marts/experiment_metrics.sql - Retention cohorts
dbt/game_dbt/models/marts/retention_cohorts.sql
Business insights
- Metabase dashboards
docker/docker-compose.yml
Other components
- Simulated players
Connections 17
- Simulated players → Event generator: simulates actions
README.md - Event generator → Redpanda / Kafka: publishes events
services/event_generator/generate.py - Redpanda / Kafka → Stream processor: streams events
README.md - Stream processor → Fraud checks: checks purchases
README.md - Stream processor → MinIO event archive: archives payloads
README.md - Stream processor → PostgreSQL raw events: writes events
README.md - Event quality gate → PostgreSQL raw events: validates events
quality/run_quality_checks.py - PostgreSQL raw events → Event staging: transforms raw data
README.md - Event staging → DAU metrics: feeds metrics
- Event staging → Session metrics: feeds metrics
- Event staging → Experiment metrics: feeds metrics
- Event staging → Retention cohorts: feeds cohorts
- Event quality gate → Event staging: gates dbt runs
README.md - DAU metrics → Metabase dashboards: supplies dashboards
README.md - Session metrics → Metabase dashboards: supplies dashboards
README.md - Experiment metrics → Metabase dashboards: supplies dashboards
README.md - Retention cohorts → Metabase dashboards: supplies dashboards
README.md