Skip to main content

Choose Your SDK

Mirador provides two SDKs depending on your environment:

Web SDK

For browser-based applications

Node.js SDK

For server-side applications
SDKs for Python, Go, Rust, and other languages are currently in development. Contact us if you’re interested in early access.

Web SDK

Install the Mirador Web SDK for browser-based applications:

Initialize the Web Client

Node.js SDK

Install the Mirador Node.js SDK for server-side applications:

Initialize the Node.js Client

Configuration

Custom Gateway URL

If you’re using a self-hosted gateway or different environment: Web SDK:
Node.js SDK:

Custom Keep-Alive Interval

Both SDKs support configurable keep-alive intervals:

Debug Mode and Plugins

v2 introduces new client options:
See Client Options for the full list of configuration options.

Module Formats (Web SDK Only)

The Web SDK provides multiple module formats:

ESM Import

CDN / Browser Global

Load the SDK directly from a CDN — no bundler required:
Then use the MiradorWeb global:
Pin to a specific version (e.g. @2.0.0) in production to avoid unexpected breaking changes.

Browser Requirements

The SDK requires modern browser features:
  • ES2020+ - Modern JavaScript syntax
  • Fetch API - For network requests
  • Promises - For async operations

Supported Browsers

Polyfills

For older browsers, you may need to include polyfills:

Verifying Installation

Test that the SDK is working: Web SDK:
Node.js SDK:

Next Steps

Quickstart

Build your first trace