Build your first connected scene
Who the Klorad SDK is for, what you will build first, what you need, and where to go next.
Use the Klorad SDK to place objects in a real location, connect their data and display them in your application. Start with a working example, then add the parts you need.
The SDK packages require access
You can explore the browser examples before requesting it. Request package access for your npm account; Install explains how access works.
Choose how you want to work
Build with the SDK
Create a scene in TypeScript, connect a simulated reading and select an object.
Explore examples
Try focused SDK examples in your browser and inspect the code behind them. No install.
Use Klorad One
What the platform's editor does without code, which steps need application code, and how to get help.
Who this is for
These docs are for developers who add maps, models and connected data to their own application, and for the coding agents they work with. You need TypeScript; React is optional. Klorad (Prieston Technologies) licenses the SDK to its customers and partners and to research groups with research access; the docs are public, the packages are private.
What you will build first
The quickstart builds a Next.js app with one building, one occupancy counter fed by simulated readings, and a 3D view you can click. When it runs, you replace the simulated source with data from your system: Connect your system says which guide fits.
What the SDK does today
With the current packages (@klorad/api 0.2) you can:
- place a scene on a real location, with positions in latitude and longitude or in metres from an origin;
- connect what reports: MQTT brokers, signed webhooks, REST APIs you poll, and generated fixtures for demos and tests;
- keep the newest reading even when data arrives late or twice, and tell when a sensor has gone quiet;
- show models in ten formats (glTF, FBX, OBJ, STL, PLY, Collada, 3DS, 3MF, USDZ, KMZ) and Gaussian splats, stream 3D Tiles around a site, and show a building streamed as 3D Tiles with each element selectable;
- draw one scene in 3D with three.js, as a plan with OpenLayers, on the globe with Cesium and on a Mapbox or MapLibre map, in plain TypeScript or in React;
- let only entitled people act, give each team its own view, and raise alerts from rules;
- save a scene as a package, load only the parts a view needs, and edit it on revisions.
The words for these ideas (Digital Shadow, Entitlement, World and the rest) are explained where a guide uses them, and all together in Concepts when you want the background.
Not in the packages
The packages do not include a transport that carries live state from a server to browsers, decoding of Sparkplug B payloads, or connectors for named vendors. These pages describe only what the packages do today.
How these docs are organised
- Guides: one task per page, grouped by what you are doing.
- Examples: each capability live in your browser, with the code that builds it.
- Reference: every package and export, with the documented versions.
- Concepts: the model behind the API, when you want to know why.
- Troubleshooting: package access, WebGL, assets, readings.
Something wrong or unclear? Tell us.