estrem.eu
01Work02Projects03Carnets04GitHub

EN/FR

LinkedIn
← Dev notesReturn home

Building ScreenSearch

What changed when a local Windows screen-search prototype became a real app - and which privacy boundaries survived the rewrite.

14 July 2026

ScreenSearch is no longer the prototype this article first described. It is a downloadable Windows app, its source is public, and its releases are on GitHub. V2c is the clean-slate Rust and Tauri implementation. This is what survived - and what changed - when the experiment became an application I could actually use.

From experiment to application

The original question was narrow: could a Windows app make recent on-screen information findable without sending a screen archive to a hosted service? The first answer was a small pipeline - capture, OCR, FTS5, and perhaps a local model. It proved the idea, but it was not yet the product.

A real version needed more than a clever capture loop. It needed a desktop shell, a fast way to search without leaving the foreground app, durable background work, inspectable model downloads, recovery after crashes, retention that said what it deleted, and interfaces that did not quietly turn a local archive into a service for every process on the machine.

The current shape is still deliberately local, but it is no longer narrow:

usable spans fallback Windows GraphicsCapture Privacy +change gates WebP frames +SQLite UI Automationtext Attention-firstfilter WinRT OCR FTS5 +sqlite-vec Durable enrichmentqueue Optional localmodels Search, Flow,sessions

The diagram is larger than the prototype because the boundaries are now explicit. Capture, text extraction, retrieval, enrichment, and presentation can fail or fall behind independently. That separation is more useful than pretending the whole application is one seamless act of “remembering.”

The constraint still matters

“Local” is still not a synonym for “private.” A local database can contain passwords shown in a browser, private messages, client work, medical records, or somebody else’s screen during a call. A local model can still receive text it should never have seen. A loopback API can still hand the archive to the wrong local process.

ScreenSearch therefore puts gates before reading and indexing. Capture starts under user control. Locked sessions, excluded applications and window titles, ScreenSearch’s own windows, and password fields can be kept out of the history. Pause, exclusion, retention, and deletion are product controls, not a line in a privacy policy.

Retention also needs exact language. Current builds default to deleting screenshot files after 30 days. The searchable text, spans, and embeddings can remain after the image expires unless the frame itself is deleted. That trade keeps recall useful while reducing image storage, but it is not the same as forgetting the event. For genuinely sensitive work, excluding it before capture is stronger than cleaning it up later.

Capture cheaply; enrich later

The current capture path uses Windows Graphics Capture, replacing the lower-level loop from the first prototype. Frames pass privacy and change gates before they become local, lossless WebP files and database records. Unchanged screens do not need another round of expensive work merely because a timer fired.

The rule that made the architecture settle down was capture cheap, enrich deferred. Text extraction and storage belong on the dependable path. Embeddings, vision descriptions, reports, and other enrichment become durable jobs in SQLite, drained by bounded workers with retry, backoff, dead-lettering, and stale-job recovery. An optional pressure throttle can ease off background enrichment under sustained CPU or GPU load without pausing capture, OCR, or storage.

That is less glamorous than pushing every frame through every model immediately. It is also the difference between an application that recovers from a slow model and one that converts a busy afternoon into unbounded work.

Read accessible text before pixels

OCR is now the fallback rather than the only text source. ScreenSearch first asks Windows UI Automation for accessible text in the foreground window. When useful content exists only as pixels - in an image, a PDF, a terminal surface, or an application that exposes no usable accessibility tree - native WinRT OCR reads the frame instead.

Neither source is clean. Accessibility trees contain toolbars, tabs, sidebars, repeated controls, and offscreen elements. OCR contains recognition errors and weak structure. An attention-first filter keeps raw extracted text for provenance while producing a more useful content layer for default recall.

The important part is that extraction never becomes truth by declaration. Results still point back to the captured moment. A fuzzy transcript can help me find a screen; it should not rewrite what the screen said.

SQLite is the record, not the whole retrieval story

SQLite remains the system of record, running in WAL mode with forward migrations and ordinary rows that can be inspected, repaired, retained, or deleted. FTS5 still matters because exact strings - error messages, identifiers, names, and snippets - are often the fastest route back to a moment.

Literal search is no longer the whole retrieval engine. ScreenSearch also creates local text embeddings and stores vectors with sqlite-vec. Keyword and semantic candidates are fused with Reciprocal Rank Fusion, so a paraphrased query can find related language without sacrificing the exact match that only FTS5 caught.

This division is useful: rows are the record; FTS5 and vector tables are retrieval structures; embeddings are replaceable derived data. Search can continue to work without a generative model, and every higher-level answer still has source frames to cite.

The model is optional enrichment

ScreenSearch can run vision tagging, grounded answers, and Daily, Weekly, or custom Recall reports through a supervised local llama.cpp sidecar. The sidecar is tied to the application’s lifecycle so it cannot quietly survive as an orphaned process after the app exits or crashes.

Local inference keeps selected screen context on the Windows machine, but “local” does not mean “the network is never used.” Model and runtime files may be downloaded, and the updater checks published releases. Those transfers are different from uploading screen history, but they still need to be visible and correctly described.

Local models also have a physical cost. They consume disk, memory, CPU, and sometimes GPU resources. Search should remain useful before a model is installed, while a model is stopped, and when a machine is not suitable for continuous enrichment. The model earns its place by adding optional interpretation, not by becoming a hidden dependency for recall.

Integrations create another boundary

The application now has several ways back into the archive. The Flow overlay provides quick search and ask over the foreground application. Marks preserve moments the user deliberately wants to revisit. Sessions group related frames into useful stretches of work without replacing the underlying frame history.

There is also an opt-in local HTTP API. It is off by default, bound to 127.0.0.1, and protected by a bearer token. The bundled stdio MCP server wraps that API for trusted local tools and agents. These are useful surfaces precisely because they are powerful: any local process holding the token can read sensitive history. Loopback narrows the boundary; it does not erase it.

That is the same privacy lesson in a new form. A feature can stay entirely on one computer and still deserve authentication, explicit enablement, minimal exposure, and an obvious off switch.

What survived the rewrite

The stack changed, but the useful principles did not: make capture cheap, defer optional work, keep an inspectable local record, combine retrieval methods instead of hiding one behind a model, ground answers in source frames, and make sensitive boundaries visible.

The product is now much larger than the experiment, which makes the skepticism more important rather than less. ScreenSearch should help a machine remember without pretending that memory is harmless. The satisfying part is still not that the archive exists. It is that I can inspect it, search it, restrict it, connect it deliberately, and decide when it should forget.

You can try ScreenSearch, inspect the source, read the current privacy model, or follow the published releases.

Sources

  • ScreenSearch (opens in a new tab)
  • ScreenSearch source (opens in a new tab)
  • ScreenSearch architecture (opens in a new tab)
  • ScreenSearch privacy (opens in a new tab)
  • Windows Graphics Capture (opens in a new tab)
estrem.eu

© 2026 Nicolas Estrem

ImprintPrivacy

Analytics preference

With your permission, this site loads Umami to understand how it is used. You can decline without affecting your visit.