Skip to content

Add Reader Mode extension 📖 - #24369

Merged
raycastbot merged 31 commits into
raycast:mainfrom
chrismessina:ext/reader-mode
Feb 4, 2026
Merged

raycastbot merged 31 commits into
raycast:mainfrom
chrismessina:ext/reader-mode

Conversation

@chrismessina

@chrismessina chrismessina commented Jan 11, 2026 •

Copy link
Copy Markdown
Contributor

Description

Read the web distraction-free in Raycast.

Read web articles distraction-free with AI summaries. Extracts clean content, removes ads and clutter, offers 8 summary styles (Overview, ELI5, Translated, etc.), bypasses paywalls via archives, and handles blocked pages with browser extension fallback.

Screenshots

reader-0 reader-mode-1 reader-mode-2 reader-mode-3 reader-mode-4

Preferences:

CleanShot 2026-01-19 at 20 08 30@2x

Checklist

- Reorder Arc-style Summary to second position
- Add CONTRIBUTING.md, update README.md, and clean up documentation files
- Add language name mapping for translated overview prompt with support for 20 locales
- Add Arc-style summary prompt, improve site configs, and enhance paywall hopper with manual retry action
- Ran linter
- Update archive annotation formatting and add Wayback URL rewriting for live image loading
- Add soft paywall detection with text analysis and complete Phase 7 UI integration
- Implented Phases 5 & 6 of Paywall Hopper
- Implement Phases 3-4
- Phase 1 and 2 of Paywall Hopper completed.
- Add browser tab reimport action with canonical URL matching and inactive tab handling
- Add force parse mode with browser fallback and improve article extraction for difficult sites
- Add comprehensive documentation for content extraction architecture and rename quirks to site-config
- Enhance HTML cleaning with Defuddle-inspired selectors and add metadata extraction with Schema.org support
- Update references and rename about to spec.
- Add empty content detection and improve not-readable page handling
- Add translation language preference and per-language caching for translated summaries
- Better error handling when no URL is detected, and a refactoring of the codebase to extract Types, Actions, and to create Article and URL input views.
- Added preference to skip Readability prechecks and added GitHub badges to README.
- Implement Phase 5: Content Extraction Improvements with pre-cleaning, lazy image resolution, and schema.org detection
- Refactor browser extension integration with automatic tab detection and improved fallback handling
- Phase 3: Article Summarization
- Implement Phase 2: Content Processing and Markdown rendering tweaks
- Initial commit.
@raycastbot

ghost commented Jan 11, 2026 •

Copy link
Copy Markdown
Collaborator

Congratulations on your new Raycast extension! 🚀

We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 10-15 business days.

Once the PR is approved and merged, the extension will be available on our Store.

@chrismessina chrismessina changed the title Add reader-mode extension Add Reader Mode extension 📖 Jan 11, 2026
@chrismessina

ghost commented Jan 11, 2026

Copy link
Copy Markdown
Contributor Author

@greptile could you take a look at my new extension?

@greptile-apps

ghost commented Jan 11, 2026

Copy link
Copy Markdown
Contributor

Great extension concept! Let me examine the key files to provide a thorough review. Starting with the package.json:

@chrismessina

ghost commented Jan 11, 2026

Copy link
Copy Markdown
Contributor Author

Great extension concept! Let me examine the key files to provide a thorough review. Starting with the package.json:

Uh, hey @greptile where's the rest of your review?

@chrismessina
chrismessina marked this pull request as ready for review January 11, 2026 16:21
@greptile-apps

ghost commented Jan 11, 2026

Copy link
Copy Markdown
Contributor

You're absolutely right - I got cut off mid-review! Let me pick up where I left off and give you the complete review of the Reader Mode extension.

Since I can't access the files directly from the PR branch, let me work with what I can see from the PR description and provide feedback on what would typically be important for this type of extension:

Continuation of Review

Overall Assessment: This is a compelling extension concept that addresses a real need. The idea of distraction-free reading with AI summaries in Raycast is excellent.

Key Areas to Review:

  1. Package.json Structure: Need to verify proper dependencies, especially for AI integration and web scraping capabilities

  2. API Integration: The extension mentions AI summaries and paywall bypassing - these likely require external API calls that need proper error handling and rate limiting

  3. Content Extraction: Web scraping and content extraction can be fragile - need robust fallbacks

  4. User Experience: Multiple summary styles (Overview, ELI5, Translated, etc.) suggest complex preference management

  5. Security Considerations: Paywall bypassing and archive access need to be implemented responsibly

