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:Custom Keep-Alive Interval
Both SDKs support configurable keep-alive intervals:Module Formats (Web SDK Only)
The Web SDK provides multiple module formats:| Format | File | Use Case |
|---|---|---|
| ESM | dist/index.esm.js | Modern bundlers (Webpack, Vite, Rollup) |
| UMD | dist/index.umd.js | Browser globals, older module systems |
| TypeScript | dist/index.d.ts | Type definitions |
ESM Import
UMD / Browser Global
Browser Requirements
The SDK requires modern browser features:- ES2020+ - Modern JavaScript syntax
- Fetch API - For network requests
- Promises - For async operations
Supported Browsers
| Browser | Minimum Version |
|---|---|
| Chrome | 80+ |
| Firefox | 75+ |
| Safari | 13.1+ |
| Edge | 80+ |
Polyfills
For older browsers, you may need to include polyfills:Verifying Installation
Test that the SDK is working: Web SDK:Next Steps
Quickstart
Build your first trace