@microblink/blinkcard
v3000.0.2
Published
All-in-one BlinkCard browser SDK for fast and accurate debit and credit card scanning and recognition in web applications.
Downloads
409
Readme
@microblink/blinkcard
The all-in-one BlinkCard browser SDK package. It provides a high-level, easy-to-use API for credit and debit card scanning and recognition in web applications, bundling all required components and resources for a seamless integration experience.
Overview
- Combines the BlinkCard engine, camera management, user experience (UX) management, and all required resources.
- Handles initialization, licensing, camera selection, scanning, and user feedback UI.
- Suitable for most use cases—just add your license key and start scanning.
What's Included
@microblink/blinkcard-core: Core scanning engine and low-level API.@microblink/blinkcard-ux-manager: User experience and feedback UI.@microblink/camera-manager: Camera selection and video stream management.
Installation
Install from npm using your preferred package manager:
npm install @microblink/blinkcard
# or
yarn add @microblink/blinkcard
# or
pnpm add @microblink/blinkcardUsage
A minimal example:
import { createBlinkCard } from "@microblink/blinkcard";
const blinkcard = await createBlinkCard({
licenseKey: import.meta.env.VITE_LICENCE_KEY,
});For more advanced usage or integration with your own UI, see the example apps and the documentation for the underlying packages.
Documentation
Full documentation, API reference, and integration guides are available at docs.microblink.com.
Example Apps
Explore example applications in the repository under apps/examples:
apps/examples/blinkcard-simplefor a minimal integration.apps/examples/blinkcard-advanced-setupfor advanced low-level setup and customization.
Hosting Requirements
Serve the
public/resourcesdirectory as-is; it contains all required Wasm, worker, and resource files.Must be served in a secure context.
For multithreaded builds, your site must be cross-origin isolated:
Cross-Origin-Embedder-Policy: require-corp Cross-Origin-Opener-Policy: same-origin
License Key
A valid license key is required. Request a free trial at Microblink Developer Hub.
Development
To build the package locally:
Install dependencies in the monorepo root:
pnpm installBuild the package:
pnpm build
The output files will be available in the dist/, types/, and public/resources/ directories.
