Saphere Scan (v2 beta)
The v2 widget: installation, tokens, events and hooks, customisation, and the mobile shells.
Saphere Scan is a self-contained web widget. It owns a container on your page, takes the user through consent and guidance, captures thirty seconds of video, and hands you a result. It runs in a browser and inside a WebView, in ten languages, and everything it displays is an option you can change.
Load one ES module from the CDN, mount it into a container you own, and the widget takes over from there
Upgrading from v1What changes between the v1 module and Saphere Scan v2, in the order you will meet it.
Access tokensHow the widget obtains a short-lived credential at the start of every measurement, without ever holding your API key
EventsForty lifecycle events, from the camera being requested to the result arriving — everything the widget knows about …
HooksWhere your code can refuse what the widget is about to do, bounded so that it can never freeze the journey
Guiding the person into positionWhat the widget shows before the capture starts, what each cue means, and what your code receives at the same moment.
CustomisationScreens and colours are prepared in the console, then attached to the widget by a single identifier.
Mobile & WebViewRunning Saphere Scan inside a React Native or Ionic/Capacitor shell, where the camera permission belongs to the native …