internal/

directory
v0.0.0-...-d2e4998 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2026 License: GPL-2.0

README

Notes on the database

WAL and a five-second busy_timeout are set on every connection, and writes are retried briefly when SQLite says the database is locked. A search that finds a provider playlist it already knows writes nothing: writing on every search is what made a busy database fail one.

Directories

Path Synopsis
Package api owns the HTTP surface of the server: REST endpoints, the media file server and the WebSocket event stream.
Package api owns the HTTP surface of the server: REST endpoints, the media file server and the WebSocket event stream.
Package artwork fetches and caches the images the providers point at.
Package artwork fetches and caches the images the providers point at.
Package auth owns accounts: argon2id password hashing, bearer-token sessions, the registration policy and identity resolution.
Package auth owns accounts: argon2id password hashing, bearer-token sessions, the registration policy and identity resolution.
Package cli implements the musoak command line client.
Package cli implements the musoak command line client.
Package config loads and validates MusOak's JSON configuration.
Package config loads and validates MusOak's JSON configuration.
Package ffmpeg wraps the ffmpeg and ffprobe binaries: probing and the opus transcode every stored rendition goes through.
Package ffmpeg wraps the ffmpeg and ffprobe binaries: probing and the opus transcode every stored rendition goes through.
Package library browses and synchronises the collections that sit above tracks: albums and artists, each of which exists once canonically while its provider releases hang off it as variants.
Package library browses and synchronises the collections that sit above tracks: albums and artists, each of which exists once canonically while its provider releases hang off it as variants.
Package lyrics resolves one rendition's words and remembers what it found.
Package lyrics resolves one rendition's words and remembers what it found.
Package match merges provider hits into canonical tracks.
Package match merges provider hits into canonical tracks.
Package media owns the download-first media pipeline: it fetches a variant's audio, stores it as Ogg/Opus under <storageDir>/media, and serves the finished files.
Package media owns the download-first media pipeline: it fetches a variant's audio, stores it as Ogg/Opus under <storageDir>/media, and serves the finished files.
Package prefetch keeps what people have collected on disk before they ask for it.
Package prefetch keeps what people have collected on disk before they ask for it.
Package provider defines the plugin boundary for music sources.
Package provider defines the plugin boundary for music sources.
spotify
Package spotify is the metadata-only Spotify provider.
Package spotify is the metadata-only Spotify provider.
youtube
Package youtube is the plain YouTube provider: search and download through yt-dlp alone, with no metadata service in between.
Package youtube is the plain YouTube provider: search and download through yt-dlp alone, with no metadata service in between.
ytmusic
Package ytmusic is the YouTube Music provider: search through ytmusicapi, audio through yt-dlp.
Package ytmusic is the YouTube Music provider: search through ytmusicapi, audio through yt-dlp.
Package radio builds a station from a seed track.
Package radio builds a station from a seed track.
Package ranking decides which provider to prefer when a track has several renditions: a user's own order, or the aggregate across all users.
Package ranking decides which provider to prefer when a track has several renditions: a user's own order, or the aggregate across all users.
Package rooms implements Listen Together around a simple contract: each member has a queue, the room mixes those queues, and the server holds the song and the time.
Package rooms implements Listen Together around a simple contract: each member has a queue, the room mixes those queues, and the server holds the song and the time.
Package store is the SQLite persistence layer.
Package store is the SQLite persistence layer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL