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

inji-verify-sdk

v1.0.40

Published

SDK for verifying credentials using Inji

Readme

inji-verify-sdk

SDK for verifying credentials using QR codes from image and PDF files.

Features

  • Upload: Upload image or PDF files for QR code verification.
  • Scan: Scan and decode QR codes directly from images or PDFs, then post the decoded data to a verification API.

📤 File Upload Support Upload and scan files of the following types:

🖼️ Images: PNG, JPG, JPEG, GIF

📄 Documents: PDF (multi-page supported)

📆 Installation

npm install inji-verify-sdk

🚀 Usage

import {vcVerification} from 'inji-verify-sdk';

// Example usage:
const fileInput = document.querySelector('input[type="file"]');
fileInput.addEventListener('change', async (event) => {
  const file = event.target.files[0];
  const url = 'https://xyzcom/v1/verify/vc-verification';

  const result = await vcVerification(file, url);
  console.log(result);
});

💠 API

vcVerification(file: File, url: API URL): Promise<object | string | null>

| Parameter | Type | Required | Description | |----------|--------|----------|---------------------------------------------------------| | file | File | ✅ | The file to be upload (image or PDF). | | url | string | ✅ | The verification API endpoint to which data is posted. |


🧪 Example Response

{
  "result": {
    "verificationStatus": "SUCCESS"
  },
  "credential": {
    "credentialSubject": {
      "studentId": "123",
      "major": "EEE",
      "graduationDate": "2025-01-01",
      "studentName": "xyz",
      "degree": "BE",
      "UIN": "123",
      "type": "GraduationCredential"
    },
    "issuanceDate": "2025-04-03T14:50:46.938Z",
    "id": "https://mosip.io/credential/6bf2eefa-88c8-4078-ac6c-fd0eec8cbd8e",
    "type": [
      "VerifiableCredential",
      "GraduationCredential"
    ],
    "issuer": "did:web:tejash-jl.github.io:DID-Resolve:utt"
  }
}

If verification fails:

{
    "credential": {},
    "result": {
        "verificationStatus": "INVALID"
    },
    "error": "failed"
}

📁 Supported File Types

  • JPEG, PNG, JPG, GIF
  • PDF (with QR on pages)

🚀 Usage

import {vcQrCodeVerification} from 'inji-verify-sdk';


  const scannedText = '...'; // String value from QR scanner
  const result = await vcQrCodeVerification(
    scannedText,
    'https://xyzcom/v1/verify/vc-verification'
  );
  console.log(result);
  

💠 API

vcQrCodeVerification(data: string, url: API URL): Promise<object | null> Verifies a Verifiable Credential directly from a QR code text string.

| Parameter | Type | Required | Description | |-----------|--------|----------|-----------------------------------------------------| | data | string | ✅ | The decoded QR code string (UTF-8). | | url | string | ✅ | The verification API endpoint to post the data to. |

🧪 Example Response

{
  "result": {
    "verificationStatus": "SUCCESS"
  },
  "credential": {
    "credentialSubject": {
      "studentId": "123",
      "major": "EEE",
      "graduationDate": "2025-01-01",
      "studentName": "xyz",
      "degree": "BE",
      "UIN": "123",
      "type": "GraduationCredential"
    },
    "issuanceDate": "2025-04-03T14:50:46.938Z",
    "id": "https://mosip.io/credential/6bf2eefa-88c8-4078-ac6c-fd0eec8cbd8e",
    "type": [
      "VerifiableCredential",
      "GraduationCredential"
    ],
    "issuer": "did:web:tejash-jl.github.io:DID-Resolve:utt"
  }
}

```If verification fails:

```js
{
    "credential": {},
    "result": "INVALID"
}

Key Update:

  • Integrated with Laravel: A note has been added under the "Integrated with Laravel" section, mentioning that the library is already integrated into a Laravel project for QR code scanning and credential verification.
  1. GitHub Repository: https://github.com/pkumarmshetty/VCverification

This guide helps users integrate and use the inji-verify-sdk in a Laravel project, both for file uploads and QR code scanning functionalities.

📃 License

MPL-2.0 license