Side project · Juxeboxd · Flutter + GenAI
FullStack Flutter Music Tracker
A social music-review app in Flutter whose “For You” feed learns each listener’s taste from what they write. It turns review text into OpenAI embeddings, scores candidates locally, reranks them with an LLM, and recalibrates itself from what users actually engage with.
- When:
- Aug 2024 – Apr 2026
- Role:
- Solo — product, design, and engineering
- Stack:
- Flutter, Dart, Riverpod, Firebase, Firestore, OpenAI embeddings, GPT-4o mini, Spotify API, MusicBrainz, GitHub Actions, Claude Code
Overview
Juxeboxd is a social app for reviewing albums and songs. Listeners write reviews, follow friends, comment, build playlists (“crates”), and see their own listening analytics, including a genre breakdown and a review heatmap.
The core is the “For You” feed. Instead of “people also liked” lists, it recommends based on what each person actually writes about music.
How the recommender works
The pipeline applies ideas from Trey Grainger’s AI-Powered Search. Cheap, deterministic scoring narrows the field, and the LLM only sees a short, high-quality list.
01
Signals
Reviews, ratings, clicks, searches
02
Taste vector
OpenAI embeddings of review text
03
Local scoring
Genre, artist, album, rating, recency
04
LLM rerank
GPT-4o mini + user's own reviews
05
For You feed
Taste-specific picks
↺ Outcomes (reviewed, clicked, ignored) recalibrate the scoring weights
- Signals: explicit reviews and ratings, plus implicit clicks, dismissals, searches, and views, batched and written to Firestore without blocking the UI.
- Taste vector: each review is embedded with text-embedding-3-large, and a user’s vector is the rating-weighted average of their review embeddings. It’s cached in Firestore and refreshed incrementally.
- Stage 1: local scoring weighted across genre (40%), artist (25%), album (10%), community rating (15%), and recency (10%, decaying over 90 days).
- Stage 2: drop reviews in genres the user dislikes and keep the top-scoring shortlist.
- Stage 3: GPT-4o mini reranks the shortlist, using the user’s own review text and taste profile as retrieved context to judge semantic fit rather than tag overlap.
Why embeddings
Keywords miss meaning. “Incredible energy, makes me want to dance” and “great workout vibe, perfect beats” describe the same taste but share no words. Embeddings capture that similarity, and at roughly 50 tokens per review, embedding a user’s full history costs fractions of a cent.
Learning from its own mistakes
Every recommendation shown is logged. When a user later reviews, clicks, or ignores it, the outcome is recorded as reviewed positively, reviewed negatively, clicked without review, or ignored. The app then recalibrates each signal’s weight by how often it actually predicted a positive outcome, a lightweight, client-side form of learning to rank.
Cost and reliability
- Caching at every layer: a 15-minute results cache, taste profiles refreshed incrementally and at most every 7 days, and a local cache keyed to a signature of the user’s preferences.
- Embeddings are batched into single API calls and fall back from text-embedding-3-large to -small when needed.
- Very large histories are capped to recent reviews to keep analysis fast.
Building it with an AI agent
I built the app with Claude Code, guided by a project CLAUDE.md that encodes the rules an agent tends to break. For example, all screens must use one canonical review-card widget instead of re-inlining UI, and the auth-gating rules are spelled out for anonymous users. A separate design-system doc defines the visual language, an editorial “Digital Curator” look with strict token rules.
Around that: Riverpod for state, unit, widget, and integration tests run in GitHub Actions, a pinned Flutter version, and automatic web deploys to Firebase Hosting. Sign-in supports Google and Apple. Spotify, MusicBrainz, Discogs, and Wikipedia provide music metadata.
