How codeinject7/musiai-backend works
Musiai Backend is a small Cloudflare Worker that serves song metadata to the Android app as JSON. Requests enter the Worker, which handles CORS and HTTP routing for song listing, search, ID lookup, and health checks. Song data is bundled from metadata.json; the Worker maps raw records into the app’s SongResponse format before returning them. The source excerpt shows the request handler’s calls and data reads; no separate database or runtime service is shown.
Main entry points: worker.js Request handler · metadata.json Song metadata
Components 5
HTTP API
- Request handler
src/worker.js - Song search
src/worker.js - Song mapper
src/worker.js
Song Catalog
- Song metadata
metadata.json
Other components
- Android app
Connections 6
- Android app → Request handler: sends requests
README.md - Request handler → Song metadata: reads
src/worker.js - Request handler → Song search: calls
src/worker.js - Request handler → Song mapper: calls
src/worker.js - Song search → Song metadata: searches
src/worker.js - Song search → Song mapper: calls
src/worker.js