A lightweight embeddable JavaScript widget that initiates a Proof of Personhood / Age Verification flow using the Humanship platform.
npm install @humanship-id/sdk
import { ProofRequest } from "@humanship-id/sdk";
ProofRequest.create({
  proofConfig: { //Type of request to generate
    type: "proof_of_person",
    payload: {},
  },
  clientId: "aAbBcCdDeEfFgGhHiIjJkKlLmNoO", //request at Humanship
  callbackUrl: "https://domain.com/your/callback/url", //register at Humanship
  width: "250px", //optional
  height: "250px", //optional
  color: "#FFFFFF", //optional
  background: "#000000" //optinoal
});
Humanship is on closed beta for builders, reach out on @humanship_id to enable an API Key for you.
