GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - SimplicityGuy/discogsography: ๐ŸŽถ Graph exploration of music releases

BranchesTags
Open more actions menu

Latest commit

 

History

1,196 Commits
1,196 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.planning/v2-gruvax
.planning/v2-gruvax
 
 
api
api
 
 
brainzgraphinator
brainzgraphinator
 
 
brainztableinator
brainztableinator
 
 
common
common
 
 
dashboard
dashboard
 
 
design
design
 
 
docs
docs
 
 
explore
explore
 
 
extractor
extractor
 
 
graphinator
graphinator
 
 
insights
insights
 
 
mcp-server
mcp-server
 
 
schema-init
schema-init
 
 
scripts
scripts
 
 
secrets.example
secrets.example
 
 
static/fonts
static/fonts
 
 
tableinator
tableinator
 
 
tests
tests
 
 
utilities
utilities
 
 
.coveragerc.api
.coveragerc.api
 
 
.coveragerc.brainzgraphinator
.coveragerc.brainzgraphinator
 
 
.coveragerc.brainztableinator
.coveragerc.brainztableinator
 
 
.coveragerc.common
.coveragerc.common
 
 
.coveragerc.dashboard
.coveragerc.dashboard
 
 
.coveragerc.explore
.coveragerc.explore
 
 
.coveragerc.graphinator
.coveragerc.graphinator
 
 
.coveragerc.insights
.coveragerc.insights
 
 
.coveragerc.mcp-server
.coveragerc.mcp-server
 
 
.coveragerc.schema-init
.coveragerc.schema-init
 
 
.coveragerc.tableinator
.coveragerc.tableinator
 
 
.dockerignore
.dockerignore
 
 
.env.example
.env.example
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.nvmrc
.nvmrc
 
 
.pip-audit-ignores
.pip-audit-ignores
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
.yamllint
.yamllint
 
 
AGENTS.md
AGENTS.md
 
 
CLAUDE.md
CLAUDE.md
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
codecov.yml
codecov.yml
 
 
docker-compose.prod.yml
docker-compose.prod.yml
 
 
docker-compose.yml
docker-compose.yml
 
 
justfile
justfile
 
 
osv-scanner.toml
osv-scanner.toml
 
 
pyproject.toml
pyproject.toml
 
 
pyrightconfig.json
pyrightconfig.json
 
 
rust-toolchain.toml
rust-toolchain.toml
 
 
uv.lock
uv.lock
 
 

Repository files navigation

discogsography



Build Code Quality Tests E2E Tests codecov License: PolyForm Noncommercial 1.0.0 Python 3.13+ Rust

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

๐ŸŽฏ What is Discogsography?

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.

๐Ÿ›๏ธ Architecture Overview

โš™๏ธ Core Services

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

๐ŸŽต MusicBrainz Enrichment Services

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

๐Ÿ“ System Architecture

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
Loading

See Architecture Overview for detailed diagrams covering data pipeline, service communication, and message queue structure.

๐ŸŒŸ Key Features

  • โšก 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

๐Ÿš€ Quick Start

# 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.

๐Ÿ“– Documentation

๐Ÿš€ Getting Started

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

๐Ÿ’ก Usage & Data

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

๐Ÿ‘จโ€๐Ÿ’ป Development

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

๐Ÿ”ง Operations

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

๐Ÿ‹ Infrastructure & CI/CD

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

๐Ÿ“‹ Reference

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

๐Ÿ’ฌ Support & Community

  • ๐Ÿ› Bug Reports: GitHub Issues
  • ๐Ÿ’ก Feature Requests: GitHub Discussions
  • ๐Ÿ’ฌ Questions: Discussions Q&A
  • ๐Ÿ“š Full Documentation: docs/README.md

๐Ÿ“„ License

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.

Other Discogs Projects

Some other projects working with the monthly Discogs data dump.

  • DiscoDOS
  • disco-quick
  • discogs-load

๐Ÿ™ Acknowledgments

  • ๐ŸŽต 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

Made with โค๏ธ in the Pacific Northwest

Stable collection pagination

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.

About

๐ŸŽถ Graph exploration of music releases

Topics

discogsdiscogs-apidiscogs-dumpdiscogs-dump-readerdiscogs-exportdiscogs-importerdiscogs-parserdiscogs-searchgraph-databasemusic-graph-databasemusic-information-retrievalmusicbrainzmusicbrainz-database

Resources

Readme
License

Contributing

Contributing
Activity

Stars

20 stars

Watchers

1 watching

Forks

2 forks
Report repository

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402775 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.