Skip to content
perplexingpastaPublic

About

A Windows app that holds you accountable for your working time: every block, it asks what you did. Local-only, no cloud, no AI.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

96 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spyder

A personal Windows app that holds you accountable for your working time.

Most time trackers quietly log what you did. Spyder is stricter: you press Start, and every 15 minutes (or whatever block length you pick) it asks what did you do?, then the next block starts. Your working day becomes a list of equal blocks, each saying where the time went.

No accounts, no cloud and no AI. Everything stays in a local SQLite file on your machine.

Download the latest installer (Windows 10/11), or build it from source.

The floating widget: time in the current block, productive time today and percent of the workday

The Today page: productive time against the goal, and the day's blocks with their answers

Screenshots show made-up sample data.

What it does

  • The block loop. Press Start in the dashboard with a block length (5–180 minutes). When a block ends, the next one starts at once and a prompt asks what the last one was: type it, press Break (anything you typed is kept as the break's answer), or Same as last. You can also rate how well a work block went (25–100%), which feeds your efficiency score. Missed a few? They're all in one prompt.
  • Starting and stopping. With Track from startup on (the default), the loop starts by itself when Spyder launches and when your PC wakes, whatever the hour. Turn it off in Settings and the loop follows your work hours instead: during them, with no loop running, the bar says Not started and a reminder pops up every block length, and the loop stops at the end of work hours (Keep working carries on). Sleep or shutdown ends the current block, and a block running at midnight is cut there.
  • Work hours. Set one start–end for Every day, or switch it off to set each weekday (and Today only) separately.
  • Floating widget. A small always-on-top bar shows the time in the current block, today's productive time and a percent: of your daily goal (the default) or of the workday that has passed (Settings → Look → Bar percent). It turns red when you're distracted. Minimize drops it behind your windows; press it again to send it to the tray.
  • Fix the record. On Today, re-answer any block, give many blocks one answer, delete blocks (their time becomes untracked) or merge neighbouring ones into one longer block, all with Undo. Merge repeats merges every run of neighbouring blocks with the same tag and answer in one click.
  • Tags. Every block is tagged Work, Break, Gym or Food, separate from its answer. Gym and Food count as break time. Change a tag from the dropdown on each row, or for many blocks at once. Work, Gym and Food each use a colour you pick in Settings (green, orange and pink by default); breaks are blue-grey.
  • App and website tracking. It records the foreground app every 2 seconds, Chrome and Edge sites from the address bar, and Firefox and Zen sites from the window title. No browser extensions needed.
  • Categories and nudges. Apps and sites are Productive, Neutral, Distracting or Uncategorized, based on editable rules. Anything you've used for 3 minutes or more that you haven't labelled yourself is asked about, in Rules → To sort and in the end-of-block prompt. After 5 straight minutes on something distracting while the loop runs, you get a gentle nudge. Nothing is ever blocked.
  • Reports.
    • Today: productive time against your goal, work time, efficiency and streak; a timeline of your blocks with an optional app track underneath showing which app or site was in front; and your top apps.
    • Week: stacked bars per day.
    • Month: a heatmap and trend lines.
  • End-of-day review. When work hours end, you answer any blocks still not accounted for, see a chart of where the day went (work, break, gym, food, not accounted for, untracked), write Today's wins and How I'll improve, and record your own daily numbers (KPIs). Meeting your goal on consecutive workdays builds a streak.
  • Export. From Settings, any date range goes out to one .xlsx workbook plus matching CSVs.
  • Look. Light, dark or system theme, Segoe UI or Atkinson Hyperlegible Next, and a fixed colour for every app (pick your own from the timeline legend or Settings → App colours).

Privacy

Spyder makes no network requests. Nothing leaves your machine unless you export it yourself.

What it stores, in %APPDATA%\Spyder\spyder.db:

  • The foreground app every 2 seconds: its exe name, app name and window title. Window titles often contain document names, email subjects and page titles.
  • Websites: for Chrome and Edge, the site's domain from the address bar (not the full URL). For Firefox and Zen, the page title and site, parsed from the window title.
  • Private windows: Firefox private windows are stored as Private browsing, with no title or site. Chrome Incognito and Edge InPrivate windows can't be reliably told apart from normal ones, so they are recorded like any other window (ADR-0007).
  • What you type: block answers, review notes and KPI values.

Nothing is recorded while you're away (idle, locked or asleep). Spyder starts with Windows (turn it off in Settings). Uninstalling keeps your data. To delete it, quit Spyder and delete the %APPDATA%\Spyder folder.

Getting started

You need Windows 10/11 and Node.js 22.13 or newer (node:sqlite is used; development was done on Node 25).

git clone https://github.com/perplexingpasta/spyder.git
cd spyder
npm install
npm run build:helper   # builds the small Chrome address-bar reader (uses Windows' own C# compiler)
npm run dev            # starts the app with hot reload

npm run dev uses your real data folder (%APPDATA%\Spyder). To experiment without touching it, set a throwaway folder first: $env:SPYDER_DATA_DIR = "$env:TEMP\spyder-test"; npm run seed; npm run dev

Build an installer: npm run dist writes release/Spyder Setup <version>.exe. This is a per-user install that starts with Windows. Uninstalling keeps your data.

The installer is not code-signed, so Windows SmartScreen warns about it ("Windows protected your PC"). Choose More info → Run anyway, or build it yourself from source.

The first npm run dist downloads Electron (~110 MB) and a few packaging tools from GitHub releases. On networks where GitHub release downloads crawl, it can fail with Timeout awaiting 'request' for 600000ms. Point both downloads at a mirror and run it again. Each file is still checked against its known checksum.

$env:ELECTRON_MIRROR = "https://npmmirror.com/mirrors/electron/"
$env:ELECTRON_BUILDER_BINARIES_MIRROR = "https://npmmirror.com/mirrors/electron-builder-binaries/"
npm run dist

Shortcuts: Ctrl+Alt+S shows or hides the widget (if it's behind your windows, it brings it back on top). The tray icon has everything else.

Backups and restore

Spyder saves a copy of its data to the backups folder inside the data folder (%APPDATA%\Spyder\backups): once a day (spyder-2026-11-29.db) and before an update changes the data (spyder-before-v12-2026-11-29.db). It keeps the last 14 daily copies and the last 5 pre-update copies, and never touches any other file there. Settings → System → Data folder → Open folder takes you to the data folder.

To restore a copy:

  1. Quit Spyder from the tray icon (closing the windows isn't enough).
  2. In the data folder, rename spyder.db to spyder-broken.db, and delete spyder.db-wal and spyder.db-shm if they're there.
  3. Copy the backup you want from backups into the data folder and rename the copy to spyder.db.
  4. Start Spyder. Anything recorded after that backup was made isn't in it.

Commands

Command What it does
npm run dev Run the app in development mode
npm run typecheck / npm run lint Type-check and lint
npm test Unit tests (Vitest) for the core logic
npm run test:e2e Build, then run the end-to-end tests (Playwright driving Electron)
npm run seed Fill SPYDER_DATA_DIR with realistic sample days
npm run db:dump Print what's in the database
npm run dist Build the Windows installer
npm run install:local Maintainer only. Builds the installer, force-quits the running Spyder, installs over it silently and restarts it. The opt-in pre-push hook (git config core.hooksPath .githooks) runs it after every successful push of main; contributors shouldn't turn that on

How it's built

src/core/      Pure TypeScript: block engine (a reducer), schedule, nudges, categories, reports
src/main/      Electron main process: runs the engine, idle detection, app/site capture, SQLite, export
src/preload/   The window.spyder API the UI talks through
src/renderer/  React UI: widget, prompt window and dashboard (one bundle, hash routes)
src/native/    UrlHelper.cs, which reads Chrome's address bar via UI Automation
tests/e2e/     Playwright tests against the built app

The core logic never reads the real clock. Time is passed in, so tests can run a whole workday in seconds (SPYDER_CLOCK_SCALE, SPYDER_NOW).

Documentation

File Read it for
CONTEXT.md The vocabulary: block, loop, answer, untracked, nudge, review…
docs/behaviour/ How Spyder behaves now, one page per area
docs/product-decisions.md Every behavior decision and why it was made
docs/adr/ Architecture decisions (why Electron, why node:sqlite, why no AI, …)
SPYDER_PLAN.md The full original spec and the build log
design/DESIGN.md Visual design: colors, type, widget and page layouts
AGENTS.md Orientation for AI coding agents working on the repo

Contributing and security

See CONTRIBUTING.md. To report a vulnerability, see SECURITY.md; please don't open a public issue.

Credits

The Windows capture techniques are adapted from OpenTime (Apache-2.0). See NOTICE. The look of the widget was inspired by Rize; none of its branding is used.

License

MIT

About

A Windows app that holds you accountable for your working time: every block, it asks what you did. Local-only, no cloud, no AI.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages