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

@souqlabs/verify-widget

v1.0.2

Published

UAE Verification Widget - Simple identity verification for web apps

Downloads

25

Readme

UAE Verification Widget

Simple identity verification widget for web applications. Verify Emirates ID, selfie, and UAE PASS in minutes.

Quick Start

1. Install

npm install @souqlabs/verify-widget
# or
yarn add @souqlabs/verify-widget

2. Use in Your App

import { VerificationProvider, VerificationButton } from '@souqlabs/verify-widget';

function App() {
  return (
    <VerificationProvider 
      apiKey="sk_live_xxxxxxxxxxxxx"
      callbackUrl="https://myapp.com/verify/done"
      type="individual"
      locale="en"
    >
      <h1>Welcome to My App</h1>
      <p>Please verify your identity:</p>
      
      <VerificationButton className="btn-primary">
        Verify with Emirates ID
      </VerificationButton>
    </VerificationProvider>
  );
}

3. Handle the Callback

// https://myapp.com/verify/done?sessionId=xxx&result=verified&referenceNumber=...
export default function CallbackPage() {
  const searchParams = new URLSearchParams(window.location.search);
  const result = searchParams.get('result');

  if (result === 'verified') {
    return (
      <div>
        <h1>✅ Verification Successful!</h1>
        <p>Reference: {searchParams.get('referenceNumber')}</p>
      </div>
    );
  }

  return <h1>❌ Verification Failed</h1>;
}

Props

VerificationProvider

| Prop | Required | Type | Default | Description | |------|----------|------|---------|-------------| | apiKey | Yes | string | - | Your API key (sk_live_... or sk_test_...) | | callbackUrl | Yes | string | - | URL to redirect after completion | | type | No | 'individual' \| 'business' | 'individual' | Verification type | | locale | No | 'en' \| 'ar' | 'en' | Language | | theme | No | 'light' \| 'dark' | 'light' | Theme |

VerificationButton

All standard button HTML attributes plus:

| Prop | Type | Default | Description | |------|------|---------|-------------| | children | ReactNode | 'Verify Identity' | Button text |


Callback Parameters

After verification, users are redirected to your callbackUrl with these parameters:

| Parameter | Description | |-----------|-------------| | sessionId | Verification session ID | | result | 'verified' or 'failed' | | referenceNumber | Unique reference (if verified) | | emiratesIdNumber | Emirates ID number (individual) | | emiratesIdName | Name on Emirates ID (individual) | | errorCode | Error code (if failed) | | errorMessage | Error message (if failed) |


Styling

Style the button with className:

<VerificationButton 
  className="px-6 py-3 bg-blue-600 text-white rounded-lg font-semibold hover:bg-blue-700"
>
  Verify with Emirates ID
</VerificationButton>

Examples

React/Vue/Next.js

Works with any React-based framework:

// Next.js
export default function Home() {
  return (
    <VerificationProvider apiKey={process.env.NEXT_PUBLIC_VERIFY_API_KEY!} callbackUrl="/verify/done">
      <VerificationButton>Start Verification</VerificationButton>
    </VerificationProvider>
  );
}

Business Verification

<VerificationProvider 
  apiKey="sk_live_xxx"
  callbackUrl="https://myapp.com/business-verify/done"
  type="business"
>
  <VerificationButton>Verify Business</VerificationButton>
</VerificationProvider>

License

MIT

Support