---
title: "You know I'ma stunt — Kapell"
description: "Grooves are debuting, lots of client latency improvements, and Kapell's API moved out of the one-box apartment."
canonical: "https://kapell.fm/blog/2026-11-13-you-know-ima-stunt/"
published: "2026-11-13"
---

Platform November 13, 2026

# You know I'ma stunt

Riding in the car with some bump in the trunk - Juicy J

BY THE NUMBERS PLATFORM · LIVE

GROOVE PAGE P95 755 → 105 ms

TRACK PANE P95 731 → 29 ms

LOAD TEST 800 rps

I mentioned Groove work [in the last platform post](blog/2026-10-21-still-fly/) and am happy to report that it’s built and working. The 1.7 release of macOS and 1.0 release iOS are awaiting review with Apple. Exciting!

## Kapell Gets Its Grooves Back

Grooves are my answer to the streaming era’s black box, algorithmic stations. You give it some “seed” music and it returns a few tracks. What’s novel is Kapell’s extensive graph of artist and song relationships to pick the music. Additionally, to combat the black box, it tells you *why* each track was chosen and higlights the people involved. You can also “steer” the groove by giving feedback. Oh, and they aren’t permanent. Not wanting to hear Billie Eilish today? No problem, you can skip her work in this groove only!

Each call to the Groove’s API is basically a pure functional call — there are dozens of knobs i’ll eventually expose. Today, it’s just presets. There’s no server side memory. Persistence comes from the client, which can provide lots of info. This is getting long, I’ll write another post later.

For now, it works like this: a Groove “wanders” the credit graph from a seed to find the next track. Doing that against Postgres meant a **lot** of little queries: the slowest 9-track page ran, like, ~1,550 queries. That’s fine for one listener but definitely **not** fine for a thousand.

So now once a day, after the nightly data build, Kapell writes every answer the engine could ask for into a set of compact files. A small service (`stationd`) reads them straight off disk. This was a bit of a departure from my plans, but the results are convincing:

- Page p95 went from **755 ms to 105 ms**.
- A full 9-track page comes back in about 70 ms on the server.

The Groove engine itself learned a few things too:

- **Explicit by default.** Grooves prefer the explicit edition of a record, unless you’ve asked for clean. More on editions below.
- **Subgenre pull.** A Groove can lean toward a subgenre, not just away from where it started.
- **Fewer duds.** Compilations and DJ mixes get skipped at the song level now, not just the album level, and interviews and commentary tracks count as non-songs. Nobody wants a 40-second “Intro (Skit)” as their next track. Well, *I* might, but nobody else does.
- **More songwriters.** Writers that only Apple knows about (common on brand-new releases) now get their real names, so the engine can follow them.

## One Read for the Track Pane

The track pane used to take five separate calls: one for credits and four REST requests for everything else. It’s now a single GraphQL read which runs at about 2 ms on the server. REST is still there as a fallback for older clients, and it got faster too.

Album pages had a similar problem with awards (the classic N+1 problem), which is now one lookup per album.

## Nobody Waits on Wikipedia Anymore

In the past if you opened something Kapell hadn’t seen in a while, your request might go off and fetch Wikipedia, ListenBrainz or ReccoBeats while you waited. A cold Wikipedia article could take *two and a half seconds*. Yuckyuckyuck.

Now a background job does all of that fetching, and requests only read what’s already stored. Brand-new things get picked up within about 15 minutes, and everything else gets refreshed daily. The track pane’s p95 went from **731 ms to 29 ms**, and requests now make **zero** calls to anyone else’s servers. The tradeoff is that sometimes Kapell reports no data when you encounter a stale or unknown lookup.

## Explicit or Clean

Albums and songs now know both their **explicit** and **clean** editions, per storefront. The client can play the one you want, and genre browsing with explicit hidden keeps a record around as long as a clean edition of it exists, instead of dropping it entirely.

## Closer to You, Faster

Kapell’s API is now fronted by Cloudflare, and most reads (albums, credits, artist pages, browse, search) can be served from directly Cloudflare’s cache near you instead of coming all the way to Helsinki. *Nopea!*

To verify that all of these optimizations work I gave Kapell’s API it’s first load test. Since we only allow Kapell as a client, we can keep the shape pretty tight. The initial runs revealed a lot of bottlenecks, most of which we’ve already covered above. Putting them all together got me to 800rps with negligible load, given sufficient caching. That’s enough for me to say things are good for now.

## Housekeeping

**Deeper bench.** It’s not interesting in 2026, but Kapell has ran on one big server for its whole life. It now runs on a small cluster. This makes some operational stuff easier, but also costs like 10x. Buy Kapell, please. **Improved monitoring.** Apparently I still have opinions about [observability](https://onemogin.com/observability/) as I’ve developed my own backend tooling. More on that in some other post.

Kapell — for macOS

Press play. Meet the band.

A deeper way to play the Apple Music® library you already have — the credits, samples, and history, surfaced as the music plays. Buy it once, own the whole thing. No subscription.

[Download](https://apps.apple.com/us/app/kapell/id6779394524) [See other journal entries](https://kapell.fm/blog/)
