Extension-first deep work and certification tracking platform
A privacy-first browser extension and companion web cockpit that captures objective focus telemetry automatically and visualizes study consistency without manual logging.
Lockify Guard is a browser-extension-first deep work and certification tracking platform that collects objective productivity telemetry automatically and presents deterministic focus analytics through a companion web cockpit.
Lockify Guard replaces manual study logging with automatically collected focus telemetry, deterministic scoring, and web-based analytics. The browser extension acts as the primary telemetry collector and enforcement engine, the FastAPI backend computes deterministic scores and trend velocity at the production backend (https://lockify-guard.vercel.app), and the Astro web cockpit renders the resulting analytics.
Lockify Guard is deliberately scoped to six core feature areas.
| Feature | Description |
|---|---|
| Focus Session Management | Explicit start, pause, resume, and stop controls with interruption-resilient state persistence. |
| Pomodoro and Scheduled Breaks | Configurable focus and break intervals with automated phase transitions. |
| Distraction Blocking | Native declarative network interception with a calm distraction redirect screen. |
| Automatic Productivity Tracking | Context switch, blur, fullscreen exit, and idle drift sensing with deterministic focus scoring. |
| Focus Analytics | Net focus minutes, flow stability index, streak health, and velocity trajectory visualization. |
| Certification Tracking | Automatic telemetry association with certification roadmaps and user-confirmed milestones. |
- The Chrome MV3 extension service worker and content script collect objective telemetry: tab switches, window blurs, fullscreen exits, idle drift, pauses, and blocked-site hits.
- The FastAPI backend computes deterministic focus scores and trend velocity.
- The web cockpit renders analytics from local-first storage, with a client-side scoring fallback when the backend is unavailable.
| Layer | Technology |
|---|---|
| Browser Extension | Chrome MV3 (service worker + content script + declarativeNetRequest) |
| Web Frontend | Astro + TypeScript + Tailwind |
| Backend | FastAPI + Uvicorn + Pydantic |
| Deployment | Vercel (backend serverless function, web deployment) |
- Download Extension ZIP (
v2.0.0 · Manifest V3)- Download the official Lockify Focus Guard extension archive and extract it anywhere on your computer: Download Extension (ZIP) (replace
#with your release/ZIP link)
- Download the official Lockify Focus Guard extension archive and extract it anywhere on your computer: Download Extension (ZIP) (replace
- Open Extensions Page
- Open your browser and navigate to
chrome://extensions
- Open your browser and navigate to
- Enable Developer Mode
- Toggle the switch labeled Developer mode in the top-right corner of the extensions manager.
- Load Unpacked Folder
- Click Load unpacked and select the unzipped extension folder on your device. Pin Lockify to your browser toolbar to start focusing immediately.
Lockify Guard implements privacy by design with a zero Personally Identifiable Information posture, pseudonymous device identity, and local-first data persistence.
- The extension reads only hostnames to detect course sites; it never reads or stores full URLs, page titles, content, or queries.
- Telemetry is stored locally (browser storage / IndexedDB) and transmitted pseudonymous outbox records only.
Content scripts can outlive an extension reload or update without the host tab being refreshed. All chrome.runtime.sendMessage call sites are wrapped in try/catch with promise .catch() handlers, so orphaned contexts now fail silently instead of throwing uncaught errors.
If the error still appears, reload the extension at chrome://extensions and reopen the affected course tab.
If the "Ready to lock in?" popup does not show up on course pages (e.g. Coursera or Udemy), ensure that course platform domains are routed to the course site experience (initCourse()) rather than the web cockpit bridge (initBridge()). The web bridge role should be reserved strictly for the cockpit application.
FastAPI returns a 404 response on any path that lacks a registered route handler. Defining an explicit root endpoint (@app.get("/")) ensures that direct visits to the API root show the service name, online status, and pointers to documentation (/docs) and health checks (/health).
If completed study session records do not appear in the web dashboard:
- Verify that your deployed web domain is included in
content_scripts.matchesinmanifest.json. - Confirm the origin is allowlisted in the extension background worker and content bridge origin checks.
- Ensure the web application origin is permitted in backend CORS configuration (
ALLOWED_ORIGINS). - Ensure the web client's backend base URL defaults to the deployed HTTPS backend rather than a local loopback IP to avoid mixed-content blocking.
- Strict Content Script Role Separation: In content scripts serving dual purposes (acting as a communication bridge on your app vs. displaying study overlays on external learning platforms), keep origin checks strictly partitioned so learning platforms are never misidentified as the dashboard application.
- Cross-Component Origin Consistency: Browser extensions enforcing origin boundaries require exact domain matching across
manifest.json, background service worker sender validations, and backend CORS policies. - Defensive Messaging Guards: Wrap all
chrome.runtimemessaging intry/catchwith promise.catch()handlers to smoothly handle extension updates and lifecycle transitions. - Production Fallback Defaults: Client-side network helpers should default to production HTTPS endpoints to maintain zero-config functionality when environment variables are omitted during deployment.
- Timer Integrity Under Service Worker Suspension: MV3 background workers suspend when idle. Compute remaining countdown times strictly from absolute timestamps (
phaseEndsAt - Date.now()) rather than interval-based loops.
This project does not currently include an open-source license file. All rights are reserved by the repository owner unless a license is added in the future.
