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.

tensorflow.jscoco-ssdobject-detectionwebgl

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.

November 28, 2026Frame.dev Team10 min read
Read article
javascriptmotion-detectionweb-audiocanvas

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.

November 28, 2026Frame.dev Team10 min read
Read article
image-similaritycolor-histogramk-meansjavascript

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.

November 28, 2026Frame.dev Team10 min read
Read article
pwaservice-workerindexeddboffline

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.

November 28, 2026Frame.dev Team12 min read
Read article
ollamaself-hostedcomputer-visiondocker

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.

November 28, 2026Frame.dev Team11 min read
Read article
playwrighttestinggetusermediagithub-actions

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.

November 28, 2026Frame.dev Team10 min read
Read article
technicalarchitecturetensorflow.json-device-ai

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.

January 10, 2026Frame.dev Team8 min read
Read article

The code

SafeOS's code is on GitHub. Frame's other projects are on frame.dev.