feat: AT Proto social platform — OAuth, PDS-backed data, Jetstream AppView
Turn atradio.fm into a social, AT-Protocol-native app.
Web (apps/web):
- Browser OAuth login (@atcute/oauth-browser-client), Atmosphere login modal
- Gate favoriting/add/remove behind login; public browse/search/playback
- Favorites + user stations stored as fm.atradio.* records in the user's PDS
(optimistic writes, loaded on login)
- Profile shows real display name/handle/avatar; public /profile/:did|:handle
Lexicons (packages/lexicons):
- fm.atradio.{station,favorite,getFavorites,getStations} authored in Pkl
(pkl eval -> JSON) + TS types/zod/mappers
API (apps/api) — Express + Drizzle + Postgres AppView:
- Jetstream consumer across all 4 official hosts, idempotent upserts, cursor
- XRPC getFavorites/getStations (+ discovery), open CORS
- Production TuneIn + ICY media proxies (moved off Vite dev middleware)
Ops & tooling:
- systemd units (api + jetstream)
- tools/console: Babashka + Clojure + rebel REPL command hub, root ./console
- mise pins java/clojure/babashka; consola logging throughout
refactor(web): migrate onto @atradio/sdk
The web now consumes the official TypeScript SDK for all record I/O:
- Add an agentAtom that wraps the OAuth-authenticated atcute client via
AtradioAgent.fromClient(client, did) — the single entry point for reads/writes.
- lib/atproto/records.ts becomes a thin facade delegating to the agent, keeping
its (client, did, …) signatures so no consumer changed; favoriteRkey and
StoredStation are re-exported from the SDK.
- favorites.ts uses agent.favorite/unfavorite directly (the SDK bundles the
idempotent write + stationId reconcile), dropping the local putFavorite +
pruneFavoriteDuplicates.
- Extend @atradio/sdk with the verbs the web needs: reaction, updateComment,
deleteComment, generic deleteRecord, listFavorites/listStations (+ StoredStation),
getAudioSettingsRecord.
The favorite record-key logic now has one source of truth (the SDK) shared by
web, CLI (Rust), and the Go/TS SDKs. Web typecheck + all 29 tests pass.
feat: AT Proto social platform — OAuth, PDS-backed data, Jetstream AppView
Turn atradio.fm into a social, AT-Protocol-native app.
Web (apps/web):
- Browser OAuth login (@atcute/oauth-browser-client), Atmosphere login modal
- Gate favoriting/add/remove behind login; public browse/search/playback
- Favorites + user stations stored as fm.atradio.* records in the user's PDS
(optimistic writes, loaded on login)
- Profile shows real display name/handle/avatar; public /profile/:did|:handle
Lexicons (packages/lexicons):
- fm.atradio.{station,favorite,getFavorites,getStations} authored in Pkl
(pkl eval -> JSON) + TS types/zod/mappers
API (apps/api) — Express + Drizzle + Postgres AppView:
- Jetstream consumer across all 4 official hosts, idempotent upserts, cursor
- XRPC getFavorites/getStations (+ discovery), open CORS
- Production TuneIn + ICY media proxies (moved off Vite dev middleware)
Ops & tooling:
- systemd units (api + jetstream)
- tools/console: Babashka + Clojure + rebel REPL command hub, root ./console
- mise pins java/clojure/babashka; consola logging throughout