A modern Python 3.13+ microservices platform for transforming the complete Discogs music database into powerful, queryable knowledge graphs and analytics engines.
๐ Quick Start | ๐ Documentation | ๐ฏ Features | ๐ฌ Community
Discogsography transforms monthly Discogs data dumps (~11.3GB compressed XML) into:
- ๐ Neo4j Graph Database: Navigate complex music industry relationships
- ๐ PostgreSQL Database: High-performance queries and full-text search
- ๐ Interactive Explorer: Graph visualisation, trends, and path discovery
- ๐ Real-time Dashboard: Monitor system health and processing metrics
- ๐ต MusicBrainz Enrichment: Cross-reference with MusicBrainz for metadata, relationships, and external links
Perfect for music researchers, data scientists, developers, and music enthusiasts who want to explore the world's largest music database.
| Service | Purpose | Key Technologies |
|---|---|---|
| ๐ API | User accounts, JWT auth, and collection sync | FastAPI, psycopg3, redis, Discogs OAuth 1.0 |
| ๐ Dashboard | Real-time monitoring and admin panel | FastAPI, WebSocket, reactive UI |
| ๐ Explore | Serves graph exploration frontend (static files) | FastAPI, Tailwind CSS, Alpine.js, D3.js, Plotly.js |
| โก Extractor | High-performance Rust-based extractor | tokio, quick-xml, lapin |
| ๐ Graphinator | Builds Neo4j knowledge graphs | neo4j-driver, graph algorithms |
| ๐ง Schema-Init | One-shot database schema initializer | neo4j-driver, psycopg3 |
| ๐ Tableinator | Creates PostgreSQL analytics tables | psycopg3, JSONB, full-text search |
| ๐ Insights | Precomputed analytics and music trends | FastAPI, psycopg3, httpx |
| ๐ค MCP Server | Exposes knowledge graph to AI assistants | FastMCP, httpx |
| Service | Purpose | Key Technologies |
|---|---|---|
| ๐ง Brainzgraphinator | Enriches Neo4j graph with MusicBrainz metadata and relationships | neo4j-driver, pika |
| ๐งฌ Brainztableinator | Populates PostgreSQL with MusicBrainz data and external links | psycopg3, pika |
graph TD
S3[("๐ Discogs S3<br/>Data Dumps")]
MB[("๐ต MusicBrainz<br/>JSONL Dumps")]
subgraph Pipeline ["Data Pipeline"]
EXT[["โก Extractor"]]
RMQ{{"๐ฐ RabbitMQ"}}
GRAPH[["๐ Graphinator"]]
TABLE[["๐ Tableinator"]]
end
subgraph MBPipeline ["MusicBrainz Enrichment"]
BGRAPH[["๐ง Brainzgraphinator"]]
BTABLE[["๐งฌ Brainztableinator"]]
end
subgraph Storage ["Storage"]
NEO4J[("๐ Neo4j")]
PG[("๐ PostgreSQL")]
REDIS[("๐ด Redis")]
end
subgraph Services ["User-Facing Services"]
API[["๐ API"]]
EXPLORE[["๐ Explore"]]
DASH[["๐ Dashboard"]]
INSIGHTS[["๐ Insights"]]
end
S3 --> EXT --> RMQ
MB --> EXT
RMQ --> GRAPH --> NEO4J
RMQ --> TABLE --> PG
RMQ --> BGRAPH --> NEO4J
RMQ --> BTABLE --> PG
API --- NEO4J & PG & REDIS
EXPLORE --- API
INSIGHTS -.-> API
INSIGHTS --- PG & REDIS
DASH -.- RMQ & NEO4J & PG & REDIS
style S3 fill:#e1f5fe,stroke:#01579b,stroke-width:2px
style MB fill:#e1f5fe,stroke:#01579b,stroke-width:2px
style EXT fill:#ffccbc,stroke:#d84315,stroke-width:2px
style RMQ fill:#fff3e0,stroke:#e65100,stroke-width:2px
style NEO4J fill:#f3e5f5,stroke:#4a148c,stroke-width:2px
style PG fill:#e8f5e9,stroke:#1b5e20,stroke-width:2px
style REDIS fill:#ffebee,stroke:#b71c1c,stroke-width:2px
style GRAPH fill:#e0f2f1,stroke:#004d40,stroke-width:2px
style TABLE fill:#fce4ec,stroke:#880e4f,stroke-width:2px
style BGRAPH fill:#e0f2f1,stroke:#004d40,stroke-width:2px
style BTABLE fill:#fce4ec,stroke:#880e4f,stroke-width:2px
style API fill:#e3f2fd,stroke:#0d47a1,stroke-width:2px
style EXPLORE fill:#e8eaf6,stroke:#283593,stroke-width:2px
style DASH fill:#fce4ec,stroke:#880e4f,stroke-width:2px
style INSIGHTS fill:#fff9c4,stroke:#f57f17,stroke-width:2px
See Architecture Overview for detailed diagrams covering data pipeline, service communication, and message queue structure.
- โก High-Speed Processing: ~130โ480 records/second end-to-end throughput per data type with Rust-based extractor
- ๐ Smart Deduplication: SHA256 hash-based change detection prevents reprocessing
- ๐ Handles Big Data: Processes 19M+ releases, 10M+ artists across ~11.3GB compressed XML
- ๐ Auto-Recovery: Automatic retries with exponential backoff and dead letter queues
- ๐ Container Security: Non-root users, read-only filesystems, dropped capabilities
- ๐ Type Safety: Full type hints with strict mypy validation and Bandit security scanning
- โ Comprehensive Testing: Unit, integration, and E2E tests with Playwright
- ๐ Query Performance: 249x overall query performance optimization across 88 endpoints (PRs #175โ#184), plus configurable data quality rules for extraction validation (#187) โ see Recent Improvements
# Clone and start all services git clone https://github.com/SimplicityGuy/discogsography.git cd discogsography docker-compose up -d # Access the dashboard open http://localhost:8003
| Service | URL | Default Credentials |
|---|---|---|
| ๐API | http://localhost:8004 | Register via/api/auth/register |
| ๐Dashboard | http://localhost:8003 | None |
| ๐Neo4j | http://localhost:7474 | neo4j / discogsography |
| ๐PostgreSQL | localhost:5433 |
discogsography / discogsography |
| ๐ฐRabbitMQ | http://localhost:15672 | discogsography / discogsography |
See the Quick Start Guide for prerequisites, local development setup, and environment configuration.
| Document | Purpose |
|---|---|
| Quick Start Guide | โก Get Discogsography running in minutes |
| Configuration Guide | โ๏ธ Complete environment variable and settings reference |
| Architecture Overview | ๐๏ธ System architecture, components, data flow, and scale |
| CLAUDE.md | ๐ค Claude Code integration guide & development standards |
| Document | Purpose |
|---|---|
| Usage Examples | ๐ก Neo4j Cypher and PostgreSQL query examples |
| Database Schema | ๐๏ธ Complete Neo4j graph model and PostgreSQL schema |
| Monitoring Guide | ๐ Real-time dashboard, metrics, and debug utilities |
| Document | Purpose |
|---|---|
| Development Guide | ๐ป Project structure, tooling, and developer workflow |
| Testing Guide | ๐งช Unit, integration, and E2E testing with Playwright |
| Logging Guide | ๐ Structured logging standards and emoji conventions |
| Contributing Guide | ๐ค How to contribute: process, standards, and PR flow |
| Python Version Management | ๐ Managing Python 3.13+ across the project |
| Document | Purpose |
|---|---|
| Troubleshooting Guide | ๐ง Common issues, solutions, and debugging steps |
| Maintenance Guide | ๐ Package upgrades, dependency management |
| Performance Guide | โก Database tuning, hardware specs, optimization |
| Database Resilience | ๐พ Database connection patterns & error handling |
| MusicBrainz Sync Guide | ๐ต MusicBrainz data import and enrichment operations |
| Document | Purpose |
|---|---|
| Dockerfile Standards | ๐ Best practices for writing Dockerfiles |
| Docker Security | ๐ Container hardening & security practices |
| GitHub Actions Guide | ๐ CI/CD workflows, automation & best practices |
| Task Automation | โ๏ธ Completejust and uv run task command reference |
| Monorepo Guide | ๐ฆ Managing Python monorepo with shared dependencies |
| Document | Purpose |
|---|---|
| State Marker System | ๐ Extraction progress tracking & safe restart system |
| State Marker Periodic Updates | ๐พ Periodic state saves and crash recovery |
| Consumer Cancellation | ๐ File completion and consumer lifecycle management |
| File Completion Tracking | ๐ Intelligent completion tracking and stall detection |
| Neo4j Indexing | ๐ Advanced Neo4j indexing strategies |
| Platform Targeting | ๐ฏ Cross-platform compatibility guidelines |
| Emoji Guide | ๐ Standardized emoji usage across the project |
| Recent Improvements | ๐ Latest platform enhancements and changelog |
- ๐ Bug Reports: GitHub Issues
- ๐ก Feature Requests: GitHub Discussions
- ๐ฌ Questions: Discussions Q&A
- ๐ Full Documentation: docs/README.md
This project is source-available under the PolyForm Noncommercial License 1.0.0. See the LICENSE file for the full text.
- Free for noncommercial use โ personal projects, research, education, hobby use, and use by nonprofits, charities, and public institutions are all permitted at no cost.
- Commercial use requires a separate license. If you (or your employer) want to use this software for a commercial purpose โ inside a for-profit business, as part of a paid or hosted product, or in any other context that isn't noncommercial โ please contact Robert Wlodarczyk at [email protected] to discuss licensing terms.
- Prior versions remain MIT. Releases prior to 2026-05-13 were distributed under the MIT License. Copies obtained under MIT may continue to be used under MIT.
Some other projects working with the monthly Discogs data dump.
- ๐ต Discogs for providing the monthly data dumps
- ๐ต MusicBrainz for the open music encyclopedia and twice-weekly JSONL dumps
- ๐ uv for blazing-fast package management
- ๐ฅ Ruff for lightning-fast linting
- ๐ The Python community for excellent libraries and tools
- ๐ฆ The Rust community for excellent libraries and amazing performance
Strict collection consumers can use immutable published collection generations. Upgrade schema-init/API and complete a successful upstream collection sync before enabling strict GRUVAX sync; legacy credential probes and offset requests remain available. Generation producers require a pool of at least two connections.