Questions for the Author:

  • What AI service are you using for summaries?
  • How are you handling rate limits and API costs?
  • What's the fallback strategy when content extraction fails?
  • Are there privacy considerations with the content being processed?

Missing Review Context:
I'd need to examine the actual implementation files (package.json, main command files, utility functions) to provide specific technical feedback on code quality, error handling, and adherence to Raycast best practices.

Would you like me to focus on any particular aspect of the extension, or do you have specific files you'd like me to examine more closely?

@chrismessina

ghost commented Jan 11, 2026

Copy link
Copy Markdown
Contributor Author

Questions for the Author:

  • What AI service are you using for summaries?

Raycast AI and GPT5-Nano.

  • How are you handling rate limits and API costs?

Handled by the user's Raycast AI subscription. Users can disable this feature, and I also detect whether Raycast AI is enabled.

We only use external APIs for the Paywall Hopper, which can be disabled.

  • What's the fallback strategy when content extraction fails?

What's the fallback strategy when content extraction fails?

Reader uses a multi-layered approach to handle extraction failures:

  1. Pre-flight check — Before attempting extraction, isProbablyReaderable() evaluates whether the page contains article-like content based on scoring heuristics (text density, paragraph count, etc.)

  2. Graceful degradation — If the pre-check fails or extraction produces minimal content (< 100 characters), users see a "Not Readable" view with actionable options:

    • Try Anyway — Bypasses the readability check and converts the raw HTML to Markdown, useful for non-standard layouts
    • Try Paywall Hopper — Attempts to retrieve the content via alternative sources (Googlebot bypass, archive.is, Wayback Machine)
    • Fetch from Browser — If the browser extension is installed, extracts content directly from the active tab (useful for JavaScript-rendered or login-protected content)
  3. Empty content handling — If extraction succeeds but produces less than 100 characters of content, users see an "Empty Content" view suggesting they open the page in their browser or try a different URL

This progressive fallback ensures users can still access content even when standard extraction methods fail, while providing clear guidance on next steps.

  • Are there privacy considerations with the content being processed?
  • Not that I can think of...

@greptile-apps

ghost commented Jan 11, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds a new Reader Mode extension that extracts clean article content, offers AI-powered summaries in 8 styles with multi-language output, and includes paywall bypass strategies (Googlebot/Bingbot spoofing, WallHopper, archive services). The implementation is well-structured with good separation of concerns across extractors, hooks, views, and utilities. Only two minor P2 findings remain.

Confidence Score: 5/5

Safe to merge — only P2 style/cleanup findings remain, neither blocks functionality.

All critical paths (article fetching, AI summarisation, paywall bypass, browser extension integration) are correctly implemented. The two remaining findings are a dead root-level file outside the compilation scope and a minor preference type scoping nit that has no runtime impact.

No files require special attention.

Important Files Changed

Filename Overview
extensions/reader-mode/package.json Extension manifest with correct categories, platform support, preferences, and dependency declarations — no issues found.
extensions/reader-mode/src/hooks/useArticleReader.ts Core orchestration hook; getPreferenceValues<Preferences.Open>() is scoped to the wrong command — ExtensionPreferences should be used since the hook is shared across all three commands.
extensions/reader-mode/utils/logger.ts Root-level file outside the src/ compilation scope; never imported by any source file and should be removed.
extensions/reader-mode/src/utils/fetcher.ts Multiple fetch strategies (standard, Googlebot, Bingbot, WallHopper, social referrer) with proper error categorisation and timeouts — no issues found.
extensions/reader-mode/src/utils/summaryCache.ts LocalStorage-backed summary cache; hardcoded style list in getAllCachedSummaries matches the SummaryStyle type exactly — no issues found.
extensions/reader-mode/src/config/ai.ts AI model configuration per summary style using OpenAI_GPT-5_nano — valid per updated Raycast AI docs.
extensions/reader-mode/src/utils/metadata-extractor.ts Rich metadata extraction using Schema.org, Open Graph, Twitter Cards, and DOM fallbacks; custom favicon extraction reads actual link tags from HTML rather than constructing third-party URLs — no issues.
extensions/reader-mode/src/open.tsx Entry point for the open command using auto-generated Arguments.Open type — correctly structured.
extensions/reader-mode/eslint.config.js Uses defineConfig from eslint/config with the Raycast ESLint config — matches the established pattern.
Prompt To Fix All With AI
This is a comment left during a code review.
Path: extensions/reader-mode/utils/logger.ts
Line: 1-14

Comment:
**Unreachable dead code outside compilation scope**

