Your data and your hardware
Values, history and configuration stay on your own server, inside your network. The gateway runs without the internet, and the only thing we see is a short hourly check-in that you can turn off.
Developers
Scadex is a core you can build on. It has a documented SCADA API, a TypeScript SDK with React hooks for your own screens, and a module contract for your own drivers and plugins.
The stack
Everything sits inside your own network. Your code talks to the core through the SDK or the API, and drivers and plugins are modules that plug into the core.
API
The gateway serves a JSON API under /api/v1, the same API the dashboard uses, and one WebSocket for live values and alarms.
curl -H "Authorization: Bearer <api key>" \
https://<your gateway>/api/v1/runtime/tags/Plant.Line1.Setpoint/current// open wss://<your gateway>/sync with a signed-in session, then send
{"event": "tag.subscribe", "data": {"path": "Plant.Tank1.Level"}}
// the gateway answers with a tag.value frame now, and again on every changeSDK
The SDK is the client the dashboard itself is built on: a REST client, the live socket with reconnection and replay, and React hooks for your own screens.
@scadex.io/sdk/react, for React 18./api and /sync passed on to the gateway.import { useTag } from "@scadex.io/sdk/react";
export function LevelCard() {
const level = useTag<number>("Plant.Tank1.Level");
if (level.loading) return <p>Waiting for the gateway</p>;
return (
<section aria-label="Tank 1 level">
<h2>{level.formattedValue ?? `${level.value} ${level.unit ?? ""}`}</h2>
{!level.good && <p role="status">Do not trust this value: {level.qualityDetail ?? level.quality}</p>}
{level.replayed && <p>This is the past, replayed. It is not the plant now.</p>}
</section>
);
}ScadexProvideruseClientuseTaguseTagsuseTagValuesuseAlarmsuseReplayuseReplaySelectoruseAuthThe React example, step by step Read the SDK referenceBuild a React app on the SDK
Modules
Every driver and plugin in Scadex is a module: a package with its own version, its own licence and its own log, which the gateway can start, stop, install and remove while it runs.
module.json. Modules run as trusted code inside the gateway.The module contract is not published to a package feed yet.
{
"id": "io.scadex.driver.mqtt",
"name": "MQTT Driver",
"version": "1.0.0",
"vendor": "scadex.io",
"license": "LicenseRef-Scadex-Proprietary",
"sdkVersion": "1.2",
"requiresLicense": false,
"assembly": "Scadex.Modules.Mqtt.dll"
}Read how to write a moduleHow modules are loaded and runLicensing a module
Scripting and events
When you do not need a module, a script or a stream is enough: react to a tag, a schedule or an alarm, and tell another system.
writeTag('Reports.Shift.EndLevel', tag('Plant.Tank1.Level'));
writeTag('Reports.Shift.EndLevelAt', system.date.format(system.date.now()));Read about scriptingThe system APIEvent streamsAlarm pipelines
What stays yours
Values, history and configuration stay on your own server, inside your network. The gateway runs without the internet, and the only thing we see is a short hourly check-in that you can turn off.
OPC UA, Modbus TCP and MQTT come in, and Telegraf agents push in. Values go out as MQTT topics, as a Modbus TCP server, over REST, to webhooks and to InfluxDB.
Export tags and tag types as files, download a backup of the gateway's database, and read history through the API. A backup holds the database; the historian's own file and the keys are kept beside it.
Read the guides, or tell us what you want to build and we answer in plain language.