What is saved

This is the storage reference for the app. It lists exactly what is written, in what shape, and what is deliberately never written. Nothing here leaves the browser except map tiles and, if you turn it on, the start, middle and end coordinates sent to OpenStreetMap for drive names.

Where the data lives

Store What it holds Browser API
Local storage, keys starting sighted. Small records: reads, recent trips, preferences localStorage
IndexedDB sighted-vault Public key, password-wrapped private key, a few sealed records IndexedDB
IndexedDB sighted-journeys One durable manifest per drive (sealed when a vault exists) IndexedDB
IndexedDB sighted-clips Media segments, usually ciphertext; minimal metadata IndexedDB
IndexedDB sighted-folder The chosen folder handle, no file bytes IndexedDB
Your chosen folder Copies of the video segments File System Access API
Browser HTTP cache The ONNX models and the inference runtimes Browser cache, not app data
Address bar ?tab=, ?clip=, ?trip=; ?q= only without a vault URL only; not persisted

There are no cookies, no sessionStorage, no account and no server copy.

Keys end in .v1. The readers parse and validate what they find; a missing or malformed value falls back to a default rather than crashing the app. Journey manifests are the exception: normaliseManifest reads a shape-1 manifest into shape 2 on load (see below). A new shape for another key should still use a new key name.

Encryption at rest

Encryption is optional and lives in Settings → Encryption. A vault is an RSA-OAEP-2048 key pair made with Web Crypto:

  • the public key is stored in the clear, so the recorder can encrypt a new segment without a password;
  • the private key is exported as PKCS#8 and stored only encrypted under an AES-256-GCM key derived from the password with PBKDF2-SHA-256 (600,000 iterations, random 16-byte salt). The app asks for at least 12 characters;
  • every media file is encrypted with a fresh AES-256-GCM key and that key is wrapped with the public key. A manifest is encrypted the same way.

The password itself is never stored, and there is no recovery key. An attacker with the whole database gets a public key, an encrypted private key and ciphertext. Without the password, the private key cannot be unwrapped and the media cannot be decrypted.

The dashcam does not need the private key: it encrypts with the public key whether the app is locked or unlocked. Playback, search and the timeline need the private key, so they are hidden behind the unlock screen while locked. Locking removes the private key from memory; new recordings keep being sealed.

What is not encrypted, and therefore can still be inferred from stolen storage:

  • clip metadata: start/end time, byte size, trip id, original format and the folder filename;
  • manifest record ids (journey-<epoch ms>, parked-<epoch ms>) and the count of journeys;
  • file names, including timestamps, and the media folder’s directory listing;
  • preferences (limits, setup flags, road naming), the public key and the wrapped private key;
  • nothing from /demo, which is generated in memory and never written;
  • any file copied to your folder before encryption was turned on.

Turning encryption on deletes existing unprotected clips, journey manifests, saved plates and camera reads on this device; the confirmation says so. Files already written to a chosen folder remain unencrypted and are not touched. There is no re-encryption or password change yet.

Local storage

Key Value Stored as Limit
sighted.live.v1 Camera and photo reads, newest first — only without a vault JSON array of Sighting 60 newest
sighted.trips.v1 Recent journeys and parked records with route points and motion summaries — only without a vault JSON array of TrackedTrip 10 newest
sighted.saved.v1 Starred plates — only without a vault JSON array of plate keys none
sighted.location.v1 "true" or "false" plain string, not JSON —
sighted.motion.v1 "true" or "false" plain string, not JSON —
sighted.scanner.v1 Performance mode, fast re-reads, certainty, sound, processor, viewport and quality JSON ScannerSettings —
sighted.setup.v1 Whether setup was finished or skipped, and the choices JSON SetupRecord —
sighted.limits.v1 Clip retention policy JSON ClipLimits clamped on read
sighted.naming.v1 Whether journeys may be named from roads JSON boolean —

A plate key is the characters only, uppercased: la23 kdo, LA23-KDO and LA23KDO all become LA23KDO. Starred plates store that key, not the display form. The display form is derived when the plate is shown.

Sighting

Field Type Notes
id string scan-<epoch ms>-<6 base36 chars>, or seed-<n> for demo
plate string display form, e.g. LA23 KDO
at string ISO 8601 UTC, e.g. 2026-11-16T17:45:12.000Z
place string Live camera, Scanned photo, or a demo road
tripId string The journey or parked record, camera, or a demo drive-1
sessionId string? The continuous camera session; it can contain several journeys
confidence number 0–1, the weakest-character score
source "live" | "seed" seed exists only in memory
thumb string? JPEG data URL, 180 px wide, quality 0.62
snapshot string? JPEG data URL, 420 px wide, quality 0.68
region string | null? OCR country hint
clipId string? clip-<epoch ms>-<5 base36 chars>, or a demo clip id
clipUrl string? Demo only; real clips are read from IndexedDB
provisional boolean? Logged without an alert
aliases string[]? Other readings from the same track
votes number? Frames behind the consensus
lat, lon number? Degrees
accuracy number? Metres

Only live reads are saved. /demo reads are generated in memory each time the demo page opens and are never written here.

TrackedTrip — the route cache

This is the shape the map redraws quickly. It is not the durable record: a journey manifest (below) is written when a drive closes and keeps the history when clips are pruned. The cache is capped at 10 recent records; manifests are not.

Field Type Notes
id string <kind>-<epoch ms>-<5 base36 chars>
sessionId string? The camera session that contains this journey or parked record
kind "journey" | "parked"? A drive, or the gap between drives; absent on old records means journey
name string Drive at 18:56, Parked at 18:56, or Gloucester Road → Temple Way; max 80 chars
startedAt, endedAt string / string | null ISO 8601 UTC
points TrackPoint[] newest 5,000 kept per drive
roads RoadSample[]? { at, name } samples from reverse geocoding
motion TripMotion? Present only when motion recording was on
TrackPoint field Type Notes
lat, lon number Degrees
accuracy number Metres
at string ISO 8601 UTC
alt number? Metres above the ellipsoid, when reported
speedKmh number? coords.speed × 3.6 when reported
turnDeg number? Smoothed turn rate at the fix
joltG number? Latest jolt at the fix
TripMotion field Type Notes
samples number 10 Hz samples folded into the summary
startedAt, endedAt string ISO 8601 UTC
peakTurnDeg number Degrees per second
meanTurnDeg number Degrees per second
peakRotationDeg number Degrees per second, any axis
peakJoltG number | null g, when acceleration was reported

Raw sensor events are never stored at 10 Hz. Motion is reduced to these totals; the per-fix turnDeg and joltG travel into the journey manifest’s telemetry.

ScannerSettings

{ roiReuse: boolean, detectGap: number, ocrInterval: number, minConfidence: number, audio: boolean, scanArea: { x, y, w, h } | null, quality: "low" | "balanced" | "high" | "max" }

Defaults: true, 0, 220, 0.55, false, null, "balanced". The intervals are milliseconds; scanArea is normalised to the frame and null means the whole frame.

SetupRecord

{ done, skipped, camera, microphone, reading, location, motion, completedAt } — booleans, plus an ISO time or null. skipped records Skip for now rather than a finished wizard.

ClipLimits

{ maxFiles, maxDays, maxMegabytes } — default 24, 14, 500, clamped to 4–500 files, 1–365 days and 100–8000 MB.

IndexedDB sighted-journeys

Database version 1, object store journeys, key path id. One record per drive, written when the drive stops and merged if a late segment or a road name arrives. Records are plain JSON, no blobs, and are never pruned automatically.