This file lives at `utils/logger.ts` (root level), but `tsconfig.json` only includes `"src/**/*"` in its `include` array. It is never compiled and no source file imports it — all logger imports point to `src/utils/logger.ts`. The file can be safely removed.

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: extensions/reader-mode/src/hooks/useArticleReader.ts
Line: 81

Comment:
**Preferences type scoped to wrong command**

`Preferences.Open` is the auto-generated type for the `open` command. This hook is also called from `open-clipboard` and `open-current-tab`, which have their own generated namespaces. Since all preferences in this extension are defined at the extension level (not per-command), `ExtensionPreferences` is the correct shared type to use here.

```suggestion
  const preferences = getPreferenceValues<ExtensionPreferences>();
```

How can I resolve this? If you propose a fix, please make it concise.

Reviews (5): Last reviewed commit: "Update CHANGELOG.md and optimise images" | Re-trigger Greptile

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4 files reviewed, 4 comments

Edit Code Review Agent Settings | Greptile

Comment thread extensions/reader-mode/src/config/ai.ts Resolved
Comment thread extensions/reader-mode/src/config/ai.ts Resolved
Comment thread extensions/reader-mode/src/open.tsx Resolved
- Ran Linter
- Added "arc-style" to the styles array in getAllCachedSummaries()
@chrismessina

ghost commented Jan 11, 2026

Copy link
Copy Markdown
Contributor Author

@greptile, I've responded to your review:

🔴 BLOCKER - Invalid AI Model Names: The AI configuration uses AI.Model["OpenAI_GPT-5_nano"] which does not exist in the Raycast API. This will cause runtime failures when users try to generate summaries. The correct model name is OpenAI_GPT5-mini (verified against other extensions in the repository).

Incorrect. Please review the AI docs carefully, as they were recently updated.

OpenAI_GPT-5_nano is a valid model.

🟡 Logic Error - Missing Summary Style: The getAllCachedSummaries() function in summaryCache.ts omits the "arc-style" summary type from its array, causing incomplete cache retrieval.

Fixed.

🟡 Style Issue - Manual Type Definition: The command uses a manually defined ReaderArguments type instead of the auto-generated Arguments.Open type, which goes against repository conventions and can cause type mismatches.

Fixed.

In terms of rate limiting for archive services, please see ./src/utils/paywall-hopper.ts and the related archive fetcher. Here's the rate limiting implementation:

Rate Limiting Strategy

There is no explicit rate limiting implemented for archive service calls. Instead, the system uses:

1. Sequential Fallback Pattern

Services are tried one at a time in order, stopping at the first success:

  1. Googlebot User-Agent
  2. archive.is
  3. RemovePaywall.com
  4. Wayback Machine

This naturally limits the number of requests; if Googlebot succeeds, the other services are never called.

2. Timeout-Based Throttling

Each service has request timeouts that act as implicit rate control:

  • archive.is: 45 seconds (ARCHIVE_IS_TIMEOUT_MS)
  • Wayback Machine: 10 seconds (availability check) + 30 seconds (content fetch)
  • RemovePaywall: 30 seconds (REMOVEPAYWALL_TIMEOUT_MS)

These timeouts prevent requests from hanging indefinitely and naturally space out retry attempts.

3. Single Request Per Service

Each service is called exactly once per paywall bypass attempt; there are no automatic retries within the hopper. If a service fails (timeout, HTTP error, no content), it moves to the next service immediately.

4. User-Initiated Only

Paywall bypass only runs when:

  • The user explicitly enables it in preferences (enablePaywallHopper)
  • Content extraction fails or returns minimal content
  • The user clicks "Try Paywall Hopper" on the Not Readable view

This prevents automated/background requests to archive services.

In summary: Rate limiting is implicit through sequential execution, timeouts, and user-initiated triggers rather than explicit request quotas or delays between calls.

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

Comment thread extensions/reader-mode/src/config/ai.ts Resolved
Comment thread extensions/reader-mode/CHANGELOG.md Resolved
@chrismessina

ghost commented Jan 12, 2026

Copy link
Copy Markdown
Contributor Author

@greptile could you take another look now that I've addressed all your feedback and pointed you to the updated docs?

I would like you to re-evaluate your Confidence Score.

Chris Messina added 6 commits January 12, 2026 14:22
- Add raycast-style to summary cache retrieval and format code for consistency
- Add Raycast-style summary format and article title rewriting feature with caching
…l Hopper

