Free motion and sound alerts from an old phone or laptop

SafeOS adds an alert. It does not replace a person nearby. A phone or a browser can sleep, lose power or drop the camera, so stay within reach.

Setup needs JavaScript. The rest of this page reads without it.

Lost and Found

Find your lost pet

The kitten clip compared with a photo from another day, and a possible sighting.

On a kitten clip, the kitten walks past, Motion crosses its line and the alert arrives.

To get an alert when someone comes into view, set up People.

What SafeOS is

  • Lo-tech and portable

    Uses the camera and microphone of a phone, tablet or laptop you already own. Point it at any spot, indoors or out.

  • Supplemental alerts

    When something moves or gets loud, the device that watches plays an alert sound, shows a notification if the browser allows it, and lists the alert in History.

  • Privacy first

    Monitoring runs in the browser on the device that watches. Pictures and alerts stay in its storage, and go to a server only if you connect one you run.

Deep learning, in your browser.

Motion and sound alerts compare camera frames and measure the sound level in your browser, with no model. Lost and Found compares the camera’s picture with your pet’s photos by colour and outline, also with no model. The People and Wildlife pages add an object-detection model that runs in your browser too. Open a card to see how each part works.

How SafeOS reads the camera and microphone, what it keeps and what a server adds
  1. In your browser, on the device that watches

    • Camera
    • Microphone
    • Your pet’s photos
    • Motion: frames compared 5 times a secondFrom Camera
    • Picture change: changed pixels counted 5 times a secondFrom Camera
    • Sound level: read 10 times a secondFrom Microphone
    • Lost and Found: colours and outline compared up to twice a second, fewer on a slow deviceFrom Camera · Your pet’s photos
    • People and Wildlife: COCO-SSD on TensorFlow.js, on the graphics chip or else the processor, 18.6 MB, saved after you agreeFrom Camera
    • The alert: a sound, a notification if the browser allows it, and a line in HistoryFrom Motion · Picture change · Sound level · Lost and Found · People and Wildlife
    • Kept in this browser: settings, alerts, saved frames, your pet’s photos and the model
  2. Only with a server you run

    • Frames from the Motion and sound page
    • Email, text and Telegram alerts from the server’s own look at the frames
    • A model on your server, or a hosted one when you give it a key

Motion and stillness

Frame comparison · No modelThe monitor compares each camera frame with the one before, five times a second, and alerts when the change passes the amount you set.

It can also alert when nothing has moved for a time you set, from 1 to 60 minutes.

Sound alerts

Web Audio API · No modelThe browser reads the microphone’s level ten times a second and alerts when it stays above the level you set.

An alert nobody acknowledges climbs five levels, each louder; the top level repeats until each alert at it is acknowledged.

The five alert sounds are tones the browser makes, so they need no file and play offline.

People and animals

COCO-SSD on TensorFlow.js · 18.6 MB, after you agreeThe People and Wildlife pages run an object-detection model in your browser, on the graphics chip; without hardware WebGL it runs on the processor, slower.

It finds people and 10 kinds of animal: dog, cat, bird, horse, sheep, cow, elephant, bear, zebra and giraffe.

People checks up to twice a second and Wildlife once a second at most, each after its own motion check.

The model downloads from Google’s storage only after you agree, and Google sees your IP address when it does. Your browser then keeps it, and both pages load it from there.

Lost and Found

Colour and outline · No modelAdd 1 to 5 photos of your pet. The browser reads each photo’s colours, its 5 main colours, its outline on an 8 by 8 grid and its size, and compares parts of the camera’s picture with them up to twice a second, fewer on a slow device.

It alerts when a part of the picture has colours and shape like your pet’s photos, so you can look and compare.

Another animal, or something of a similar colour, can raise it too.

Works offline once saved

Installable web app · Service workerOpen safeos.sh once online and the browser saves the app’s files.

Motion and sound alerts then work with no connection, and People and Wildlife once their model is saved.

Clearing the browser’s storage removes the saved copy; the next visit online saves it again.

What stays on your device

IndexedDB · localStorageFrames are compared in your browser. Settings, alerts, your pet’s photos and the frames a page saves stay in this browser’s storage.

Settings, alerts, saved frames and your pet’s photos are kept in this browser’s own storage, and the model in its Cache Storage.

Read the privacy page

One device does the watching and the alerting

  1. Open safeos.sh on the device that will watch.

    An old phone, a tablet or a laptop works. Plug it in and set its screen to stay on, because a device that sleeps stops watching.

    See the browser list in the FAQ
  2. Go through setup.

    It has 2 short steps. At step 1 the browser asks for the camera and microphone, then you say what the device is watching.

  3. Stay within earshot.

    When something moves or gets loud, the device plays an alert sound, shows a notification if the browser allows it, and lists the alert in History.

QR code for https://safeos.sh/
Scan to open safeos.sh on the phone or tablet that will watch.

What a server you run adds

safeos.sh shows the camera and sounds the alert only on the device that is watching. A server you run adds:

  • Email, text and Telegram alerts, from the server’s own look at the frames
  • Descriptions of frames by a model on the server, or a hosted model when you give it a key
Read the server guide on GitHub

What people set it up for

Free on safeos.sh, with the code in the open

SafeOS at safeos.sh is free, and this site has no paid tier or subscription. Frame builds SafeOS and pays for it.

The code is MIT-licensed, so anyone can read it, change it and run it.

SafeOS is experimental software, provided as is.

No account: open safeos.sh on the device that will watch and go through setup.

Frame also makes AgentOS and Paracosm.

Start with the device you have

Setup has 2 short steps and asks for the camera at step 1.

Start setup