@microblink/blinkid-verify-core 3.20.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,71 @@
1
+ # @microblink/blinkid-verify-core
2
+
3
+ This package provides the core BlinkID Verify functionality for browser-based card scanning. It exposes a low-level API for initializing and controlling the BlinkID Verify engine, managing sessions, and processing images. It can be used directly by end users for advanced or custom integrations, or as a dependency of higher-level packages such as [`@microblink/blinkid-verify`](https://www.npmjs.com/package/@microblink/blinkid-verify).
4
+
5
+ ## Overview
6
+
7
+ - Provides the main API for BlinkID Verify scanning and recognition in the browser.
8
+ - Handles initialization, licensing, and session management.
9
+ - Can be used directly by end users for advanced use cases.
10
+ - Used internally by [`@microblink/blinkid-verify`](https://www.npmjs.com/package/@microblink/blinkid-verify).
11
+
12
+ ## Installation
13
+
14
+ Install from npm using your preferred package manager:
15
+
16
+ ```sh
17
+ npm install @microblink/blinkid-verify-core
18
+ # or
19
+ yarn add @microblink/blinkid-verify-core
20
+ # or
21
+ pnpm add @microblink/blinkid-verify-core
22
+ ```
23
+
24
+ ## Usage
25
+
26
+ You can use `@microblink/blinkid-verify-core` directly in your project for custom integrations. See the example apps in the `apps/examples` directory in the GitHub repository for usage details.
27
+
28
+ ## Environment & Setup
29
+
30
+ - ESM-only: Use in browsers with a bundler (e.g., Vite) or via [`<script type="module">`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules#applying_the_module_to_your_html).
31
+ - Can also be used via [esm.sh](https://esm.sh/) for direct HTTP imports.
32
+
33
+ ### License key
34
+
35
+ A valid license key is required. Request a free trial at [Microblink Developer Hub](https://developer.microblink.com/register).
36
+
37
+ ### Hosting resources
38
+
39
+ You must host the `dist/resources` directory from this package without modification. It contains:
40
+
41
+ - WebAssembly `.wasm` and `.data` files
42
+ - Emscripten JS glue code
43
+ - The `@microblink/blinkid-verify-worker` Web Worker script
44
+
45
+ ### Hosting requirements
46
+
47
+ - Must be served in a [secure context](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).
48
+ - For multithreaded builds, your site must be [cross-origin isolated](https://web.dev/articles/why-coop-coep):
49
+
50
+ ```http
51
+ Cross-Origin-Embedder-Policy: require-corp
52
+ Cross-Origin-Opener-Policy: same-origin
53
+ ```
54
+
55
+ ## Development
56
+
57
+ To build the package locally:
58
+
59
+ 1. Install dependencies in the monorepo root:
60
+
61
+ ```sh
62
+ pnpm install
63
+ ```
64
+
65
+ 2. Build the package:
66
+
67
+ ```sh
68
+ pnpm build
69
+ ```
70
+
71
+ The output files will be available in the `dist/` and `types/` directories.