- Add fetchHtmlAsBingbot, fetchHtmlWithSocialReferrer, fetchHtmlWallHopper to fetcher.ts
- Update paywall-hopper.ts to try all 6 bypass methods in sequence
- Add source labels for new methods in open.tsx and markdown.ts
- Update site-config.ts with additional site configurations
- Improve error handling and timeout management in archive fetchers
- Remove status toast tracking from article loading flow
- Remove archive annotation from markdown formatter and move to article detail view
- Add missing service labels for new bypass methods in markdown annotation
- Add Bingbot, Social Referrer, and WallHopper bypass methods to Paywall Hopper
- Add contributor and documentation formatting fixes
- Sync with Raycast extensions PR raycast#24369 (includes title rewriting, stop summarizing, AI model fixes)
- Revert "Merge PR #1: Enhance paywall hopper with Bingbot, social referrer, and WallHopper"
- Merge PR #1: Enhance paywall hopper with Bingbot, social referrer, and WallHopper
- Refactor: improve code quality in paywall hopper enhancements
- Enhance paywall hopper with Bingbot, social referrer, and remove Jina.ai
- Update CHANGELOG
- Ran Linter
- Added "arc-style" to the styles array in getAllCachedSummaries()
- Add AI config for arc-style summary with GPT-5 nano model and low creativity setting
- update description in README
- Reorder Arc-style Summary to second position in SUMMARY_STYLES array
- Reorder Arc-style Summary to second position
- Add CONTRIBUTING.md, update README.md, and clean up documentation files
- Add language name mapping for translated overview prompt with support for 20 locales
- Add Arc-style summary prompt, improve site configs, and enhance paywall hopper with manual retry action
@chrismessina

ghost commented Jan 14, 2026

Copy link
Copy Markdown
Contributor Author

@greptile could you take another look? I've improved some of the AI summarization features and added a few more paywall hopping techniques, thanks to @hetommy's PR.

@chrismessina

ghost commented Jan 24, 2026

Copy link
Copy Markdown
Contributor Author

@greptile could you take another look?

ghost left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

58 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

