Setup
Installation
Install Node.js https://nodejs.org
If you don't have an existing project - create one
npx create-next-app@latest// next.jsnpm create vite@latest// vanilla js/react/vue/svelte/etc- (works best with modern javascript frameworks like next.js and bundlers like vite/webpack)
Install veryfi-lens-wasm package
- Run
npm install veryfi-lens-wasm@latest
- Run
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';