{
  "schema": 2,
  "id": "journey-1794865140524-a1b2c",
  "sessionId": "session-1794865140000",
  "kind": "journey",
  "name": "Gloucester Road → Temple Way",
  "startedAt": "2026-11-16T17:00:00.000Z",
  "endedAt": "2026-11-16T17:02:00.000Z",
  "legs": [
    {
      "id": "clip-1794865140514-kxzlr",
      "startedAt": "2026-11-16T17:00:00.514Z",
      "endedAt": "2026-11-16T17:01:00.514Z",
      "clipId": "clip-1794865140514-kxzlr",
      "media": [
        {
          "kind": "video",
          "name": "sighted-20261116-170000-clip-1794865140514-kxzlr.mp4",
          "size": 71897,
          "format": "video/mp4;codecs=avc1.42E01E",
          "checksum": "sha256:d6c7e42848fab033977680bfc6d499f0a597fcb5ed3509f200b467a0626da188"
        }
      ],
      "telemetry": [
        {
          "at": "2026-11-16T17:00:02.648Z",
          "lat": 51.4545,
          "lon": -2.5879,
          "alt": null,
          "accuracy": 5,
          "speedKmh": 24,
          "g": 0.12,
          "gyro": 8
        }
      ],
      "tags": [
        {
          "type": "registration",
          "value": "LA23KDO",
          "label": "LA23 KDO",
          "firstAt": "2026-11-16T17:00:10.000Z",
          "lastAt": "2026-11-16T17:00:10.000Z",
          "count": 1,
          "confidence": 0.98
        }
      ],
      "roads": ["Gloucester Road", "A38", "Temple Way"]
    }
  ],
  "motion": {
    "samples": 120,
    "startedAt": "2026-11-16T17:00:00.000Z",
    "endedAt": "2026-11-16T17:02:00.000Z",
    "peakTurnDeg": 31,
    "meanTurnDeg": 5.4,
    "peakRotationDeg": 33,
    "peakJoltG": 0.22
  },
  "createdAt": "2026-11-16T17:02:03.000Z",
  "updatedAt": "2026-11-16T17:02:03.000Z"
}

The manifest

Field Type Notes
schema 2 Manifest shape version
id string Same as the journey or parked record id
sessionId string? The continuous camera session
kind "journey" | "parked"? A drive, or the stop between drives
name string Road pair, Drive at 18:56, or Parked at 18:56
startedAt, endedAt string ISO 8601 UTC
legs JourneyLeg[] One per recording segment, plus a media-less leg if nothing was recorded
motion TripMotion | null Journey-level summary

There is no journey-level tag array: tags live on the legs where the reads happened. Search and the clip page flatten the legs; the union is the drive’s plate list. | createdAt, updatedAt | string | ISO 8601 UTC |

JourneyLeg

Field Type Notes
id string Clip id, or <trip id>-leg-1 for a drive with no recording
startedAt, endedAt string ISO 8601 UTC; the segment window
clipId string | null Key in sighted-clips; null when no video was recorded
media MediaRef[] Files for this leg; usually one video, with any sound muxed inside it
telemetry TelemetrySample[] One object per GPS fix
tags JourneyTag[] Plates read during this leg
roads string[] Road names along the leg, in order: start, middle, end

MediaRef

Field Type Notes
kind "video" | "audio" The file’s role
name string Folder filename, or the canonical clip name
size number Bytes
format string MIME type with codecs
checksum string | null sha256:<64 lowercase hex> of the stored bytes
encrypted boolean? True when the stored file is an AES-GCM container

One entry per actual file. A normal recording is one video entry whose format names the muxed audio codec (video/webm;codecs=vp8,opus); there is no duplicate audio entry. A future separate audio file would be one more entry with kind: "audio" and its own name, size and checksum.

Road names

legs[].roads is an ordered array, not a start/end object. With Name journeys from nearby roads on, the app reverse-geocodes the drive at its start, middle and end (three cached requests) and places each name in the leg that contains its timestamp, with the nearest name before and after as context. Without naming, the array is empty except for a leg that exactly matches a named drive’s ends.

