@omneo/omneo-sdk) is the typed JavaScript and TypeScript client for the Omneo API. Install it once and use it in Node or in the browser.
Installation
>=20. It ships ESM and CJS builds with TypeScript types.
For browser-only loading without a bundler, import the ESM build from unpkg:
Two clients
The SDK exports two classes from a single package. Pick the one that matches your runtime and authentication context.
The
Omneo client carries the full admin API surface and a token with broad scopes. Never ship that token to a browser.
The ID client is initialised once on a trusted server with an admin token to mint a short-lived, profile-scoped IDToken. You can then hand that token to the browser, where new ID({ tenant, IDToken }) is safe to use against the customer’s own profile only.
Picking a client
Migration from the legacy Shapes SDK
The previous script-tag library at
cdn.getomneo.com/sdk/omneo.js, with OmneoSDK.init() (also referred to as ShapesSDK.init()), .hydrate(), .find(), .on(), and .off(), is deprecated. New integrations must use @omneo/omneo-sdk.Related
- Using the Omneo SDK (the
Omneoadmin client) - Using Omneo ID (the
IDprofile-scoped client) - Omneo SDK concept
- API tokens