Stoatworks Labs

Peephole

A camera or capture card, full screen

Field provenv0.1.2ApplicationTypeScript
Peephole — A camera or capture card, full screen
Peephole

What it does

You've got a camera or an HDMI capture card plugged in and you just want to look at it, on a second screen, at the back of the room, or on the laptop beside the desk. OBS will do it, once you've made a scene, a source, a preview, a projector output and a window to hide. This is the same job without all that: open the page, press Start, press Full screen.

The reason it's more than a ten-line page is the capture card. A UVC device advertises a mode list and the browser picks cautiously from it, so a 1080p card can open at VGA with nothing on screen to say why the picture's soft, and you end up blaming the cable or the card. Peephole asks the device for its capabilities, offers what it actually supports, and puts what the stream settled on in the corner. Ask for 1920 × 1080, get 640 × 480, and it tells you.

The rest is what makes it something you'd leave running rather than a demo. The screen's kept awake while a picture is up, and the lock is taken again when you come back to the tab, because browsers drop it whenever the tab's hidden. The device is remembered by name as well as by id, because ids change whenever the site's camera permission is reset. A stream that ends (card unplugged, another app grabbing it) says so, instead of leaving a frozen last frame that looks like a working picture. And getUserMedia's errors are rewritten into what to do about them: “something else usually has it: OBS, Teams, Zoom, or another tab of this page”.

Since v0.1.0 it's also a desktop app for macOS, Windows and Linux that needs no network at all, to install or to run. It doesn't wrap this page. There's no localhost server and nothing gets fetched: the bundle is served to the window from inside the app itself, the page gets a Content-Security-Policy that forbids opening a connection, and the process cancels every outbound request on top of that. It's Electron rather than something lighter because of the mode picker, which is built on getCapabilities(), and only Chromium implements that. A shell using each platform's own webview would give the real mode list on Windows and a guessed ladder on macOS and Linux, so the same tool would behave differently on each desk.

  • Every video input the browser can see, including HDMI capture cards, which appear like any other camera
  • Mode picker built from the device's own reported capabilities, falling back to a standard ladder where the browser will not say
  • A readout of what the stream really settled on, and a warning when it is smaller than what was asked for
  • Screen wake lock while a picture is up, re-taken when the tab comes back — and an honest note where the browser has none
  • Device and mode remembered by id and by name, so it survives a permission reset
  • Mirror, quarter-turn rotation, fit or fill; keyboard F, M, R and C
  • In full screen the bar and the cursor fade after a couple of seconds of stillness
  • Static page, no server, no account: the picture never leaves the browser and nothing is recorded
  • Desktop app for macOS, Windows and Linux that makes no network connection at all — no updater, no telemetry, no analytics
  • In the app, full screen is the window rather than an element inside it, and the device's own mode list is available on all three platforms

Where it stands

Field proven: it's been used on real shows. It's deployed as a page and has shipped as a desktop app since v0.1.0, and before it went out both were driven end to end, the page in a browser against an injected MediaStream and the packaged app against a synthetic capture device, covering device switching, mode changes, the readout, full screen, and settings surviving a restart. Nobody has launched the Windows or Linux builds on Windows or Linux yet.