npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@finwave/ocrid-v2

v1.0.6

Published

OCR ID library for document verification.

Downloads

13

Readme

@finwave/ocrid-v2

@finwave/ocrid-v2 is a powerful library for identity document verification and onboarding. It provides tools for capturing, processing, and analyzing ID documents with a customizable and event-driven interface.


Features

  • OCR Scanning: Capture and process identity documents efficiently.
  • Event-Driven: React to various stages of the scanning and processing workflow.
  • TypeScript Support: Fully typed for enhanced developer experience and IDE support.

Installation

Install the package via NPM:

npm install @finwave/ocrid-v2

Usage

Importing the Library

Import the library in your project:

import { OcrId } from '@finwave/ocrid-v2';

Creating an Instance

Create an instance of the library:

const ocr = new OcrId({
  key: 'YOUR_API_KEY',
  env: 'ENVIRONMENT',
});

Subscribe to Events

// Subscribe to specific events
ocr.events(EventType.RESULT).subscribe((result) => {
  console.log("Processing result:", result);
});

ocr.events(EventType.ERROR).subscribe((error) => {
  console.error("An error occurred:", error);
});

Start the OCR Process

const videoElement = document.getElementById("videoContainer");

ocr.startStream(videoElement)
  .then(() => {
    console.log("OCR stream started");
  })
  .catch((err) => {
    console.error("Failed to start OCR stream:", err);
  });

Close the OCR Process

ocr.close();
console.log("OCR stream closed");

API

OcrId Constructor

new OcrId(options: OcrIdOptions);

Parameters

  • options (OcrIdOptions): An object containing the following properties:
    • key (string): Your API key.
    • env (string): The environment to use.
    • config: (object): Optional configuration for the OCR process. Copiar código

Events

Use the events method to subscribe to specific events emitted by the library:

CONNECTED: Emitted when the connection to the backend is established. RESULT: Emitted when the document is successfully processed. ERROR: Emitted in case of an error during processing. USER_FEEDBACK: Emitted for feedback on user interactions. CLOSED: Emitted when the process is closed.


Support

For assistance, or to request an API key, please contact us at:

📧 Email: [email protected]