Device APIs

Examples of accessing native device features from the browser.

You might not need an app.

A client asked us to build a native app they didn't actually need. Modern browsers already reach the camera, GPS, files and sensors straight from a web page — these demos show how far the web goes before you reach for a local-first, native build.

Read the write-up

Media Capture

Camera, gallery and video uploads via the file input's accept, capture and multiple attributes.

GPS

Get the device's current location (latitude, longitude and accuracy).

Phone

Open the device's call, SMS or email app with native links.

Web Share

Open the native share sheet to share a link or a file with any app.

Audio Recording

Record audio from the device microphone and send it to the server.

File Download

Download server-generated files: image, audio, video, PDF, CSV and contact (vCard).

Screen Orientation

Detect and lock the device orientation (portrait/landscape).

Connectivity Status

Detect in real time whether there's a connection and whether the server responds, via browser events and an SSE heartbeat.