go90.social #
Rate streaming services on Nilay Patel's go90 scale (0-90). A static SvelteKit 3 / Svelte 5 / TypeScript site: ratings are atproto records in each user's own repo, and the site reads them entirely client-side from Constellation (backlinks) and Slingshot (record hydration). No backend, no database.
Design docs: docs/superpowers/specs/2026-12-02-go90-social-design.md and the redesign docs/superpowers/specs/2026-12-03-go90-redesign-design.md.
Screens #
- Home
/: "How doomed is each streamer?" A quarter arc (0 Stable at the top, 90 Gone at the right) with each service's median, labelled in a column on the left. Below it, "All the numbers": a time-window control (30 days / 90 days / 1 year / All time, in?w=) and one dot-plot row per service showing every rating, the middle half and the median. - Rate
/rate: one service at a time with a big slider, the community median marked on it, and Skip / Save & next. Each save appends a new record; history is kept. - Service
/service/<domain>: the window-aware median, that service's large dot-plot row, the weekly median over its full history, your own rating slider (signed in), and recent raters. - Profile
/profile/<handle>: that person's latest rating per service on the same quarter arc.
How it works #
- Lexicons
garden.lexicon.avid-antelope-359377.{scale,prompt,rate}, published by tynanpurdy.com on Lexicon Garden. - The go90 account (
did:plc:p47ne73o2bkfr2gqijnaw2ke) owns the canonicalscaleandpromptrecords. Their refs are hard-coded insrc/lib/config.ts(SCALE_REF,PROMPT_REF). - Reading: Constellation backlinks (
RATE_SUBJECT_SOURCE=garden.lexicon.avid-antelope-359377.rate:subject.uri, targethttps://<domain>) -> Slingshot hydrates eachraterecord ->src/lib/aggregate.tscomputes stats. History is kept; the latest record per DID wins. - Writing:
@atproto/oauth-client-browsersigns the user in and callscreateRecordfor a newraterecord (re-rating creates a new record rather than editing). - Font: Katagami Sans from
@katagami/fonts.
Develop #
pnpm install
pnpm dev # http://127.0.0.1:5173, uses a loopback OAuth client
pnpm check # svelte-kit sync + svelte-check
pnpm test # vitest (tests/**/*.test.ts)
pnpm build # static output in build/ (SPA fallback build/index.html)
SvelteKit config lives in vite.config.ts (there is no svelte.config.js); it uses adapter-static with fallback: "index.html". Open the dev site at 127.0.0.1, not localhost, so the loopback OAuth redirect matches.
Seeding canonical records #
pnpm seed (scripts/seed.ts) publishes the scale and prompt records from the go90 account. It is idempotent and has already been run; the resulting refs are in src/lib/config.ts. Only re-run if you need to republish. Put credentials in a gitignored .env:
GO90_HANDLE=<handle or DID>
GO90_APP_PASSWORD=<app password>
GO90_SERVICE=<optional PDS url>
Never commit .env or the app password.
Deploy to wisp.place #
wisp.place hosts static sites from your atproto repo. Its CLI is wispctl on npm (v2.1.2 when checked; docs at https://docs.wisp.place/ , "CLI Tool" page).
pnpm build
pnpm dlx wispctl login # once; stores credentials (OAuth recommended)
pnpm dlx wispctl deploy <handle> --path build --site go90-social --spa
Automatic deploys #
Every push to main, including a merged PR, runs .tangled/workflows/deploy.yml on a Tangled spindle. The workflow runs pnpm install --frozen-lockfile, pnpm check && pnpm test, and pnpm build, then wispctl deploy ... --spa --yes as the go90 account. It can also be started manually from the repo's pipelines page. One-time setup:
- Repo Settings → Pipelines: select a spindle.
- Add the secret
WISPCTL_APP_PASSWORD, an app password for the go90 account (did:plc:p47ne73o2bkfr2gqijnaw2ke). wispctl reads it from the environment.
The default spindle timeout is 5 minutes, covering both queue time and the run.
Flags confirmed from wispctl deploy --help: -p/--path, -s/--site, --spa ("serve index.html for all routes"), -y/--yes, --password (headless). Requirements:
- SPA fallback is required. Routes like
/service/netflix.comand/profile/<handle>have no static files. The build emitsbuild/index.htmlas the fallback; deploy with--spaso wisp serves it for all routes. (I did not test this against a live site.) - Custom domain
go90.social.wispctl domainmanages domains andwispctl listshows sites and domains. I did not verify the exact subcommand syntax or the DNS records wisp asks for; runpnpm dlx wispctl domain --helpand follow https://docs.wisp.place/ to mapgo90.socialto thego90-socialsite. - OAuth client metadata is
static/oauth-client-metadata.json, so it ships athttps://go90.social/oauth-client-metadata.json. That exact URL is theclient_id; it must be served as JSON from that URL (not rewritten to the SPA fallback) or production sign-in fails. Check after each deploy withcurl -s https://go90.social/oauth-client-metadata.json.
Verifying end to end (needs a browser; not yet done) #
pnpm dev, open http://127.0.0.1:5173, sign in with an atproto account.- Rate Netflix 40, then move it to 62.
- Confirm two
garden.lexicon.avid-antelope-359377.raterecords exist in your repo (e.g. with pdsls.dev) with the expected shape. - Confirm
RATE_SUBJECT_SOURCEinsrc/lib/config.tsagainst Constellation. Sources are listed per target; list them with
curl 'https://constellation.microcosm.blue/links/all?target=https%3A%2F%2Fnetflix.com'
(or the HTML view at https://constellation.microcosm.blue/links/all?target=...). Theratecollection should list a path matching the constant. Then check counts with
curl 'https://constellation.microcosm.blue/xrpc/blue.microcosm.links.getBacklinks?subject=https%3A%2F%2Fnetflix.com&source=garden.lexicon.avid-antelope-359377.rate%3Asubject.uri&limit=5'.
The constant isgarden.lexicon.avid-antelope-359377.rate:subject.uri: Constellation brackets[$type]only on array elements, so the non-arraysubjectunion has no bracket. If Constellation lists a different path, fix the constant and commitfix: correct Constellation source path. - Clear
sessionStorage, reload, and check the community arc uses 62 (not 40) for that account./service/netflix.comshould show 2 trend points if the ratings fall in different weeks, otherwise one point with the trend hidden.