SourceCapsule v1.2: quick save, thread capture, Share with AI#1
Merged
Conversation
Cloudflare rate limiting binding on POST /api/capsules (5/min per IP). Skipped gracefully when the binding is absent (local dev, tests). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Default share endpoint is now the deployed workers.dev service; localhost stays available through the manager menu for dev. Adds the matching @connect grant and extension host permission, and updates both READMEs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Documents the three capture rules the 2026-07-02 feasibility probe proved necessary: root-anchored replied_to traversal, batch Article embed hydration, and bounded quoted-ancestor walks with truncation metadata. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Thread capture clones posts while scrolling, so a post cloned before its image loaded has no media in the model at all - invisible even to the missing-media accounting (a real 36-post thread silently lost 7 of 27 photos). After quote enrichment, fetch each captured thread post from the syndication endpoint and append any media the DOM missed, matched by canonical pbs.twimg.com media key to prevent duplicates. Runs before inlineMedia so recovered blocks download and are counted like any other media; per-post syndication failures keep the DOM capture as-is. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Three fixes from real-thread testing: - Link-preview cards (the payload of a link post) are now captured from the DOM and recovered/upgraded from syndication entities.urls, rendered as a card in HTML and a [Link card] line in Markdown. - Long-form (note) posts in threads get an explicit truncation notice, from the DOM Show-more signal or the syndication note_tweet flag, instead of passing preview text off as complete. Manifest records truncatedPosts. - Export menu drops the redundant full-thread item and the single-format downloads (9 items -> 6 + grouped dividers). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Lead the README with the "X thread -> clean Markdown for LLMs" value proposition, a 30-second install, and a slot for the 20-second demo GIF. Retitle the userscript @name/@description with searchable keywords so the Greasy Fork listing (which derives its title from @name) surfaces for "save twitter thread markdown LLM" style queries. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's in v1.2
...._sourcecapsule-index.mdlibrary index.npm run build:extension).Merge gate — do not merge until
127.0.0.1:8787to the production URLmainimmediately ships to installed users via@updateURLAutomated checks (
npm test, lint, format, extension build) are green at HEAD.🤖 Generated with Claude Code