Blog
SafeOS Guardian Blog
How SafeOS Guardian works and what it runs on your device, from the team at Frame, which also makes AgentOS.
Every part on one page, with its code and its limits: How SafeOS watches a room in your browser.
Object detection in the browser: COCO-SSD on TensorFlow.js
How SafeOS runs COCO-SSD with TensorFlow.js: a download of 18.6 MB after a yes, Cache Storage, WebGL or the processor, a gate, and what the model returns.
Webcam motion detection in JavaScript, plus sound levels
How SafeOS compares webcam frames in JavaScript 5 times a second, reads a sound level with the Web Audio API, and turns both into alerts.
Image similarity by colour histogram, k-means and edges
How Lost and Found compares a camera picture with a pet’s photos, with no trained model: a colour histogram, k-means main colours, an 8 by 8 edge grid and size.
How a PWA works offline: precaching and browser storage
A static export, one hashed list of every file, a service worker that stores it whole, IndexedDB and localStorage, and what a browser may delete.
Self-hosted camera AI with Ollama, Moondream and LLaVA
What the optional server runs, the message a frame must arrive in, how long it keeps one, how Moondream and LLaVA read it, and when a cloud provider sees it.
Playwright fake camera: testing a webcam app in CI
How SafeOS feeds Chromium’s fake camera and microphone a CC0 clip in CI, swaps getUserMedia for a canvas, slows the processor with CDP, and what no test covers.
How SafeOS Guardian checks for motion before it runs a model
The browser compares camera frames every 200 ms and runs the detection model when something moves. This post goes through the code of each check.
The code
SafeOS's code is on GitHub. Frame's other projects are on frame.dev.