~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/hud

A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts

0
0

plyr.fm's charts open from its page, and an artist's tracks show

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/hud:plyr/charts

plyr.fm's page now links to its charts (Trending this week, Top this month, Top of all time, Latest), each a tile that plays, beside the account's part in plyr.fm, which now includes the tracks they uploaded. The charts come from plyr.fm's new XRPC queries on its next appview.

Claude Opus 5.5 · high

What changes

Charts. views/plyr-top-tracks.json (fm.plyr.unspecced.getTopTracks) and views/plyr-latest-tracks.json (fm.plyr.unspecced.getLatestTracks) draw plyr.fm's most liked tracks over a period and its newest in the Player, each artist's name opening their profile. Their launchers, Trending this week, Top this month, Top of all time and Latest, show on plyr.fm's page under Go to and in the workspace's launcher. Both call did:web:api.next.plyr.fm#plyr_appview.

An artist's tracks. views/plyr-tracks.json draws fm.plyr.track records from the artist's own repository in the Player, as a Tracks section of their profile and of their part in plyr.fm, beside Liked on plyr.fm and their playlists.

Likes say their title once. views/plyr-likes.json's list is its Player alone: its own "Liked tracks" header and handle repeated the profile section's title and a tile's header, as no other plyr list does.

Lexicons. scripts/lexicons.mjs also fetches next/backend/lexicons/unspecced from zzstoatzz/plyr.fm; only those three documents are added here, not the rest of what a fresh just lexicons would change upstream.

Audio origins. Every plyr view also loads from https://api.plyr.fm and the R2 bucket it redirects to: about four of ten trending tracks keep their audio there and drew as not playable without them.

Why

plyr.fm's page had nothing to go to and no tracks of the artist's own. An app's page is the account's activity in it with links to what is related, as Grain's, Bluesky's and knotless's are; the charts are links, not the page. A bespoke page view (Grain's look) was tried and dropped: a page view joins only an appview's queries, and plyr.fm has none for one account's tracks or likes, so its page stays the generic one.

How it was checked

just check (rustfmt, clippy, the tests under the coverage gate, svelte-check, lint, lex), and a test that draws both charts from an answer and finds their tracks in the Player. Run by hand behind a tunnel, signed in: the plyr.fm page, the chart tiles playing, and the likes section. No just look pictures, no gallery entries (recording them re-records every answer).

Shortcomings

The queries are unspecced and served by plyr.fm's next appview (api.next.plyr.fm) alone; the service DID changes when it moves to api.plyr.fm. The R2 bucket origin is plyr.fm's own and could change. Chart rows don't show the like counts the period ranks by.

Approved

This pull adds three bundled plyr.fm views, the matching lexicons and launchers, and the origin changes. The views are plyr-top-tracks, plyr-latest-tracks and plyr-tracks. The tracks view is a collection view with a profile section and the "Uploaded" activity. The change follows the repo's rules: it is data-only views, nothing in code names the collection, and the docs pages are updated. I didn't find anything that needs changing. I read the whole diff but ran nothing, so the dev-host and just check results are as the body reports them.

Two things to watch, neither blocking:

  • The queries are served only by api.next.plyr.fm, so these views will fail once plyr.fm moves its appview. The body already says this.
  • The bucket origin 3e9ba…r2.cloudflarestorage.com is added to every plyr view, so it widens the CSP for those views. That is acceptable for bundled, trusted views, but it ties them to plyr.fm's storage layout.
Approved

Since my approval, the pull changes the two chart views' Player items binding from tracks to items. It also adds a test, plyr_charts_draw_their_tracks, that draws both charts from sample responses. It checks the UI, the Player, two items, the title and the audio source. I couldn't confirm from the diff that items is the right binding, since the view's source isn't in it. The test passes the same response shape through the real view, so it should catch a wrong binding. I ran nothing myself. The earlier approval stands.

Approved

Since my approval, the only change is in views/plyr-likes.json. The Stack and Header wrapper around the Player is gone, so the likes view now draws the Player alone. The Player props are unchanged. The change is small and I found nothing wrong with it. I ran nothing. My earlier approval stands.

Merged as 1a93b0d