Skip to content

About

Chrome, Safari, Firefox - Record and extract your history from your web use

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

274 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Browser Extension icon

Companion Intelligence Browser Extension

Companion Intelligence Browser Extension

Your browsing, your private memory.

release platform License Discord

Get started · Systems map · Documentation

Download browser builds

A privacy-first browser extension that syncs your history, bookmarks, downloads, and highlights to a Companion Intelligence (CI) Server that you control — never the cloud.

v1.6.2 · Chrome · Firefox · Safari (bundled in Companion Memory for iOS) · WXT + TypeScript

PolyForm Noncommercial 1.0.0 · License FAQ · © LifeScope INC, DBA Companion Intelligence

Popup walkthrough

🌟 Overview

The extension is a personal web-archival tool. It records your own browsing activity and sends it to your private CI Server, building a searchable digital memory of your online life. Lifescope never receives your captured data, and there are no third-party trackers. (Signing in uses Lifescope's identity service, CI-Portal, which necessarily learns who you are — but never what you capture. You can point the extension at your own Portal from the hidden developer panel: press Alt+Shift+Period in the popup, or click its title seven times within 2.5 seconds.)

✨ Features

Feature What it provides
History and archive Sync browsing history, bookmarks, downloads and page highlights.
Site-specific capture Use explicit profiles and per-source toggles.
Private delivery Send data to the user's configured server over an authenticated background queue.
Permission controls Use ignored pages/sites and local settings to limit capture.
  • History sync — sync your browsing history (URL, title, visit time, dwell, scroll depth, page description) to your CI Server, over a time range you pick.
  • Bookmarks & downloads — keep them in sync too; each data type toggles independently.
  • Highlight-to-save — select text on any page and archive it via the context menu.
  • Ignored Pages and Sites — exclude any site or page from capture in one click. Nothing on your ignore list is ever uploaded.
  • Supported-site profiles — structured capture from 12 sites: Netflix, Hulu, Disney+, Max, Paramount+, Prime Video (incl. amazon.com/gp/video), CNN, WSJ, Slashdot, GitHub, Quora, and Airbnb — each only on the specific pages it was written for. See CAPTURE.md.
  • Reliable background sync — uses the chrome.alarms lifecycle so scheduled work survives MV3 service-worker suspension.
  • Self-hosted & token-secured — point it at any CI Server domain; auth is a standard CI-Portal OIDC (Authorization-Code + PKCE) login that yields a short-lived portal id_token.

See CAPTURE.md for exactly what is captured (and what never is), the site-profile list and roadmap, PRIVACY.md for the full data-handling disclosure, and CHANGELOG.md for release notes.

📸 Screenshots

Sync to your server Pick what's captured Keep private sites private
One sign-in Recover what services forget

🚀 Installation

For users

Install Companion Intelligence from your browser's extension store:

Browser Where to get it
Firefox Firefox Add-ons (desktop Firefox)
Chrome Chrome Web Store
Safari Not yet available

The latest GitHub release also attaches the per-browser build packages (Chrome, Firefox and Safari). For the store listing copy and the submission steps, see store-assets/STORE-LISTING.md and PUBLISHING.md.

For developers (manual install)

corepack enable          # the repo pins yarn 4 via packageManager
yarn install
yarn build               # Chrome MV3  → .output/chrome-mv3
yarn build:firefox       # Firefox MV2 → .output/firefox-mv2
  • Chrome / Edge / Brave: chrome://extensions → enable Developer mode → Load unpacked → select .output/chrome-mv3.
  • Firefox: about:debugging → This Firefox → Load Temporary Add-on → select .output/firefox-mv2/manifest.json.
  • Safari: no unpacked-load mode — yarn build:safari produces .output/safari-mv2, which must be wrapped in an Xcode project via xcrun safari-web-extension-converter before it can run. See DEVELOPMENT.md for local testing and PUBLISHING.md for the release flow.

Package manager: this repo uses yarn 4 (via corepack). It cannot be installed with npm/pnpm because the workspace uses the workspace:* protocol.

📖 Usage

  1. Open the popup and click Sign in with CI-Portal. This opens the CI-Portal OIDC login (PKCE) against the production Portal (hub.ci.computer). For dev work, the hidden developer panel switches the Portal (staging / dev / local presets, or a custom URL). Open it with Alt+Shift+Period or seven clicks on the popup title within 2.5 seconds; it works signed out too.
  2. After sign-in the extension asks the Portal where your Memory app runs and configures the server URL automatically. If Memory is installed on more than one of your devices, the popup asks which device's Memory to use. If your account has no Memory app yet, the popup says so and offers Check again, Open Portal, or manual URL entry. You can re-run discovery any time from Settings → Find my Memory to switch devices. If your Portal doesn't support discovery (or you run an unusual setup), set the Memory URL manually under Settings. Once signed in, the popup shows the connected Memory host and your device.
  3. Choose a sync time range and click Start History Sync, or enable Auto-sync to run in the background.
  4. Toggle History / Bookmarks / Downloads to control what's captured.
  5. Use Ignored Pages and Sites to exclude anything private.

🛠️ Development

yarn dev                 # Chrome dev server (also dev:firefox, dev:edge, …)
yarn test                # Jest unit tests
yarn compile             # tsc --noEmit
yarn lint                # eslint
yarn build:firefox       # per-browser builds; see package.json scripts
yarn prepare:store       # clean + zip all store targets into .output/

Project structure

src/
├── entrypoints/
│   ├── background.ts            # sync engine, auth, alarms, device setup
│   ├── content.ts              # scroll depth + page metadata (reports on request)
│   ├── domainScraper.content.ts # supported-site capture
│   └── popup/                  # popup UI (App.tsx, BlacklistManager.tsx)
├── lib/                        # capture queue, ignore filter, validation
├── scrape/                     # profile registry + scrape engine
├── scrapeProfiles/             # per-site scrape profile JSON
├── services/                   # OIDC auth, portal discovery, ingest transport
├── store/                      # Redux Toolkit + webext-redux
└── utils.ts                    # URL parsing, ignore-list matching
store-assets/                   # store + README art (regenerate via render.sh)

How it fits together

The content script reads only enabled page data, the service worker applies settings and deduplication, and a retry queue sends records to the user's configured server; OIDC sign-in is separate.

flowchart LR
  Page[Enabled page profile] --> Content[Content script]
  Content --> Worker[Background service worker]
  Worker --> Store[Local settings and retry queue]
  Store --> Server[User-configured CI Server]
  Login[OIDC PKCE] --> Portal[CI Portal identity]
Loading

🏗️ Architecture

  • Framework: WXT (cross-browser, type-safe)
  • UI: React 19 + TypeScript + Tailwind/shadcn
  • State: Redux Toolkit + webext-redux (shared across popup/background)
  • Storage: browser.storage.local — settings, synced-ID bookkeeping, and a bounded retry queue for live captures that fail to upload
  • HTTP: posts captures to your CI Server's typed bulk lanes — POST /api/v1/browser-activity (visits, downloads) and POST /api/v1/contents (bookmarks, highlights, scraped items) — then POST /api/v1/ingest/finish so what was written becomes searchable; device registration via /api/devices

Browser builds: Chrome MV3 (primary), Firefox MV2, Safari MV2 (desktop) / MV3 (iOS via build:safari-mobile), plus Edge/Opera/Brave/DuckDuckGo (Chromium, identical manifest). yarn build:<target>.

Data flow

  1. Navigation events and manual/auto sync collect activity (minus your ignore lists).
  2. Items are de-duplicated against local sync bookkeeping.
  3. Batches POST to your CI Server's /api/v1/browser-activity and /api/v1/contents with the portal id_token as the Bearer. Ignore-list rules are applied to every capture path here, at the transport; the server dedups on (source_type, source_system, source_id).
  4. A POST /api/v1/ingest/finish sweep indexes the batch — the bulk lanes write without indexing, so this is what makes captures searchable.
  5. A live capture whose upload fails (offline, server down) is queued locally and retried at the start of the next sync — automatic or manual — rather than being dropped.
  6. Page title/description come from the page itself (a content-script read) — no third-party metadata service.

Requires CI-Server to run with PORTAL_OIDC_ENABLED=true; otherwise it rejects portal tokens with a bare 401.

Security & privacy

  • Data is sent only to your configured CI Server; no third-party analytics.
  • Auth: a CI-Portal OIDC Authorization-Code + PKCE login (public client ci-browser-extension). The extension sends the portal-issued, JWKS-signed id_token as the Bearer to CI-Server's /api/v1/* bulk routes; no passwords, session cookies, or CSRF tokens are read or stored. (Replaces the retired cookie/CSRF//api/authenticate/refresh flow.)
  • No passwords or form contents are collected. See PRIVACY.md.

🗺️ Roadmap

Tracked in CI-Engineering/projects/ci-browser-extension. Highlights: a diagnostics panel, broader scrape-profile coverage, a server-side fan-out contract so scrapes stop riding the page-view lane, and Browser-Use bidirectional control. The extension already authenticates through the platform's CI-Portal OIDC identity provider (Authorization-Code + PKCE).

🤝 Contributing

TypeScript, ESLint, Prettier, and WXT. Run yarn lint && yarn compile && yarn test before pushing. CI (GitHub Actions) runs lint/type/test/build on every PR.

🆘 Support

[email protected] — and check the popup status, your CI Server connectivity, and the browser console for diagnostics.

Data flow and permission summary

| Data or access | How it is used | Control |---|---| | Browsing history and page metadata | Captured and synced to the Memory server you configure | History toggle | | Bookmarks and downloads | Optional capture types | Separate toggles; off by default | | Selected text | Saved only when you invoke the context-menu action | Explicit user action | | Crash diagnostics | Extension error and stack details; no captured URLs or page contents | Disable in the extension popup |

Captured browsing data is sent to the Memory server you control; Lifescope's identity service handles sign-in, and the extension's optional crash reporting is a separate channel. Read the full Privacy Policy before enabling capture, especially for shared or managed browsers. See Development for build details.

About

Chrome, Safari, Firefox - Record and extract your history from your web use

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages