A developer's retrospective on building a privacy-first browser history search extension
Browser history search is broken. Every browser ships with a history page that can barely surface what you need. You type a keyword, get a chronological dump of URLs, and hope you recognize the right one. And if you want something smarter? The alternatives ship your browsing data to the cloud.
I wanted something different: a search engine that lives entirely on your machine, searches your history as fast as you can type, and never sends a single byte to any server. That became SmrutiCortex.
The name is Sanskrit — Smruti (memory) + Cortex (brain). A memory cortex for your browser.
Stack decisions were deliberate:
Architecture choices that shaped everything:
chrome.storage.local for settings, and a self-healing resilience module for graceful recovery.The search algorithm — "Vivek Search": A graduated multi-token scoring system with intent-priority ranking. Not a simple substring match — it classifies matches into 4 tiers (EXACT, PREFIX, SUBSTRING, NONE), applies post-score boosters for strong multi-field matches, and ranks by coverage intent. The result: the page you're looking for is almost always in the top 3.