
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@microblink/docver-in-browser-sdk
Advanced tools
This package is a wrapper around the [`blinkid-in-browser-sdk`](https://www.npmjs.com/package/@microblink/blinkid-in-browser-sdk).
This package is a wrapper around the blinkid-in-browser-sdk
.
Along with providing the same exports as blinkid-in-browser-sdk
, it also exposes the endpoint API types, and a few helpers for easier usage with Document Verification:
initSDK
function:An optional, alternative way to initialize the BlinkID scanning process.
It provides an easy way to initialize all the necessary core objects (WasmSDK
, BlinkIdCombinedRecognizer
, RecognizerRunner
and VideoRecognizer
), preconfigured to capture images suitable for sending to a Document Verification endpoint. This allows for easier scoping and lifecycle management as well.
Usage:
// initialization using a video element and a licence key
const sdkCore = initSDK(videoElement, { licenceKey: "LICENCE_KEY", // ...other SDK options });
// the rest is the same as on BlinkID
const result = await sdkCore.videoRecognizer.recognize();
You can see this approach in the apps/example-sdk-only
and apps/example-solidjs
examples on the GitHub repository.
imageDataToBase64
function:Converts the BlinkID captured images which are of the type imageData
to a base64 string required by the Document Verification API endpoint.
Usage:
const blinkIdResult: BlinkIdCombinedRecognizerResult = {
/*...*/
};
const request: DocVerRequest = {
imageFront: {
imageBase64: imageDataToBase64(blinkIdResult.frontCameraFrame.frame),
},
imageBack: {
imageBase64: imageDataToBase64(blinkIdResult.backCameraFrame.frame),
},
// ... other properties on the request
};
Alongside these two helper functions it also re-exports the DocVerResponse
and DocVerRequest
from @microblink/docver-in-browser-api
so that the user needs to only install a single package.
FAQs
This package is a wrapper around the [`blinkid-in-browser-sdk`](https://www.npmjs.com/package/@microblink/blinkid-in-browser-sdk).
We found that @microblink/docver-in-browser-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 13 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.