Chris Messina and others added 6 commits January 26, 2026 18:33
- Add BBC site config.
- Replace custom ExtractorDocument interface with linkedom\'s native Document type for proper DOM API support
- Add .windsurf to gitignore, update README with new summary styles and language support, remove TODO and logger integration docs
- HTML action now uses Clipboard.copy({ text: html, html }) which sets both public.html and public.utf8-plain-text pasteboard types natively.
- Add configurable download path preference and simplify export actions with Obsidian-style HTML
- Removed unused var
- Add export actions for saving articles and summaries as Markdown and HTML files
- Add .github/.private to gitignore and update screenshot filenames and test files
- Remove shouldShowSummary prop and simplify summary display logic
- Ran prettier on Markdown docs
- Add dedicated clipboard and current tab commands with disabled-by-default configuration
- Lint package.json
- Apply Prettier formatting to package.json and markdown files, add Le Monde site config
- Add bold formatting to Arc-style summary bullet lead-in text.
- Bump raycast-logger version
- Improve error handling and timeout management in archive fetchers
- Remove status toast tracking from article loading flow
- Remove archive annotation from markdown formatter and move to article detail view
- Add missing service labels for new bypass methods in markdown annotation
- Add Bingbot, Social Referrer, and WallHopper bypass methods to Paywall Hopper
- Add contributor and documentation formatting fixes
- Sync with Raycast extensions PR raycast#24369 (includes title rewriting, stop summarizing, AI model fixes)
- Revert "Merge PR #1: Enhance paywall hopper with Bingbot, social referrer, and WallHopper"
- Merge PR #1: Enhance paywall hopper with Bingbot, social referrer, and WallHopper
- Refactor: improve code quality in paywall hopper enhancements
- Enhance paywall hopper with Bingbot, social referrer, and remove Jina.ai
- Update CHANGELOG
- Ran Linter
- Added "arc-style" to the styles array in getAllCachedSummaries()
- Add AI config for arc-style summary with GPT-5 nano model and low creativity setting
- update description in README
- Reorder Arc-style Summary to second position in SUMMARY_STYLES array
- Reorder Arc-style Summary to second position
- Add CONTRIBUTING.md, update README.md, and clean up documentation files
- Add language name mapping for translated overview prompt with support for 20 locales
- Add Arc-style summary prompt, improve site configs, and enhance paywall hopper with manual retry action
- Ran linter
- Merged BBC site configs.
- Add BBC site config.
- Replace custom ExtractorDocument interface with linkedom\'s native Document type for proper DOM API support
- Add .windsurf to gitignore, update README with new summary styles and language support, remove TODO and logger integration docs
- HTML action now uses Clipboard.copy({ text: html, html }) which sets both public.html and public.utf8-plain-text pasteboard types natively.
- Add configurable download path preference and simplify export actions with Obsidian-style HTML
- Removed unused var
- Add export actions for saving articles and summaries as Markdown and HTML files
- Add .github/.private to gitignore and update screenshot filenames and test files
- Remove shouldShowSummary prop and simplify summary display logic
- Ran prettier on Markdown docs
- Add dedicated clipboard and current tab commands with disabled-by-default configuration
- Lint package.json
- Apply Prettier formatting to package.json and markdown files, add Le Monde site config
- Add bold formatting to Arc-style summary bullet lead-in text.
- Bump raycast-logger version
- Improve error handling and timeout management in archive fetchers
- Remove status toast tracking from article loading flow
- Remove archive annotation from markdown formatter and move to article detail view
- Add missing service labels for new bypass methods in markdown annotation
- Add Bingbot, Social Referrer, and WallHopper bypass methods to Paywall Hopper
- Add contributor and documentation formatting fixes
- Sync with Raycast extensions PR raycast#24369 (includes title rewriting, stop summarizing, AI model fixes)
- Revert "Merge PR #1: Enhance paywall hopper with Bingbot, social referrer, and WallHopper"
- Merge PR #1: Enhance paywall hopper with Bingbot, social referrer, and WallHopper
- Refactor: improve code quality in paywall hopper enhancements
- Enhance paywall hopper with Bingbot, social referrer, and remove Jina.ai
- Update CHANGELOG
- Ran Linter
- Added "arc-style" to the styles array in getAllCachedSummaries()
- Add AI config for arc-style summary with GPT-5 nano model and low creativity setting
- update description in README
- Reorder Arc-style Summary to second position in SUMMARY_STYLES array
- Reorder Arc-style Summary to second position
- Add CONTRIBUTING.md, update README.md, and clean up documentation files
- Add language name mapping for translated overview prompt with support for 20 locales
- Add Arc-style summary prompt, improve site configs, and enhance paywall hopper with manual retry action
- Remove brackets from Overview prompt style.
- Ran linter
- Merged BBC site configs.
- Add BBC site config.
- Replace custom ExtractorDocument interface with linkedom\'s native Document type for proper DOM API support
- Add .windsurf to gitignore, update README with new summary styles and language support, remove TODO and logger integration docs
- HTML action now uses Clipboard.copy({ text: html, html }) which sets both public.html and public.utf8-plain-text pasteboard types natively.
- Add configurable download path preference and simplify export actions with Obsidian-style HTML
- Removed unused var
- Add export actions for saving articles and summaries as Markdown and HTML files
- Add .github/.private to gitignore and update screenshot filenames and test files
- Remove shouldShowSummary prop and simplify summary display logic
- Ran prettier on Markdown docs
- Add dedicated clipboard and current tab commands with disabled-by-default configuration
- Lint package.json
- Apply Prettier formatting to package.json and markdown files, add Le Monde site config
- Add bold formatting to Arc-style summary bullet lead-in text.
- Bump raycast-logger version
- Improve error handling and timeout management in archive fetchers
- Remove status toast tracking from article loading flow
- Remove archive annotation from markdown formatter and move to article detail view
- Add missing service labels for new bypass methods in markdown annotation
- Add Bingbot, Social Referrer, and WallHopper bypass methods to Paywall Hopper
- Add contributor and documentation formatting fixes
- Sync with Raycast extensions PR raycast#24369 (includes title rewriting, stop summarizing, AI model fixes)
- Revert "Merge PR #1: Enhance paywall hopper with Bingbot, social referrer, and WallHopper"
- Merge PR #1: Enhance paywall hopper with Bingbot, social referrer, and WallHopper
- Refactor: improve code quality in paywall hopper enhancements
- Enhance paywall hopper with Bingbot, social referrer, and remove Jina.ai
- Update CHANGELOG
- Ran Linter
- Added "arc-style" to the styles array in getAllCachedSummaries()
- Add AI config for arc-style summary with GPT-5 nano model and low creativity setting
- update description in README
- Reorder Arc-style Summary to second position in SUMMARY_STYLES array
- Reorder Arc-style Summary to second position
- Add CONTRIBUTING.md, update README.md, and clean up documentation files
- Add language name mapping for translated overview prompt with support for 20 locales
- Add Arc-style summary prompt, improve site configs, and enhance paywall hopper with manual retry action

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, approved 🔥

@raycastbot
raycastbot merged commit 0e480ca into raycast:main Feb 4, 2026
@github-actions

ghost commented Feb 4, 2026

Copy link
Copy Markdown
Contributor

@raycastbot

ghost commented Feb 4, 2026

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

@chrismessina
chrismessina deleted the ext/reader-mode branch February 5, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants