Skip to main content
The JavaScript SDK loads the ShieldLabs browser agent and returns an Identification ID for each identification. Use that ID to read the result through the Server API or match a webhook.

Methods

The direct CDN snippet exposes callback-based methods. Framework SDKs wrap the same agent; see SDKs. Examples use @shieldlabs-ai/js version 1.0.1.

Installation and support

Start with JavaScript Quickstart for account creation, installation and your first result. For deployment requirements, see browser support and Content Security Policy. The package exports TypeScript definitions for LoadOptions, IdentifyOptions, IdentifyResult, ShieldLabsAgent, InteractionIdentifier and ShieldLabsErrorCode. Handle failures with ShieldLabsError.