timescout-bridge
v0.1.0
Published
TimeScout Screenpipe bridge — reads local Screenpipe data, runs pattern detection locally, and uploads observations to TimeScout. Screenshots/audio/clipboard are not uploaded, but observations include on-screen text and meeting transcript excerpts; secret
Maintainers
Readme
timescout-bridge
The TimeScout bridge reads your local Screenpipe database, runs pattern detection on your machine, and syncs the resulting observations to TimeScout.
What is uploaded: aggregated observations ("Used iTerm2 12 times for 45 minutes today") — and each observation carries text alongside the aggregate. Specifically, screen-reading observations include up to 500 characters of the text read off your screen, and meeting observations include the transcript of the meeting (up to 5,000 characters). Browser URLs and window titles are included verbatim.
What is not uploaded: screenshot images, audio files, and clipboard contents.
Before upload every text field is passed through a best-effort scrubbing pass for obvious machine-readable secrets. That pass is incomplete — see What gets scrubbed, and what does not. Run the bridge only if you are comfortable with the text on your screen and in your meetings being sent to TimeScout.
Install
# Prereq — Screenpipe running locally
brew install screenpipe && screenpipe
# Install the bridge
npm install -g timescout-bridgeConfigure
- Go to https://timescout.ai/settings/bridge
- Click Create API key, copy the key (shown only once)
- Run:
timescout-bridge login
# Paste the key when promptedUsage
# One-shot sync of everything new
timescout-bridge sync
# Daemon — sync every 5 min
timescout-bridge watch
# Inspect current state
timescout-bridge status
# Remove local config
timescout-bridge logoutCustom Screenpipe path
If Screenpipe's DB isn't at the default (~/.screenpipe/db.sqlite):
timescout-bridge login --db /custom/path/db.sqlite
# or
SCREENPIPE_DB_PATH=/custom/path/db.sqlite timescout-bridge syncSelf-hosted TimeScout
timescout-bridge login --api-url https://timescout.example.com
# or
TIMESCOUT_API_URL=https://timescout.example.com timescout-bridge syncWhat gets synced
The bridge reads three Screenpipe tables (frames, audio_transcriptions, ocr_text) and produces four types of observations:
| Type | When | Example |
|---|---|---|
| app_switch | App used 3+ times in the sync window | "Used Slack 47 times (128 min) today: #ops, #engineering" |
| meeting | 5+ consecutive audio segments <2 min apart | "Meeting 42 min, 3 speakers: 'let's align on the Q2 roadmap…'" |
| screen_capture | 6+ consecutive OCR frames in same app, >3 min | "Spent 18 min reading HubSpot (Pipeline)" |
| clipboard | (reserved — Screenpipe doesn't yet expose clipboard events) | — |
What gets scrubbed, and what does not
Every text field is passed through a regex scrubbing pass before upload (src/redact.ts). It is
best-effort pattern matching, not a guarantee. Treat it as a safety net for accidental key
leaks, not as a privacy boundary.
Patterns it does catch:
- Credit card numbers (13-19 digit sequences)
- US SSNs (
NNN-NN-NNNN) - AWS access keys (
AKIA…) and 40-char base64 blobs - GitHub tokens (
ghp_,gho_,ghs_) - Anthropic keys (
sk-ant-…) - OpenAI keys (
sk-…) - Slack tokens (
xoxb-,xoxp-) - JWTs
- PEM private-key blocks
- Bearer / Basic / Authorization header values
password/passwd/pwd/secret/apikey/api_keyquery parameters in URLs
Patterns it does NOT catch — these are uploaded as-is:
- Anything spoken aloud in a meeting. The transcript is uploaded verbatim (post-pattern-scrub), so a password, account number or private detail said out loud is sent.
- Anything written in prose rather than a recognized token format — names, addresses, health or financial details, internal project names, contract terms read off your screen.
- OAuth and session values in URLs:
code=,access_token=,id_token=,state=,sig=, and session cookies. - Token formats not in the list above, including
sk-proj-…, Stripe (sk_live_,rk_live_), Google (AIza…), GitLab (glpat-), Twilio (SK…), npm (npm_), and Slack app/refresh tokens. - Credentials embedded in a connection string or DSN (
postgres://user:pass@host). - Email addresses and phone numbers.
Field lengths are hard-capped (summary ≤ 500, context ≤ 5000, appName ≤ 200, actionUrl ≤ 2000). Note that the cap truncates; it does not drop the field. A 5,000-character slice of a meeting transcript is still uploaded.
You can add your own patterns via redactPatterns in the config file (see below) — that is the
supported way to scrub something the built-in list misses.
Configuration file
Stored at ~/.timescout/config.json with 0600 perms:
{
"apiKey": "timescout_bridge_...",
"apiUrl": "https://timescout.ai",
"screenpipeDbPath": "/Users/you/.screenpipe/db.sqlite",
"redactPatterns": []
}Add extra redaction regex strings (applied globally, replaced with [REDACTED:USER]) via redactPatterns. E.g. to scrub a specific internal project codename:
{ "redactPatterns": ["\\bProjectRedacted\\b"] }Cursor state lives at ~/.timescout/cursor.json — delete to force a full re-sync.
Development
git clone https://github.com/liorwn/timescout
cd timescout/bridge
npm install
npm run build
node dist/cli.js statusLicense
MIT
