Frequently Asked Questions
Setup, the alerts, Lost and Found, what leaves your device, offline use, the optional server and the tests. Each answer links the page or post that shows the code.
01Getting started
SafeOS Guardian is free, open-source software that turns the camera and microphone of a phone, tablet or laptop into motion and sound alerts, and the browser on that device does the watching. People and Wildlife add an object-detection model that runs in the same browser, a server of your own is optional, and How SafeOS watches a room follows each part through its code. It adds an alert and does not replace a person nearby. Ask before you watch or listen to another adult.
Yes. safeos.sh needs no account and has no paid plan, and the code is MIT-licensed, so anyone can run a copy of their own. Frame builds SafeOS, pays for its development and publishes how it is built and tested.
Because safeos.sh is a static site, built from its open-source code, and GitHub Pages hosts it at no charge, as it does for public repositories. The checks run in the browser of the device that holds the camera, and so does the deep-learning model People and Wildlife use, which the browser downloads from Google’s storage once you agree. The build and the service worker on How it works show the export and its deploy.
Yes. Open safeos.sh in its browser, allow the camera when the browser asks, and leave the device plugged in with its screen set to stay on, since SafeOS keeps no screen awake. A browser gives a page its camera only on a secure address, such as https://safeos.sh, and only after you say yes. On a phone the page asks for the back camera, at 1280 by 720, and How SafeOS watches a room shows what the device does next, and the uses for an old phone, tablet or laptop each have a page with their steps.
Open safeos.sh and press Start setup. Setup has two steps: turn on the camera, then say what the device is watching (a pet, a baby, an elderly relative, an empty place or a lost pet). Its last key opens the dashboard, whose Start watching starts the way you came to setup for, or Lost and Found for a lost pet. Wildlife and People wait for the detection model: on a device that has not saved it, Start watching opens that page, where you press Download detection model first, then Start watching on People and Start Monitoring on Wildlife. With no pet saved, Start watching opens the Lost and Found page: add your pet’s photos and press Start Monitoring, then Start watching. You can change sensitivity in Settings at any time. The overview of How it works shows what each page does.
Any browser that gives a page its camera on a secure address; the app and the model open offline only where the browser lets a site keep its files. CI walks the app in Chromium, and in Firefox it runs one check of a notification on Settings, Notifications; no workflow runs Safari or a phone (how the tests feed a fake camera). The detection model runs on WebGL where the browser allows and on the processor otherwise, and Safari, with its cross-site tracking prevention on, deletes what a site stores after seven days of browser use with no tap on the site.
02Alerts and what sets them off
The Motion and sound page compares each camera frame with the one 200 ms before it, reading one pixel in 16 (one in 4 along each axis), and a pixel counts as changed when its grey level moves by more than 30 of 255. An alert starts when the share of changed pixels stays over your line, not on one frame alone. The line is 100 minus the motion sensitivity: 20 per cent under the default setting, Maximum Alert. Webcam motion detection in JavaScript walks through the code.
Picture change is a second check on the same frames: it counts the pixels whose colour changed against the frame 400 ms before. Under the default setting, Maximum Alert, it alerts when 1 per cent of the picture stays changed for a set window. Ultimate Secure and the three sleep settings alert on a count of changed pixels instead: 20 for Ultimate Secure, 5 for Infant Sleep Monitor, the one Nap Mode starts, 10 for Pet Sleep Monitor and 3 for Deep Sleep Most Sensitive. How the motion and sound checks work draws both checks step by step. For a nap, read how to set up an old phone as a baby monitor for naps.
No. The page reads the microphone through the browser’s audio analyser 10 times a second: 128 frequency bins, each a decibel value the browser clips to a range and scales to 0 to 255, and the level is the root mean square of those bytes. So the number is the level the browser reads, and microphones differ: set the line by listening to the room. The post on motion and sound levels shows the code.
People and Wildlife run COCO-SSD, a pretrained object-detection model, with TensorFlow.js in this browser. Each check draws the picture into a 320 by 240 canvas cut into 8 by 6 cells, and the model runs only when one cell’s colours change by 15 or more on a scale of 0 to 100, so something small or far away may not start it. While a People alert is on, it also runs every five seconds, whatever moved. People counts the shapes the model calls a person and alerts when there are more than you allow; it does not know who anyone is, and object detection in the browser shows what the model returns.
The 10 animals the model knows: dog, cat, bird, horse, sheep, cow, elephant, bear, zebra and giraffe. COCO-SSD knows 80 classes of object, and Wildlife keeps these 10; it has no class for any other animal. The model on How it works shows where the list comes from. To watch a feeder or a path, set up an old phone as a backyard wildlife camera.
The checks compare pixels, so a change of light, the camera adjusting its exposure, or a screen, a curtain or a tree moving in a window counts as change. Lower the motion sensitivity, which raises the line, keep windows and moving things out of the picture, and on Settings, Detection Zones turn off Full Screen and turn on the zones you want, so the motion check counts only those parts. On People and Wildlife the model can call something else a person or an animal, so look at the picture each alert keeps. The limits of the motion and sound checks are listed with them.
Nothing measures how often People, Wildlife or Lost and Found is right or wrong, so no page here gives a figure for it. CI measures how long the checks take, in Chromium on a server computer with its processor slowed, and walks a recorded clip through the alerts; how SafeOS is built and tested lists what those runs cover and what they do not.
On the device that watches: an alert sound, a notification if the browser allows it, a History entry and, unless you turn it off, a picture of the moment. The browser sends no email or text and calls no one. A server you run has its own channels, email, SMS, Telegram and push, for the alerts its analysis raises, and Settings, Notifications can send a test email or text through it; the post on the self-hosted server follows a frame to an alert.
03Lost and Found
Up to twice a second, the browser compares the colours of the whole camera picture with your pet’s photos. When they are far apart, it goes no further. When they are close, it compares each part of the picture that moved since the comparison before, or every part on the first picture after you start watching, with your pet’s photos: their colours, main colours, outline on an 8 by 8 grid and size. When a part comes close enough, Lost and Found shows a possible sighting with that picture beside your photo, so you can check it yourself. It reads colours and outline with no model, so another animal, or a cushion or bag of similar colours, can raise one too. Crop each photo close to your pet: the background in a photo counts as well. At home, watch the door for a lost cat or dog with an old phone.
No. Lost and Found compares colours and coarse shape, so another animal, or anything in colours like your pet’s, can raise a possible sighting: check the picture beside your photo each time. Post on a lost-pet site as well, as the home page says, and read how Lost and Found compares a pet’s photos.
04Privacy, storage and offline
With no server connected, no camera frame, sound or picture is sent anywhere: the checks run in this browser. Four connections do happen. GitHub, which hosts safeos.sh, logs your IP address; Google’s storage sees it when you agree to the detection model’s download; an online voice, only if you choose one for spoken alerts, receives the words it speaks; and a server you run receives the Motion and sound page’s frames while that page watches, once you save its address in the default Hybrid mode. The section What works offline, and where things are kept gives each one with how to stop it.
In this browser: your settings and Wildlife’s sightings, with their pictures, in its localStorage; alerts, alert pictures, Lost and Found’s sightings and People’s pictures in its IndexedDB; People’s alerts and your pet’s photos in both; the app’s files and the detection model in its Cache Storage. Alert pictures are deleted after 3 days unless you choose 1, 7 or 30 days or to keep them, and the browser holds up to 100 People alerts and, by default, 100 Wildlife sightings. How a PWA works offline says what a browser may delete.
Yes. On History, Download Bundle saves your settings, the alerts listed there and saved frames as one file. On Settings, Data on this device, Clear all data on this device empties the app’s databases, deletes its caches, the detection model among them, and removes its keys from this browser; records on a server you run stay on that server. The storage table on How it works lists every store the clear empties.
TensorFlow publishes the browser version of COCO-SSD on Google’s storage under the Apache License 2.0, and SafeOS loads it from there. The 18.6 MB download starts only after you agree on People, Wildlife or Settings, Models, and Google’s storage sees your IP address when it happens. The browser keeps the files in its Cache Storage, so later watches load the model from this device: object detection in the browser shows the download and the cache.
Open safeos.sh once online, and a service worker stores the app’s pages and their scripts, the pages you have not opened among them. After that the pages, motion and sound alerts and Lost and Found open and run with no connection; People and Wildlife do once their model is saved. Browsers may delete what a site keeps, and Safari does, with its cross-site tracking prevention on, after seven days of browser use with no tap on the site. Before each deploy, a check in Chromium goes offline and opens a page it never visited; it runs no watch, and no phone was tried (how a PWA works offline).
Keep the page open in front and the screen on: SafeOS keeps no screen awake, and a phone or a browser can sleep and drop the camera. Browsers may slow the timers of a tab you cannot see, and Firefox for Android sets an inactive tab’s timers to 15 minutes at the least and may unload the tab, so a watch in a hidden tab can check far less often or stop. Notifications come from the open page, and the app sets up no push, so nothing alerts with the browser closed (what the browser keeps and what it may stop).
05The server and the code
No. A server you run on your own machine with Docker describes camera frames with vision models through Ollama, Moondream first and llava:7b when Moondream reports a concern, keeps each frame 10 minutes and sends its alerts by email, SMS, Telegram or push. Once you save its address, the Motion and sound page sends it frames while a check is over its line, in a message the server refuses because it names no stream, so the models read none of the web app’s frames; self-hosted camera AI with Ollama shows both sides. With cloud keys set, a frame Ollama cannot read goes to the first of OpenRouter, OpenAI and Anthropic the server has a key for, then the next if that one fails.
In the browser, People and Wildlife run COCO-SSD, a TensorFlow.js object-detection model of 18.6 MB. A server you run uses Moondream and llava:7b through Ollama. Motion and sound and Lost and Found use no model: they compare pixels and colours with arithmetic, as the models section of How it works shows.
TensorFlow.js runs it with WebGL, on the graphics chip, where the browser allows it, and on the processor where it does not, with no message on the page. The processor is much slower: on CI’s Measure run, on a server computer with no graphics card, one check took about 1.7 s at full speed and 10.8 s with the processor slowed 6 times. No phone was measured; object detection in the browser has the run.
Every pull request runs the server’s and the web app’s type checks, lints and tests, and walks in Chromium; the alert walk feeds its fake camera and microphone a sample clip in the public domain (CC0 1.0). Every push to master is then measured in Chromium with the processor slowed up to 6 times, and deploys only after a check opens an unvisited page offline. No test runs People’s watch with the real model at its real line, sends the web app’s frames to the real server, or uses Safari or a real phone, and nothing measures how often a check is right: the post on the fake camera in CI has the details.
Frame (Framers Lab, Inc.) builds SafeOS and pays for its development. The code is MIT-licensed on GitHub, where you can open an issue or a pull request, and docs/DEVELOPMENT.md there says how to run the app and its checks. You can also write to team@frame.dev, and how SafeOS is built and tested links the code.
Yes. Fork the repository, and under Settings → Pages choose GitHub Actions as the source and add a custom domain, since the pages load from the root of their address. Set that address as NEXT_PUBLIC_SITE_URL in the deploy workflow, deploy-pages.yml, and as the address in check-published-home.mjs, then push to master. A repository named after your account, <owner>.github.io, needs no domain, and Run your own copy in the README gives every step.
SafeOS is not a medical device: it does not monitor breathing and cannot prevent SIDS. Safe-sleep guidance (NIH)
Still have questions?
Write to the team, or open an issue on GitHub.