Installation

The TypeScript SDK (@usebridge/sdk) runs eligibility checks on the server or in the browser, without React.

Installation

The SDK requires the Bridge TypeScript API client as a peer dependency:

$npm install @usebridge/api @usebridge/sdk

Example project

A working demo is available as the node project in the repository.

Copy .env.example to .env and set your publishable key and service type IDs:

BRIDGE_PUBLISHABLE_KEY="********-****-****-****-************"
BRIDGE_SERVICE_TYPES="svt_****,svt_****"
$yarn workspace node-demo soft # soft eligibility
$yarn workspace node-demo hard # hard eligibility

Next Steps