TelemetrySample

Field Type Notes
at string ISO 8601 UTC
lat, lon number Degrees
alt number | null Metres above the ellipsoid
accuracy number | null Metres
speedKmh number | null Reported or derived ground speed
g number | null Jolt at the fix, g
gyro number | null Turn rate at the fix, degrees/s

JourneyTag

Field Type Notes
type string registration today; open for notes, places and future tags
value string Normalised matching value; a plate key for registrations
label string? Display form, e.g. LA23 KDO
firstAt, lastAt string First and last sighting in this scope
count number Reads aggregated into the tag
confidence number? Best confidence
legId string? Set on leg tags only

A shape-1 manifest stored separate video and audio fields and a top-level roads object. It is read into shape 2 on load: the video becomes the single media entry, an embedded audio copy is dropped, and leg roads become arrays.

The record outlives the video

A manifest keeps its legs when sighted-clips removes the blob. The Clips screen builds a record-only summary from the manifest: time, roads, telemetry, tags, checksum and filename, with No video instead of a player. On load the app checks whether clipId still exists in sighted-clips; no folder listing is needed because the in-app copy is the one that plays.

The manifest is not deleted when clips are pruned. Clips → Delete removes a blob and leaves the record; Settings → Your data → Clear removes the manifests too.

IndexedDB sighted-clips

Database version 1, object store clips, key path id.

Field Type Notes
id string clip-<epoch ms>-<5 base36 chars>
startedAt, endedAt string ISO 8601 UTC
mimeType string e.g. video/webm;codecs=vp8,opus
size number Bytes of the blob
fileName string? Name written to the chosen folder
tripId string? Journey or parked record active when the segment started
sessionId string? Continuous camera session that wrote the segment
hasAudio boolean? True when the microphone was mixed in
checksum string? sha256:<64 hex> of the blob
encrypted boolean? True when the blob is a Sighted encrypted container
encryption Envelope? Legacy shape: envelope stored outside a bare ciphertext blob
blob Blob The video segment, or the encrypted container

ClipMeta is the same record without blob; the Clips screen lists metadata and only reads a blob when you open a clip. With a vault, that blob is the encrypted container itself; the player unpacks its header, unwraps the key with the private key and creates a local URL. The clip metadata stays readable, as noted above. checksum is computed before the record is written; clips recorded before checksums existed have none, and their manifests show checksum: null. Demo clips are not in this database: they are in-memory entries with id: "demo-clip-drive-1" (one per example drive), url: "/demo/drive.mp4", demo: true, and the same 60-second illustration file.

Retention. After each saved segment, and when the limits change, the app deletes segments outside ClipLimits, oldest first. The folder copy is never deleted.

IndexedDB sighted-vault and encrypted payloads

Database version 1 with two stores:

Store Key Value
keys "default" VaultRecord: public key (SPKI), wrapped private key and salt/IV/iterations
records "saved" One sealed record for the saved plate list

An encrypted payload is Envelope + blob:

Envelope field Type Notes
v 1 Envelope version
iv string AES-GCM nonce, base64
wrappedKey string Fresh AES key, RSA-OAEP encrypted, base64
checksum string sha256:<64 hex> of the ciphertext
size number Ciphertext bytes
format string? Original media MIME type, e.g. video/mp4;codecs=avc1.42E01E

Journey records are either { id, manifest } in the clear (no vault) or { id, envelope, blob, updatedAt } sealed with the public key. Listing sealed journeys requires the private key, so a locked app shows no drive history.

Saved plates are one sealed record keyed "saved"; the live reads and the route cache are not persisted at all when a vault exists.

IndexedDB sighted-folder

Database version 1, object store handles with an out-of-line key.

Key Value Notes
clips FileSystemDirectoryHandle Structured-cloned; not a path string

The handle is only useful while the browser grants readwrite permission. The app queries it before each write and asks again from a user gesture when recording starts. A refused or revoked permission means the folder write is skipped; the IndexedDB copy remains.

