open-index/open-npm huggingface dataset:
npm package: @humanship-id/sdk
Description: Humanship browser SDK for proof requests
Latest version: 0.0.2

# Humanship ID SDK

A lightweight embeddable JavaScript widget that initiates a Proof of Personhood / Age Verification flow using the [Humanship](https://humanship.id) platform.

## Installation

`npm install @humanship-id/sdk`

## Usage

```
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
});
```

## GUI Wizard

![sdk](https://humanship.id/humanship-assets/landing/web2sdk-short.png)

## API Key

Humanship is on closed beta for builders, reach out on [@humanship_id](https://x.com/humanship_id) to enable an API Key for you.