Repository navigation
Add a Chrome extension for capturing research into Inbox - #16
Merged
Merged
Conversation
Pass the destination library through URL duplicate lookups and replace the global GitHub URL index with per-library uniqueness. Preserve duplicate protection for legacy unscoped rows and cover migration replay and import routing.
Recognize DOI, arXiv, OpenReview, Zenodo, PDF, website, and GitHub sources. Read explicit scholarly metadata or selected identifiers from the active tab, validate URLs, and construct existing ResearchOS import requests. Cover detection and restricted-page fallbacks.
Connect to a user-selected backend, validate destination libraries, and save through existing import endpoints. Persist results and recent captures, reject concurrent writes, and recover interrupted saves without replaying them. Keep import feedback in the popup and clear legacy toolbar badges.
Package a Manifest V3 extension with optional server permissions and a keyboard shortcut. Reuse the ResearchOS palette and theme provider for light, dark, and system modes. Add connection settings, editable capture input, type overrides, library selection, and result feedback with popup interaction tests.
Load a disposable extension copy against a local mock API. Exercise connection setup, script injection, all three import types, destination libraries, duplicate feedback, and theme persistence. Add a dedicated Playwright configuration and build-before-test scripts.
Run disposable PostgreSQL checks for migration 038, build the Chrome package alongside the frontend, and exercise the unpacked extension with the existing Playwright CI browser.
Document unpacked installation, backend connection, migration 038, type overrides, keyboard shortcuts, and theme preferences. Explain permissions, uncertain saves, popup-only result feedback, and local validation commands.
Show actual light and dark popup screenshots using demo data. Document the current feature boundaries and twelve potential additions with implementation considerations. Disable screenshot animations in the Chromium flow so theme previews capture final colors.
ThePyProgrammer
marked this pull request as ready for review
November 29, 2026 01:44
This was referenced Nov 29, 2026
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.
Summary
Add an unpacked Manifest V3 Chrome extension that saves research found while browsing directly to Inbox in a selected ResearchOS library. A DOI, paper page, website, or GitHub repository can be captured without opening Quick Add in the app. Imports reuse the existing backend pipeline, metadata lookup, and duplicate handling.
The popup reuses the ResearchOS color palette and theme provider, including light, dark, and system modes. Import results appear in the popup; persistent global
✓and=toolbar badges have been removed because they did not describe the current page.Screenshots
Actual extension UI captured in Chromium against a local demo backend. Identifiers and library names are test fixtures; no private library data is included.
Changes
activeTab,scripting, andstoragewithout permanently reading all browsing activity or putting database credentials into the extension.npm run build:extension, a dedicated Chromium integration test, unit/UI tests, disposable PostgreSQL checks, and CI steps for the extension build and browser flow.What is supported now
This release depends on a running ResearchOS backend. It does not implement full-page snapshots, local PDF file upload, offline synchronization, multiple saved server profiles, or login/token integration for protected deployments. Paper/PDF capture has the same resolution and download limits as the existing import pipeline. Requests time out after 25 seconds; an interrupted save can have an uncertain outcome, so users are told to check Inbox before retrying. The extension is loaded unpacked; store publication is outside this PR.
Potential future additions
These are documented ideas, not implemented features or delivery commitments:
The README records the implementation considerations for each idea.
Setup and database change
backend/migrations/038_library_scoped_github_urls.sqlin Supabase and restart the backend. Freshschema.sqlinstallations already contain the corrected indexes. This PR does not apply migrations to a live database.frontend, runnpm ciandnpm run build:extension.chrome://extensions, enable Developer mode, and loadfrontend/extension/distunpacked.http://localhost:8000andhttp://localhost:5173), allow the server permission, and choose a library.No existing API endpoint or request/response shape is replaced. The database change allows the same GitHub repository to be imported independently into multiple libraries while retaining duplicate prevention within each library.
Type of change
Testing
TZ=UTC. The existing dashboard chart test assumes UTC; it fails under the local America/New_York timezone and passes in UTC.The browser test uses a disposable mock API and grants only its loopback host in a disposable manifest copy. It does not contact the user's database or automate Chrome's native optional-permission dialog; the shipped manifest keeps server access optional, and the popup permission request is covered by unit tests. Light and dark screenshots were visually inspected.
Review notes