# threadbare FENNELWICK The browser build of longread, served at [`threadbare.substandard.blog`](https://threadbare.substandard.blog). It is a substandard subsite: same paper, ink, red pen and hard misprint shadows as `substandard.blog`. It reads public Bluesky records directly, with no backend and no sign-in. ## What it does - **Scan** ranks one account's long self-threads by text length and root engagement. - **Follows** merges the same table across the accounts a handle follows. - **Blog** lists an account's `site.standard.publication` records and `site.standard.document` records, maps documents back to their source posts, and recommends only threads that are not already documents. - **Drafts** keeps exported Markdown in IndexedDB. Nothing is written to an account. Each thread carries up to five **topics**: words drawn from its own text with a bundled stopword list. The extraction is local and deterministic. It is not a model, makes no extra request, and does not affect the ranking. Each result is a compact row: a `1/n` thread spine, the author's avatar, display name and handle, a two-line root snippet, the first image as a thumbnail, engagement, three topics, and the score. The full root and its quoted posts are in the thread view. The card is rendered from public records, not an `embed.bsky.app` iframe, so it keeps the substandard theme and makes no third-party request. Rows have a `⋯` menu for copying the Markdown, saving a draft, or opening the post on Bluesky. Scan and follows settings and sort order live in the URL and in localStorage, so a scan is shareable and restores on return. Long result sets render 50 rows at a time; follows results stream in as accounts finish, and a running scan can be cancelled. The score is `base reach × relative × (0.75 + 0.5 × craft)`. `relative` compares the root's engagement with the author's median engagement, so the ranking is not only a follower-count contest. Expanding the score shows the base reach, relative factor, author median, craft parts, weights and the thread's percentile among the account's scanned threads. `craft` is a local reading of the thread's voice and evidence, adapted from panoptiblog's per-document metrics. Strong content labels (`!hide`, `spam`, `scam`, `impersonation`) hide a row behind a “show hidden” toggle; adult and graphic labels show a content warning with a Show button. The thread view applies the same rule. If a post has forks, the card shows `⑂ n` and the thread view lists every branch, with the chosen path marked and clickable alternatives. Quoted posts are fetched and rendered inline. A quote whose author carries `!no-unauthenticated` stays a link, matching the CLI's opt-out rule. ## Develop ```sh npm install npm run build:wasm # compiles infra/longread/wasm to src/wasm npm run dev ``` `npm run check` runs `tsc --noEmit`. `npm run build` writes `dist/`. The Vite dev server is pinned to `127.0.0.1:5190`. The wordmark and icon come from `brand/` and `public/icons/`; the sticker favicon is copied by the `threadbare-favicon` prek hook. ## Deploy `scripts/deploy-threadbare.sh` builds the app, uploads an immutable release tree to `s3://threadbare.substandard.blog/releases//`, and flips CloudFront with `tofu apply`. The Route53 zone, certificate, bucket and distribution live in `infra/threadbare.tf`. The first apply needs AWS credentials and a `release_sha` for the frontpage in `infra/terraform.tfvars.json`; `scripts/deploy-site.sh` writes that value. ## Browser support Reading `public.api.bsky.app`, `plc.directory` and PDS `listRecords` endpoints from the browser relies on their `access-control-allow-origin: *` responses. `did:web` documents must also send CORS headers; most accounts are `did:plc`.