Reference
Every package and export of the Klorad SDK, what it takes and what it returns.
For looking up an export once you know what you are building. New to the SDK? Start with the quickstart; for why the API is shaped as it is, read the model.
| Package | Import | Layer | Page |
|---|---|---|---|
@klorad/api | @klorad/api/world | World | World |
@klorad/api | @klorad/api/integration | Integration | Integration |
@klorad/react | @klorad/react | Binding | React |
@klorad/engine-three | @klorad/engine-three, /react | Renderer | three.js renderer |
@klorad/engine-openlayers | @klorad/engine-openlayers, /react | Renderer | OpenLayers renderer |
@klorad/engine-cesium | @klorad/engine-cesium | Renderer | Cesium renderer |
@klorad/engine-mapbox | @klorad/engine-mapbox, /react | Renderer | Mapbox renderer |
@klorad/access | @klorad/access | Access | Access |
@klorad/notify | @klorad/notify | Platform service over Access | Notify |
@klorad/protocols | @klorad/protocols, /mqtt | Integration adapters | Protocols |
@klorad/api also exports everything from /world and /integration at its root; prefer the
subpaths, which say which layer your code depends on.
These pages describe the versions below; Versions and releases has each package's release history and migration notes.
| Package | Documented version | Released |
|---|---|---|
@klorad/api | 0.2.3 | 2026-11-03 |
@klorad/react | 0.2.3 | 2026-11-03 |
@klorad/engine-three | 0.2.3 | 2026-11-03 |
@klorad/engine-openlayers | 0.1.3 | 2026-11-03 |
@klorad/engine-cesium | 0.1.1 | 2026-11-03 |
@klorad/engine-mapbox | 0.1.1 | 2026-11-03 |
@klorad/access | 0.2.3 | 2026-11-03 |
@klorad/notify | 0.2.3 | 2026-11-03 |
@klorad/protocols | 0.1.3 | 2026-11-03 |
Also here: the page for agents, and Klorad One and the SDK, which says what the platform does without code and what needs application code.
Stability
The packages are at 0.x. Under semantic versioning, a 0.x minor release may change the public API; every such change is listed in the package's changelog with a migration line. Exports not documented here are internal, even when a bundler lets you reach them.
Conventions
- Every value the SDK returns is immutable (frozen) unless its type says otherwise.
- Functions that can fail on bad input throw a
TypeErrororRangeErrorwith a message that names the fix. Operations that can fail on the outside world (a device, a vendor) return an outcome instead of throwing. - Instants are milliseconds since the Unix epoch (
Instant = number), always on the scene's clock.
Something wrong or unclear? Tell us.