Logo Id Bolt

Id Bolt

Tổ chức
Scandit
id-bolt

Scandit ID Bolt in web projects (`@scandit/web-id-bolt`) — the hosted, drop-in identity-document scanning pop-up (passports, driver's licenses, ID cards) with built-in handover to the user's phone, for adding ID scanning to a website with minimal code and no camera UI to build. Use for integration (IdBoltSession), document selection, validators, returned-data and anonymization options, theming and workflow customization, or troubleshooting. A different product from ID Capture — for in-page fully-customizable scanning embedded in your own UI use id-capture-web.

Tổng quan

Nhà phát hànhScandit
Kho mãskills
Tên kỹ năngid-bolt
Sao
21
Bản fork
2
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được Scandit công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Id Bolt trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/Scandit/skills/tree/dist/skills/id-bolt
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Scandit/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/id-bolt .claude/skills/id-bolt
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Id Bolt trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Id Bolt ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Id Bolt với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

ID Bolt (Web) Skill

What ID Bolt is — and what it is NOT

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)
UIScandit-hosted pop-upYou build it, embedded in your page
Camera / view / overlayManaged by ScanditYou manage Camera, DataCaptureView, IdCaptureOverlay
Entry pointIdBoltSession.create(url, opts) + await session.start()await DataCaptureContext.forLicenseKey(...) + await IdCapture.forContext(...)
ResultsonCompletion(result => result.capturedId) callback in optionsidCapture.addListener({ didCaptureId, didRejectId })
DocumentsDocumentSelection.create({ accepted, rejected })settings.acceptedDocuments = [...]
Scannernew SingleSideScanner(...) / new FullDocumentScanner() (passed directly)settings.scanner = new IdCaptureScanner({ physicalDocument: ... }) (wrapper)
Engine files / libraryLocationN/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.

Critical: Do Not Trust Internal Knowledge

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:

  1. Wrong package. ID Bolt is @scandit/web-id-bolt. There is no @scandit/web-datacapture-core or @scandit/web-datacapture-id dependency for an ID Bolt integration.
  2. Inventing a context/camera/view. ID Bolt has none of DataCaptureContext, Camera, DataCaptureView, FrameSource, IdCaptureOverlay, or engine libraryLocation. Do not emit setup code for them.
  3. Wrong result mechanism. Results arrive through the onCompletion callback you pass into create(...) — there is no addListener, no didCaptureId/didRejectId.
  4. Wrong document/scanner shape. Documents go in DocumentSelection.create({ accepted, rejected }) (not acceptedDocuments). Scanners are passed directly as scanner: new FullDocumentScanner() — there is no IdCaptureScanner wrapper and no IdCaptureSettings.

Forbidden APIs (commonly hallucinated — do NOT emit these)

Do NOT writeUse 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 }) / libraryLocationnothing — 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 / rejectInconsistentDatavalidation: [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

Intent Routing

  • In-page / embedded / fully-custom ID scanning (own camera UI, DataCaptureView, overlays, runtime mode switching) → this is ID Capture, not ID Bolt. Hand off to the id-capture-web skill.
  • Other Scandit products (Barcode Capture, SparkScan, MatrixScan, Label Capture, or product selection) → hand off to the data-capture-sdk skill.
  • Add hosted ID scanning to a website quickly, configure documents/scanner/validation, read results, theme/localize the pop-up → use the Product Guidance and Minimal integration shape below, verifying every API against the References.

Product Guidance

  • Accept only the documents you need. Ask which document types and regions the user expects, then list them in DocumentSelection.create({ accepted: [...] }). Use rejected: [...] to carve out exceptions (e.g. accept any passport but reject a specific region).
  • Pick the scanner to match the data. 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).
  • Choose the right 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.
  • Anonymize sensitive data when you don't need it. 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.
  • Use 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.
  • Always handle both callbacks. 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.
  • Manage the session lifecycle. For several scans in a row, set keepAliveForNextSession: true to keep resources warm, and call IdBoltSession.terminate() when fully done to release them.
  • Customize the hosted UI through options, not CSS on your page. Use 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.
  • Defer non-ID-Bolt questions. ID Capture → id-capture-web; other products/selection → data-capture-sdk.

Minimal integration shape

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.

ts
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);
html
<button id="scan-id">Scan your ID</button>

Notes:

  • IdBoltSession.create(...) is synchronous; only session.start() is awaited.
  • Start from a user gesture (click) — browsers block programmatic pop-ups/camera otherwise.
  • To read images, switch to returnDataMode: ReturnDataMode.FullWithImages and read the image fields off result.capturedId.

API Usage Policy

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.

Licence key

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:

  1. 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.

  2. 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.

  3. 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.

References

TopicResource
API overviewID Bolt API Overview
Getting startedGetting Started
Document selectionDocument Selection
ValidatorsValidators
Data handling & anonymizationData Handling
Callbacks (onCompletion/onCancellation)Callbacks
Workflow & scanner optionsWorkflow Options
Theming & text overridesTheming · Text Overrides
Advanced (lifecycle, keep-alive, transaction id)Advanced Options
Release notesRelease Notes
Source of truth@scandit/web-id-bolt package

Câu hỏi thường gặp

Kỹ năng AI Id Bolt làm được gì?

Scandit ID Bolt in web projects (`@scandit/web-id-bolt`) — the hosted, drop-in identity-document scanning pop-up (passports, driver's licenses, ID cards) with built-in handover to the user's phone, for adding ID scanning to a website with minimal code and no camera UI to build. Use for integration (IdBoltSession), document selection, validators, returned-data and anonymization options, theming and workflow customization, or troubleshooting. A different product from ID Capture — for in-page fully-customizable scanning embedded in your own UI use id-capture-web.

Vì sao nên dùng Id Bolt trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Id Bolt là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Id Bolt trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/Scandit/skills/tree/dist/skills/id-bolt. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Id Bolt?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Id Bolt với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Id Bolt với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Id Bolt có miễn phí không?

Có. Kỹ năng này được Scandit phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