A Song is a song application for listeners and song creators. Listeners play and stream songs and read their lyrics. Song creators make their own tracks, share them with other users, and — the defining capability of this product — reproduce an existing AI-generated song by matching it: the user has an AI-generated song and wants to make the same song.
The product's intent is record-shop gravity rather than pop hype: songs are presented as coded artifacts, each with a square colour plate and a catalogue number, and the act of matching an AI-generated song is treated as a precise studio operation rather than a novelty generator.
The audience is two active human roles: the Listener, who browses, streams, and reads lyrics, and the Song Creator, who additionally produces tracks and matches an existing AI-generated song. Both roles establish an application-owned account so that created tracks, matches, and shared songs remain bound to the correct person and can be resumed and revisited.
This document is the System Requirements Document for the project named A Song (the project was also referred to during intake as retro-song).
A Song is delivered as a first-party web application: a React frontend, a shared FastAPI backend that owns all application APIs and domain modules, and MariaDB as the application-owned persistent store. The backend calls model providers through a provisioned LiteLLM gateway, which is backed by its own PostgreSQL instance kept separate from application-owned storage.
Access is application-owned. The Landing page is the public entry and is reachable without an account. Sign Up and Login are the anonymous identity surfaces: a new Listener or Song Creator establishes an account through Sign Up, and a returning user verifies the account at Login. The working destinations — Songs, Song Details, Create Track, and Match Song — require a signed-in account, because browsing history, created tracks, shared tracks, and song matches are durable, actor-specific state that must remain bound to the correct participant and be resumable on return.
The current delivery covers: playing and streaming songs, viewing song lyrics, creating and sharing tracks, and matching an existing AI-generated song. Model-provider calls for matching are made by the backend through the LiteLLM gateway; the gateway is infrastructure, not a user-facing destination. Nothing in this document extends the product into adjacent areas such as social feeds, messaging, payments, or artist verification.
Removed from scope
Not applicable. No reference directive in this request declares content_source; no external factual inventory is supplied or reproduced.
FR-1 — Play and stream songs (explicit) As a Listener, I should play and stream songs so that I can listen to the catalogue.
FR-2 — View song lyrics (explicit) As a Listener, I should view a song's lyrics so that I can read along with the track.
FR-3 — Create and share a track (explicit) As a Song Creator, I should create a track and share it so that other users can find and stream my song.
FR-4 — Match an existing AI-generated song (explicit) As a Song Creator, I should submit an AI-generated song I already have and make the same song, so that I end up with a matching track of my own.
FR-5 — Share a matched song (required_inference) As a Song Creator, I should share a matched song so that other users can stream the song I made to match the AI-generated original.
FR-6 — Self-service enrollment (required_inference) As a new Listener or Song Creator, I should complete self-service enrollment so that my created tracks, matches, and listening state remain mine and resumable.
FR-7 — Returning verification (required_inference) As a returning Listener or Song Creator, I should verify my account at Login so that I can resume my songs, matches, and listening.
The Song Creator is the persona the product was requested for: someone who already holds an AI-generated song and wants to make the same song. Their work is studio work, not browsing. They arrive with a reference artifact in hand, submit it in Match Song, and judge the produced match against the original. They also make tracks from scratch in Create Track and share them so other users can stream them. Their decisions are concrete: which reference song to match, whether the produced match is acceptable, and whether to share it. They interact with the Listener as the audience for their shared tracks, and with the identity surfaces to keep their catalogue bound to them across sessions. Observable success is a matched song saved under their account with its own catalogue number and colour plate, and — once shared — visible and streamable by Listeners in Songs.
The Listener is the audience persona. Their work is playback and reading: they browse the Songs catalogue, stream a track in the bottom player, and open Song Details to read the lyrics in the narrow centered column. They do not produce tracks. Their inputs are song selections; their decisions are what to play next and whether to read the lyrics. They interact with the Song Creator only indirectly, as the recipient of shared tracks that appear in the catalogue, and with the identity surfaces to keep their listening state resumable. Observable success is a song streaming with its waveform advancing in step with the audio and its lyrics fully readable.
Muse and headline: Peter Saville — a record sleeve treated as a coded artifact. One exact colour code and one centered artifact carry the identity. The mood is record-shop gravity, not pop hype.
Mode: dark.
Colour tokens (exact hex, by role):
#101012 — near-black ground covering roughly 80 percent of every surface.#1A1A1E — framed metadata boxes, plates' backing, player rule ground.#F2F0EA — bone text for all reading.#E8552B — signal orange; marks the play control and the match action only.#F2C230 — mustard; appears only in the lyric column rule.#8A8A93 — secondary metadata and catalogue numbers.Typography:
0.18em tracking, medium weight, small sizes with large silence around them.clamp() so the headline stays whole at 375px, 768px, and 1280px.Shape language: sharp corners only; no rounded cards, no pill buttons. One hairline rule per block. Metadata sits in small framed boxes like sleeve credits.
Layout: a gallery grid of strict columns; one centered artifact per section; sparse metadata blocks at the edges.
Imagery: no photography. One coded colour field per song; thin waveform diagrams and catalogue numbers act as images.
Avoid: rounded cards and pill buttons; gradient blobs and glass panels; bright white grounds; stock artist photos; marquee text; the generic indigo/blue-on-white SaaS template.
The public entry is a full dark field of #101012. One large square colour plate of signal orange #E8552B sits off-center left — the coded artifact, like a Factory sleeve code. To its right the headline stacks in bone caps: "One song. Make it yours." Below it the subline reads "Play the track, read the lyrics, then build a match of your own." A thin bottom rule spans the width; inside it sit a catalogue number in caps (e.g. RS-001) and the play control, both in bone text with the play control marked in signal orange. The "Enter the studio" call to action is a sharp-cornered control in the same bottom rule, never a pill. The same square-plate-and-catalogue-number grammar repeats on every song in Songs and Song Details, so the entry page reads as the first sleeve in the catalogue.
Interaction Model: Static (direction) Motion Tempo: still Hero Dimensionality: flat
Landing Hero Motion Brief
durable_state_required): accounts, created tracks, sharing state, and matched songs persist in MariaDB so a returning user resumes exactly where they left off.ai_required): the match capability calls a model provider through the LiteLLM gateway; the gateway's PostgreSQL is separate from application-owned storage and holds no application domain data.delivery_shape.app_owned_identity): Sign Up and Login are first-party surfaces; protected destinations are unavailable until identity is established.clamp(). Imagery and decoration may bleed or crop; readable text and controls may not be covered.prefers-reduced-motion, the static arrangement remains fully usable.
No comments yet. Be the first!