longread #
FENNELWICK
Finds long self-threads in a Bluesky account and writes any of them as a Markdown draft. It reads public records only: it never signs in and never writes to an account.
Install #
cargo install --path .
Or build without installing:
cargo build --release
./target/release/longread --help
Commands #
scan #
longread scan <handle> [--since 90d] [--min-posts N] [--min-graphemes N] \
[--include-replies] [--include-published] [--json]
Prints long threads best first. Each row shows the root's date, post count, total graphemes, the root's likes/reposts/quotes/replies, dropped side branches, craft, score, whether the root is published, and the bsky.app URL.
Threads whose root matches a site.standard.document bskyPostRef.uri are
hidden by default. --include-published lists them with the published flag
set.
--since defaults to 365d. It accepts d, h, m and w.
JSON rows also carry the author's display name and avatar, the root's reply
count, root_text and root_thumb, the topics, and the full craft parts.
follows #
longread follows <handle> [scan flags] [--limit 200]
Runs the same scan over up to --limit accounts the handle follows. At most
four accounts are read at once, and a 429 is retried once after the delay in
Retry-After or ratelimit-reset. Results are merged into one table with an
author column.
export #
longread export <bsky.app post URL | at-uri> [--out draft.md]
Rebuilds the thread containing the post and writes Markdown. Without --out it
prints to stdout.
Quoted posts are fetched and rendered inline as blockquotes with their text,
facets and media. A quote whose author carries !no-unauthenticated stays a
link instead, so the opt-out covers quoted content too.
publication #
longread publication <publication URL | at-uri> [scan flags] [--scan] [--json]
Reads the publication's documents and their source posts. With --scan, it
also ranks the owner's threads, excluding every thread already represented by
one of the owner's documents.
What counts as a thread #
Only the author's own posts form a chain. Each post's
reply.parent.uri names the previous post. A chain starts at a top-level post,
or at a post whose parent belongs to someone else; the second kind is listed
only with --include-replies. A deleted parent ends the chain.
When the author replied to one of their own posts more than once, the longest
branch is kept and ties go to the earliest createdAt. The other branches are
counted as dropped.
A chain is long when it has at least --min-posts posts (default 5) and at
least --min-graphemes graphemes of text (default 1200).
Score #
base reach = graphemes × (1 + ln(1 + likes + 2 × reposts + 3 × quotes))
relative = (root engagement + 1) / (author median engagement + 1)
craft = 0.6 × voice + 0.4 × evidence
score = base reach × clamp(1 + 0.25 × (relative - 1), 0.75, 1.25) × (0.75 + 0.5 × craft)
Engagement comes from the root post. base reach is the original
length-and-reception score; it is kept as reach_score together with
relative_factor and author_median in JSON. The median is taken from up to 50
recent posts by the same author, so a thread is compared with what that author
normally gets rather than with the whole network.
cohort_percentile is the thread's rank among the account's scanned threads:
100 is the top thread, 0 the bottom. It does not change the ranking.
voice averages post depth (words out of 800), lexical range (MTLD out of 100),
rare-word share, and closeness to a grade-10 reading level. evidence averages
outbound links, source-host range, ecosystem links, and atproto or embedded posts
per 1,000 words. The weights and factors follow panoptiblog's voice and
evidence categories.
Panoptiblog's published score is percentile-based within a cohort. A single
thread has no cohort, so these factors are capped to 0..1 and averaged instead.
craft is shown 0..100 in the table; JSON carries the full parts.
Forks and labels #
When a post has more than one self-reply, the chosen path follows the longest
branch. JSON rows carry forks with every alternative branch, its length and a
snippet, so a UI can switch paths.
Rows also carry the root's labels and label_state. Strong labels such as
!hide, spam, scam and impersonation are hidden; adult and graphic
labels such as porn, sexual, nudity, graphic-media and gore are warn.
The web app warns or hides those rows; the CLI leaves the data intact.
Large accounts #
Post history stops after 200 pages (20,000 posts) and reports truncation.
Narrow --since for a complete read. The web app pages results in batches of 50,
streams follows results as accounts finish, and can cancel a scan.
Topics #
JSON rows include topics: up to five words drawn from the thread's own text
with a bundled stopword list. The extraction is local and deterministic. It is
not part of the score. The web app shows the labels under each thread.
Opt-out #
If an account's profile has the self-label !no-unauthenticated, longread
skips it and prints nothing about it.
Web app #
threadbare/ at the repository root is the browser build. It compiles the same
model, ranking and rendering code to WebAssembly and adds a TypeScript single
page app. It needs no server and no login; drafts stay in IndexedDB. See
threadbare/README.md.