New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@bespot/gatekeeper-web-sdk

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bespot/gatekeeper-web-sdk

Bespot Gatekeeper Web SDK

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
8
-42.86%
Maintainers
2
Weekly downloads
 
Created
Source

Bespot Gatekeeper Web SDK

Browser SDK for Bespot Gatekeeper antifraud checks. This repository contains pre-built SDK bundles, integration documentation, and starter templates.

Documentation

DocumentDescription
Integration guideFull end-to-end integration reference
AuthenticationJWT access tokens and OAuth (server-side)
Error referenceError handling rules and error.name catalog
SDK versioningSDK package version vs application version
TemplatesCopy-paste HTML and config starters

Official authentication API reference: Bespot Authentication Guide.

Installation

npm install @bespot/gatekeeper-web-sdk
import SafeSDK from '@bespot/gatekeeper-web-sdk'

CDN / script tag (no build step)

Download safe-sdk.esm.min.js or safe-sdk.umd.min.js from the Releases page and host the files on your CDN or static origin.

Quick start

  • Install — npm install @bespot/gatekeeper-web-sdk or download from Releases
  • Configure — four runtime fields: baseUrl, apiKey, applicationId, applicationVersion (runtime configuration)
  • Authenticate — obtain a JWT from your backend (authentication)
  • Integrate — await sdk.initialize(jwt) then await sdk.check() (integration sequence)
const sdk = new SafeSDK({
  baseUrl: 'https://gatekeeper.bespot.dev/v2',
  apiKey: 'your-api-key',
  applicationId: 'your-app-id',
  applicationVersion: 'your-app-version',
})

await sdk.initialize(jwt)

const result = await sdk.check()
if (result instanceof Error) {
  console.error('Check failed:', result.name)
} else {
  console.log('Check passed:', result)
}

Starter pages: templates/integration-esm.html, templates/integration-umd.html.

License

Use of the SDK is governed by LICENSE.

Support

See Support in the integration guide.

FAQs

Package last updated on 22 Jun 2026

Related posts