/scandit-sdk:id-boltfrom scandit-sdk
Integrates Scandit ID Bolt (`@scandit/web-id-bolt`) — a hosted, drop-in pop-up for scanning passports, driver's licenses, and ID cards with built-in phone handover. Covers session creation, document selection, validators, data/anonymization options, theming, and troubleshooting.
Ships in scandit-sdk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
ID Bolt is a hosted, drop-in identity-scanning product. You call IdBoltSession.create(...) and start(), and Scandit opens its own scanning UI in a pop-up (https://app.id-scanning.com). Scandit hosts the camera, the viewfinder, the scanning logic, the result screen, and the engine files. Your code only configures the session and receives the result in a callback — you don't build a UI/camera workflow at all.
It also supports device handover: when the current device has no camera or a poor one (e.g. a desktop), ID Bolt can show a QR code so the user finishes the scan on another device such as their phone, and the result still flows back to your onCompletion callback on the original page. This is built into the hosted flow, not something you wire up.
This makes ID Bolt the fastest way to add ID scanning to a website, but it also means almost everything you might know about the ID Capture Web SDK does not apply. ID Bolt is a thin wrapper around ID Capture; it is not ID Capture.
ID Bolt (@scandit/web-id-bolt) | ID Capture (@scandit/web-datacapture-id) | |
|---|---|---|
| UI | Scandit-hosted pop-up | You build it, embedded in your page |
| Camera / view / overlay | Managed by Scandit | You manage Camera, DataCaptureView, IdCaptureOverlay |
| Entry point | IdBoltSession.create(url, opts) + await session.start() | await DataCaptureContext.forLicenseKey(...) + await IdCapture.forContext(...) |
| Results | onCompletion(result => result.capturedId) callback in options | idCapture.addListener({ didCaptureId, didRejectId }) |
| Documents | DocumentSelection.create({ accepted, rejected }) | settings.acceptedDocuments = [...] |
| Scanner | new SingleSideScanner(...) / new FullDocumentScanner() (passed directly) | settings.scanner = new IdCaptureScanner({ physicalDocument: ... }) (wrapper) |
Engine files / libraryLocation | N/A (hosted) | You self-host the engine WASM files |
If the task needs an embedded, in-page, fully-custom camera experience, this is the wrong skill — use id-capture-web. If the task is "add ID scanning to my site quickly without building UI," ID Bolt is right.
Your training data is unlikely to contain ID Bolt's API at all, and is very likely to contain the ID Capture Web/native APIs, which look superficially similar and will produce non-working code if pattern-matched. Verify every API against the references below before writing code. The dominant failure modes:
@scandit/web-id-bolt. There is no @scandit/web-datacapture-core or @scandit/web-datacapture-id dependency for an ID Bolt integration.DataCaptureContext, Camera, DataCaptureView, FrameSource, IdCaptureOverlay, or engine libraryLocation. Do not emit setup code for them.onCompletion callback you pass into create(...) — there is no addListener, no didCaptureId/didRejectId.DocumentSelection.create({ accepted, rejected }) (not acceptedDocuments). Scanners are passed directly as scanner: new FullDocumentScanner() — there is no IdCaptureScanner wrapper and no IdCaptureSettings.| Do NOT write | Use instead |
|---|---|
import { ... } from "@scandit/web-datacapture-id" | import { ... } from "@scandit/web-id-bolt" |
await DataCaptureContext.forLicenseKey(...) / new DataCaptureView() / Camera.pickBestGuess() | nothing — ID Bolt has no context/camera/view; just IdBoltSession.create(url, opts) |
idCaptureLoader({ enableVIZDocuments: true }) / libraryLocation | nothing — the engine is hosted by Scandit |
new IdCaptureSettings() + settings.acceptedDocuments = [...] | DocumentSelection.create({ accepted: [...], rejected: [...] }) |
settings.scanner = new IdCaptureScanner({ physicalDocument: new FullDocumentScanner() }) | scanner: new FullDocumentScanner() (passed directly in options) |
await IdCapture.forContext(context, settings) | IdBoltSession.create(serviceUrl, options) (synchronous) then await session.start() |
idCapture.addListener({ didCaptureId, didRejectId }) | onCompletion: (result) => { result.capturedId } and onCancellation: (reason) => {} in the options object |
settings.rejectExpiredIds = true / rejectInconsistentData | validation: [Validators.notExpired()] |
RejectionReason.DocumentExpired etc. | validations are surfaced in-flow; cancellation uses CancellationReason.UserClosed / CancellationReason.ServiceStartFailure |
await idCapture.setEnabled(true) / idCapture.reset() | nothing — the hosted pop-up manages its own state |
DataCaptureView, overlays, runtime mode switching) → this is ID Capture, not ID Bolt. Hand off to the id-capture-web skill.data-capture-sdk skill.DocumentSelection.create({ accepted: [...] }). Use rejected: [...] to carve out exceptions (e.g. accept any passport but reject a specific region).SingleSideScanner(barcode, mrz, viz, options?) (the default) reads one side; pass booleans to enable each zone. FullDocumentScanner() forces front and back and enables all modalities — use it when you need maximum data (e.g. a US driver's license barcode plus the VIZ).returnDataMode (required). ReturnDataMode.Full returns extracted data without images; ReturnDataMode.FullWithImages includes document/face images. Don't request images unless the use case needs them.anonymizationMode (None/FieldsOnly/ImagesOnly/FieldsAndImages) plus anonymizedFields (with IdFieldType entries) let you drop fields/images before they ever reach your callback. result.capturedId.anonymizedFields reports what was anonymized.validation for accept/reject rules. Validators.notExpired(), Validators.notExpiredIn({ days, months }), and Validators.US.isRealID() are built in. For business rules (blacklists, country/nationality matching), pass a custom validator function returning an ExternalValidatorResult ({ type: "external", name, valid, details? }); it may be async. Failed validations are surfaced to the user inside the hosted flow.onCompletion(result) fires only after a successful scan that passed all validations (result.capturedId may still be null — guard it). onCancellation(reason) fires when the user closes the pop-up or the service fails to start; switch on CancellationReason.keepAliveForNextSession: true to keep resources warm, and call IdBoltSession.terminate() when fully done to release them.workflow (welcome/result screens, image upload), locale (e.g. "en-US", "de", "fr"), theme (colors/dimensions/images/fonts), and textOverrides. You cannot style the pop-up internals from your own stylesheet — it runs on Scandit's origin.theme.styleOverrides needs a COMPLETE CSS ruleset per element, not just the declarations you want to change. Each override (button/link/title/banner, targeting .bolt-button/.bolt-link/.bolt-title/.bolt-banner) renders that element in its own shadow DOM with all default styles dropped, so you must supply the full rule — selector included, plus every property the element needs to look right (background, colour, padding, border-radius, layout) and any :hover/:focus states — restated in full. A value like `text-transform:uppercase;` (bare declarations, or only the delta) applies nothing or yields an unstyled element. Prefer theme.colors + theme.dimensions for plain recolouring/rounding (those keep ID Bolt's layout); reach for styleOverrides only for personality the slots can't express, and then restate the whole element. Note: the desktop interstitial "continue"/"learn-more" links are not .bolt-link and are driven by neither colors.primary nor styleOverrides.link — their colour isn't themeable through the public API. See the Style Overrides docs for the canonical full-ruleset example.id-capture-web; other products/selection → data-capture-sdk.Prerequisites: npm install @scandit/web-id-bolt. A license key entitled for ID Bolt — see Licence key below. The service URL is https://app.id-scanning.com (a Scandit-hosted alias). There are no engine/WASM files to host.
import {
DocumentSelection,
IdBoltSession,
Region,
Passport,
IdCard,
DriverLicense,
ReturnDataMode,
Validators,
CancellationReason,
} from "@scandit/web-id-bolt";
const ID_BOLT_URL = "https://app.id-scanning.com";
const LICENSE_KEY = "-- YOUR LICENSE KEY HERE --";
async function startIdBolt() {
const documentSelection = DocumentSelection.create({
accepted: [new Passport(Region.Any), new IdCard(Region.Any), new DriverLicense(Region.Any)],
});
const idBoltSession = IdBoltSession.create(ID_BOLT_URL, {
licenseKey: LICENSE_KEY,
documentSelection,
returnDataMode: ReturnDataMode.Full,
validation: [Validators.notExpired()],
locale: "en-US",
onCompletion: (result) => {
if (result.capturedId) {
// Your UI. Personal data — never log it.
showResult(
result.capturedId.documentType,
result.capturedId.fullName,
result.capturedId.documentNumber,
result.capturedId.dateOfBirth,
result.capturedId.dateOfExpiry,
);
}
},
onCancellation: (reason) => {
switch (reason) {
case CancellationReason.UserClosed:
console.log("User closed the scanning window");
break;
case CancellationReason.ServiceStartFailure:
console.log("ID Bolt service failed to start");
break;
}
},
});
// Opens the hosted pop-up; resolves when the flow ends.
await idBoltSession.start();
}
// ID Bolt must be started from a user gesture (the pop-up requires it).
document.getElementById("scan-id")!.addEventListener("click", startIdBolt);
<button id="scan-id">Scan your ID</button>
Notes:
IdBoltSession.create(...) is synchronous; only session.start() is awaited.returnDataMode: ReturnDataMode.FullWithImages and read the image fields off result.capturedId.Only use APIs that exist in @scandit/web-id-bolt and the referenced documentation. Do not invent or guess method signatures, parameters, or property names — and especially do not borrow them from the ID Capture SDK, which is a different package. When unsure whether an API exists or how to call it, fetch the documentation before responding. Do not tell the user to check the docs themselves. After answering, include the relevant link so they can explore further. Never construct or guess documentation URLs — fetch the API overview and follow links from there.
Scanning needs a Scandit licence key. For this skill the licence product is id-bolt and the licence platform is webassembly.
Work through these in order — never block the user on MCP:
The Scandit MCP server is connected — call ensure_scanner_setup with product id-bolt and platforms webassembly, app_identifier (the app's bundle or application id; for web, its production domain, never localhost) and env_var SCANDIT_LICENSE_KEY. Do not run the command it returns. Then call get_license_key with the key's id, from that result or from list_license_keys; if list_license_keys shows the key is not a trial, ask the user before fetching it. Show at most a masked preview in chat; never print a full key.
It is not connected — tell the user once that they can connect the remote Scandit MCP server, https://ssl.scandit.com/mcp, in their MCP client, then continue from step 1. Do not edit MCP client configuration yourself.
Authentication is browser-based, so it is not supported headless or in CI. The server provisions trial keys only; it never creates, revokes, or modifies production licences.
The user declines, or has no MCP client — they generate a key themselves at https://ssl.scandit.com (no account yet: https://ssl.scandit.com/dashboard/sign-up?p=id-bolt) and paste it in.
Then put the key into the code: write it into the licence-key call in place of the placeholder — the key get_license_key returned, or the one the user pastes or gives you — still showing only a masked preview in chat. Do not search the project, its files or the environment for a key.
| Topic | Resource |
|---|---|
| API overview | ID Bolt API Overview |
| Getting started | Getting Started |
| Document selection | Document Selection |
| Validators | Validators |
| Data handling & anonymization | Data Handling |
Callbacks (onCompletion/onCancellation) | Callbacks |
| Workflow & scanner options | Workflow Options |
| Theming & text overrides | Theming · Text Overrides |
| Advanced (lifecycle, keep-alive, transaction id) | Advanced Options |
| Release notes | Release Notes |
| Source of truth | @scandit/web-id-bolt package |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub scandit/skills --plugin scandit-sdk87 skills in this plugin
/barcode-capture-androidScandit Barcode Capture (`BarcodeCapture`) in native Android (Kotlin/Java) projects — the low-level, full-control single-barcode scanning mode (BarcodeCapture + DataCaptureView + overlay), without the pre-built SparkScan UI. Use for integration, symbology and scan settings, result handling, overlay customization, SDK version migration (v6→v7→v8), replacing third-party scanners (ZXing, ML Kit), or troubleshooting./barcode-capture-capacitorCapacitor — Scandit Barcode Capture (`BarcodeCapture`) in Capacitor (Ionic) hybrid apps via the Scandit Capacitor plugins (`ScanditCaptureCorePlugin`), the low-level, full-control single-barcode scanning mode (BarcodeCapture + DataCaptureView + BarcodeCaptureOverlay) without the pre-built SparkScan UI, not the browser-only web SDK. Use for integration, symbology settings, result handling, viewfinder and feedback customization, SDK version migration, replacing a third-party scanner (@capacitor-mlkit/barcode-scanning), or troubleshooting./barcode-capture-cordovaCordova — Scandit Barcode Capture (`BarcodeCapture`) in Apache Cordova hybrid apps via the `scandit-cordova-datacapture-*` plugins (global `window.Scandit`), the low-level, full-control single-barcode scanning mode (BarcodeCapture + DataCaptureView + BarcodeCaptureOverlay) without the pre-built SparkScan UI, not the browser-only web SDK. Use for integration, scan settings, result handling, overlay wiring, SDK version migration, replacing a third-party scanner (phonegap-plugin-barcodescanner), or troubleshooting.Other plugins' skills for the same job