How tristan-mangin/openchord works
CommonChord combines a Django API and a C++ Git-like music-file versioning engine. The main workflow is an authenticated user creating a repository, staging a file, committing it, and retrieving history or checked-out contents; the API invokes the engine through a Python client and keeps repository and commit records in Django models. Separate documented capabilities parse Ableton projects and provide waveform data. The graph reflects the shown API-to-client and C++ orchestration links; frontend, PostgreSQL deployment, and several endpoint implementations are documented but not represented by sampled source.
Main entry points: views.py Repository API · repository.cpp Repository operations · urls.py API routing · commit.cpp Commit encoding
Components 15
Django API
- API routing
bvcs_backend/bvcs/urls.py - Token auth
bvcs_backend/bvcs/auth_views.py - Repository API
bvcs_backend/bvcs/views.py - BVCS client
bvcs_backend/bvcs/client.py - Repository records
bvcs_backend/bvcs/models.py
Versioning engine
- Command dispatcher
storageHandling/main.cpp - Repository operations
storageHandling/repository.cpp - Commit encoding
storageHandling/commit.cpp - Staging index
storageHandling/index.cpp
Object storage
- Object store
storageHandling/object_store.cpp - Content hashing
storageHandling/hasher.cpp - Binary file utilities
storageHandling/utils.cpp
Music analysis
- Ableton parser
bvcs_backend/bvcs/als_parser.py - Waveform data
bvcs_backend/bvcs/waveform.py
Other components
- User
Connections 18
- User → API routing: requests
README.md - API routing → Token auth: routes auth
bvcs_backend/bvcs/urls.py - API routing → Repository API: routes API
bvcs_backend/bvcs/urls.py - User → Token auth: authenticates
README.md - Repository API → Repository records: reads writes
bvcs_backend/bvcs/views.py - Repository API → BVCS client: runs commands
bvcs_backend/bvcs/views.py - BVCS client → Command dispatcher: invokes
bvcs_backend/bvcs/client.py - Command dispatcher → Repository operations: dispatches
storageHandling/main.cpp - Repository operations → Object store: stores retrieves
storageHandling/repository.cpp - Repository operations → Staging index: stages files
storageHandling/repository.cpp - Repository operations → Commit encoding: encodes commits
storageHandling/repository.cpp - Object store → Content hashing: hashes content
- Commit encoding → Content hashing: uses hashes
- Commit encoding → Binary file utilities: uses utilities
- Staging index → Content hashing: uses hashes
- Staging index → Binary file utilities: uses utilities
- Repository API → Ableton parser: parses projects
bvcs_backend/bvcs/views.py - Repository API → Waveform data: requests waveform
bvcs_backend/bvcs/views.py