Files in your folder

Only completed video segments are written. Nothing is written for photos, plates, trips or settings.

Pattern:

sighted-YYYYMMDD-HHMMSS-<clip id suffix>.<mp4|webm>
  • the date and time are the segment’s local start time, e.g. 20261116-174512;
  • the suffix is the last 24 characters of the clip id after removing anything outside A-Z a-z 0-9 _ -;
  • .mp4 when the recorder produced MP4, otherwise .webm.

Example:

sighted-20261116-174512-clip1763306400000a1b2c.mp4

With a vault, the file is not the video: it is a Sighted encrypted container named <canonical name>.enc. It starts with the four bytes SGT1, a big-endian 32-bit header length, the JSON Envelope, then the AES-GCM ciphertext. The manifest’s media entry names the .enc file, keeps the original format, and sets encrypted: true.

The checksum in the manifest is of these stored bytes, so it matches both the IndexedDB copy and the folder file. Contents are one-minute MediaRecorder segments: 1,200,000 bits/s video, plus audio when the microphone is enabled. The recorder prefers WebM (VP8 + Opus) when sound is on and MP4 (H.264, AAC where available) otherwise, falling back through the browser’s supported list. A segment is roughly 8–10 MB.

The app never lists, renames or deletes files in that folder. Clearing the app’s data does not touch it; delete files in your file manager.

What is not saved

  • Raw gyroscope and accelerometer samples at sensor rate, detector boxes, frames and plate crops beyond the two JPEG data URLs above. The manifest keeps one telemetry object per GPS fix, not the 10 Hz stream.
  • The open tab, open clip, search text, filters and map position — the first four are in the URL; the last is memory only.
  • The chosen route-colour metric and the current scroll position.
  • Model weights and the WASM runtime in app storage; they live in the browser’s HTTP cache.
  • Demo journeys, demo plates and anything else on /demo; the route is generated in memory.
  • Any server copy, account, cookie or analytics event.

Clearing

Action Removes Keeps
Clips → Delete / Delete all Selected IndexedDB clips; the manifest leg becomes No video Saved plates, journey records, settings, folder files
Settings → Your data → Clear Saved plates, camera/photo reads, trip cache and journey manifests Clips, settings, folder files
Settings → Encryption → Turn on encryption Existing unprotected clips, journeys, saved plates and reads, then creates the vault Settings, folder files
Lock recordings The private key from memory; plaintext history from the UI The encrypted files, public key and new recordings
Leaving /demo The generated demo fixtures and demo-only toggles Nothing: the demo never wrote to storage
Browser site data Everything above, plus the folder handle and model cache Files already written to your folder

Practical limits

  • Local storage is typically about 5 MB per origin. The 60-read cap and two JPEGs per read keep it bounded; a full quota is caught and the session continues in memory.
  • Manifests live in IndexedDB and have no fixed cap; a one-hour drive at one fix per second is roughly 3,600 telemetry objects. They are cleared only by Your data or by clearing site data.
  • IndexedDB is sized by the browser’s storage quota. ClipLimits is the app’s own cap, not the browser’s.
  • A 60-second segment at 1.2 Mbit/s is about 9 MB, so the default 500 MB limit is roughly 55 minutes of video, and 24 clips is 24 minutes; whichever comes first wins.
  • Everything is origin-scoped. Moving the app to another domain, or clearing site data, starts empty; there is no export or import yet.
  • Unlocking runs PBKDF2 600,000 times, which takes a noticeable moment on a phone. That delay is deliberate.
  • The password protects the private key, not the browser session. Malware running while the vault is unlocked, or someone looking at the screen, can read what the app can read.
  • Deletion is logical, not a secure erase: clearing site data or turning encryption on removes app records, but a browser is not obliged to overwrite the freed blocks. On a device where that matters, use a fresh profile or full-disk encryption.