For the curious
Under the hood
Don’t read about how CoolDesk works. Poke it. Every toy below runs the app’s real rules with its real numbers.
01 · Extension ⇄ app
One jump, three deliveries
The app and the extension talk over a WebSocket on 127.0.0.1. Chrome naps idle extensions, so there’s a once-a-second HTTP poll as backup. Belt, braces, and a gate so the browser doesn’t act three times.
02 · Extension
The new tab has a guest list
It tracks time only on the tab you’re looking at, pauses when you go idle, and keeps everything in IndexedDB. Custom widgets run in a sandbox with no browser APIs. And it can only call seven hosts.
03 · Spotlight
Search is a ladder, not a black box
No embeddings, no magic. Eight rules from exact match down to “letters in order”. Type something and watch which rung each app lands on.
- Visual Studio85 · acronym
- Visual Studio Code82 · acronym start
- Vercel Dashboard55 · letters in order
04 · What comes first
Yesterday matters more than last week
Usage counts half as much every 3 days, and it’s log-scaled so 5 hours vs 3 barely differs but 20 minutes vs none does. Drag the sliders.
05 · Apps
Ten asks, one scan
Opening Spotlight makes several parts of the UI ask for your apps at the same moment. A lock lets one of them scan; the rest wait and share the answer.
06 · Your day
Open isn’t used
Every 30 seconds the app checks three things: what’s focused, when you last touched the keyboard or mouse, and what’s making sound. Flip them.
07 · Files
A download is five events pretending to be one
The file manager watches the folder you’re in. It waits for things to go quiet for 300 ms before refreshing, so you see one update, not five.
- 0 mscreate report.pdf.crdownload
- 120 mswrite +2 MB
- 240 mswrite +2 MB
- 360 mswrite +1 MB
- 480 msrename → report.pdf
- 780 ms✓ file list refreshes once
08 · Data
Boring sync, on purpose
Plain JSON on your disk, IndexedDB in the browser. Records merge by id, the newest edit wins, and URLs are normalised first so www and a trailing slash don’t make duplicates.
09 · macOS
The hack Apple didn’t document
Apple’s public API can’t put a window over another app’s fullscreen Space. So, like Alfred, Raycast and yabai, CoolDesk uses the private CGS API in SkyLight.framework.
Spotlight joins the Space you’re looking at, right on top of VS Code.
10 · AI
The agent can look, not touch
The AI agent reads your CoolDesk data through a read-only MCP endpoint. It can propose changes; only you can apply them.
← 23 tabs
11 · Cheat sheet
Every cache, from 300 ms to forever-ish
Each one exists for a reason. Usually that reason is “something was asking too often”.
- Folder change events300 ms
- Apps list10 s
- Jump-to-tab deliveries10 s
- Browsing activity reads30 s
- Projects with dev servers60 s
- Usage scores for ranking5 min
- Latest release (this site)5 min
- App categories, shell PATHsession
Still curious?
CoolDesk is open source. Everything above is in the repo, comments and all.
Read the code on GitHub