Install from NPM for bundling:
npm install @pixelverse/strichjs-sdk
Or import from CDN dynamically:
import {StrichSDK, PopupScanner} from 'https://cdn.jsdelivr.net/npm/@pixelverse/strichjs-sdk@latest';
Initialize the SDK with your license key and use PopupScanner for easy scanning.
// SDK initialization using license key
await StrichSDK.initialize('<your license key>');
// scan barcodes using PopupScanner
let detections = PopupScanner.scan({ symbologies: ['qr', 'code128'] });
if (detections) {
console.log(`Scanned code: ${detections[0].data}`);
}
A license key is required, and can be obtained in the STRICH Customer Portal.
Sample code illustrating usage of the SDK in different environments is available on GitHub:
1D Barcodes
2D Barcodes
For more information, please refer to the Symbologies documentation.
We don't publish a list of supported browser versions, but test our SDK regularly with the popular ones: Chrome/Chromium-based, Safari and Firefox.
STRICH runs completely client-side in your web browser or web view. Access to WebGL, WebAssembly and the device camera using the MediaDevices API is required. Support for the <dialog> element is required for using the PopupScanner.
An easy way to check if your device and browser are supported is to open the Demo App and try scanning some barcodes.
STRICH is commercial software, its use is governed by the terms of the Subscription License Agreement available in the Customer Portal.