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

kyc-widget-falconite

v1.1.0

Published

Universal KYC verification widget for Next.js and React Native

Readme

@falconite/kyc-widget

Universal KYC verification widget for Next.js, React, and React Native applications.

Features

  • Tier 1 KYC: BVN + Selfie + Document verification
  • Tier 2 KYC: Address + Background + Bank Statement verification
  • React Native Support: Works in WebView with full camera access
  • Scoped Styles: No CSS conflicts with parent application
  • TypeScript: Full type safety
  • Responsive: Works on mobile and desktop

Installation

npm install @falconite/kyc-widget
# or
yarn add @falconite/kyc-widget
# or
pnpm add @falconite/kyc-widget

Peer Dependencies

Make sure you have these installed:

npm install react react-dom framer-motion lucide-react zod

Usage

Tier 1 KYC (BVN + Document)

import { KYCWidget } from 'kyc-widget-falconite';
import 'kyc-widget-falconite/styles.css';

function App() {
  return (
    <KYCWidget
      tier="tier_1"
      accessToken="user-auth-token"
      apiBaseUrl="https://api.yourapp.com"
      onSuccess={(data) => console.log('KYC completed:', data)}
      onError={(error) => console.error('KYC failed:', error)}
    />
  );
}

Tier 2 KYC (Enhanced Verification)

import { KYCWidget } from 'kyc-widget-falconite';
import 'kyc-widget-falconite/styles.css';

function App() {
  const handleUpload = async (file: File): Promise<string> => {
    // Upload file to your storage
    const formData = new FormData();
    formData.append('file', file);
    const response = await fetch('/api/upload', {
      method: 'POST',
      body: formData,
    });
    const data = await response.json();
    return data.url;
  };

  return (
    <KYCWidget
      tier="tier_2"
      accessToken="user-auth-token"
      apiBaseUrl="https://api.yourapp.com"
      onUpload={handleUpload}
      onSuccess={(data) => console.log('Tier 2 completed:', data)}
      onError={(error) => console.error('Tier 2 failed:', error)}
    />
  );
}

Props

KYCWidget

| Prop | Type | Required | Description | |------|------|----------|-------------| | tier | 'tier_1' \| 'tier_2' | Yes | KYC tier level | | accessToken | string | Yes | User authentication token | | apiBaseUrl | string | No | Base URL for API endpoints (defaults to localhost:8000) | | user | object | No | User information object | | onSuccess | (data: any) => void | No | Callback when verification succeeds | | onError | (error: Error) => void | No | Callback when verification fails | | onProgress | (step: string, progress: number) => void | No | Callback for progress updates | | onUpload | (file: File) => Promise<string> | Yes for Tier 2 | File upload handler (required for Tier 2) | | theme | 'light' \| 'dark' | No | Widget theme (defaults to 'light') |

API Endpoints

The widget expects these endpoints:

Tier 1

  • POST /kyc/v2/verify - Combined BVN + Document verification

Tier 2

  • POST /kyc/v2/level-2/verify-kyc - Enhanced KYC verification

Styling

The widget uses scoped Tailwind CSS classes to prevent conflicts. All styles are prefixed with .kyc-widget.

To customize colors, override CSS variables:

.kyc-widget {
  --primary-color: #your-color;
}

React Native

For React Native WebView integration, see REACT_NATIVE.md.

License

MIT