Skip to main content

Setup

Installation

  1. Install Node.js https://nodejs.org

  2. If you don't have an existing project - create one

    • npx create-next-app@latest // next.js
    • npm create vite@latest // vanilla js/react/vue/svelte/etc
    • (works best with modern javascript frameworks like next.js and bundlers like vite/webpack)
  3. Install veryfi-lens-wasm package

    • Run npm install veryfi-lens-wasm@latest

Import the SDK

Import the SDK to your js file (index.js, main.js or your component where you want to initialize lens):

import VeryfiLens from 'veryfi-lens-wasm';