See it run.
The whole path in one recording
A longer recording follows one reading from a simulated quarry machine through the platform: a rule matches it, an alarm is raised and a command goes back to the device. The audio is in English, with Spanish captions.
How a message is handled.
A device sends a message over MQTT, HTTP, Sparkplug B or LwM2M, or a LoRaWAN network server forwards it over HTTPS. After decoding the message and identifying the device, DeviceChain passes the event to services that store it, update the device's current state and evaluate your rules. Matching rules trigger actions. The services communicate over NATS JetStream.
Customers or business units can share an install, with tenant isolation in the database and on the message bus. The operator manages the install and its tenants, and packages what each tenant gets into tiers. A tenant can give its own customers logins that see only their own equipment, limited to a customer or to a group of devices. The multi-tenancy page explains the isolation.
Ingest
MQTT on the built-in NATS broker, HTTP POST, a Sparkplug B host
application and an LwM2M server over CoAP/DTLS. The last two are
optional services. Inbound integrations take uplinks from a
LoRaWAN network server, or from any system that can send an HTTP
POST. The
transport matrix
lists what each transport supports in each direction.
Detect
Rules are typed conditions such as threshold, duration or absence. Each is written as a simple comparison or as a CEL (Common Expression Language) expression, and is evaluated against events as they arrive from the devices you choose.
React
A rule can raise an alarm, send the device a command, call a webhook, or publish to MQTT, Kafka, Amazon SNS or Amazon SQS.
Command
Device profiles declare commands and their parameters. DeviceChain stores each request and tracks its status, including delivery, the device's response and failures. A maintenance window holds a disruptive command until its time.
Typed, versioned device profiles.
Device types describe equipment such as meters, freezers or trucks. Each type uses a profile that defines its measurements, commands and detection rules. Several types can share a profile. You can edit a draft, publish a version or roll back to an earlier one.
Relate a device to its customer, site or asset, then use those relationships to find its readings. Typed relationships also let you describe connections between devices and other entities.
- Device profiles
- Metrics, typed command definitions and detection rules, published as versions.
- Relationship graph
- Typed, directed relationships between entities. Attributes can be declared as facets, so you can browse and filter by several at once, such as site, product line and owner.
- Dynamic groups
- A CEL expression over entity attributes. Membership is worked out with an indexed database query each time the group is read.
- Customers, areas, assets
- Devices are assigned to customers, areas and assets. Assets nest in a parent/child tree. Areas are named locations, and their boundaries are drawn as separate geofences. Each event records the device's tracked relationships as they stood when it was written, so history stays correct after a device is reassigned.
- Onboarding
- A fleet flashed with one shared provisioning secret can register itself: each unit sends its serial number on first power-on and gets back its own device token. A device can also sign in to the MQTT broker with an X.509 certificate that chains to a CA the tenant trusts, and a certificate profile registers it the first time it connects.
- Credentials and replacement
- A device keeps a stable token, and its credentials are separate and rotatable. Replacing failed hardware is one operation that retires the old unit's credentials and keeps the device's history.
- Live state
- The latest value of each measurement and whether the device is online. MQTT, Sparkplug B and LwM2M report connects and disconnects directly. An HTTP device counts as online while it keeps sending.
Test a rule against stored history.
Preview a draft against stored events to see when its condition would have fired. Preview uses the same rule compiler and engine as live processing.
Run preview from the automation canvas before publishing. It starts with empty rule state, does not load device attributes or apply group scope, and reports readings it skips or limits it reaches. The detection engine page lists its limits.
- Three ways to write a rule
- A form on the device profile, a visual automation canvas, or a plain-language description when the optional AI service is on.
- Alarms
- Alarms track active, acknowledged and cleared states, and can change severity. Clearing behavior depends on the rule; some windowed rules need new events before they can clear.
- Eight kinds of rule
- Threshold, rate of change, repetition, duration, absence, windowed aggregate, area correlation and connectivity. Absence and connectivity rules catch a device that goes quiet or disconnects.
- Geofences
-
Draw them in the console or send polygons with holes over the API.
A rule's condition can test containment with
geo.inFence(...). Each location event carries the fence-set version in force when it arrived, so a replay uses the fences of its time. - Scope
- Rules live on a device profile, and most kinds can be narrowed to a dynamic group. Group membership is recorded on each event when it arrives.
Describe a rule in plain language.
With the optional AI service, type something like "raise a major alarm when a freezer stays above -15°C for ten minutes" and get a draft rule back. The draft goes through the same compiler as a hand-written rule. The service can use compiler errors to revise it, up to a fixed attempt limit. It returns a valid draft or the errors it could not resolve. Review the rule before publishing it; compilation checks its structure, not whether it matches your intent.
Published rules run without calling the model. To enable AI rule authoring, an operator registers the AI provider, makes a model available to the tenant and records the tenant's consent to external inference. Until all three are in place, the option is unavailable. You can leave the service off.
Versioned dashboards you can embed.
A dashboard belongs to a tenant and has drafts, published versions and rollback. You can build one against synthetic data before any device exists, then bind the same layout to a live fleet.
To show dashboards in your own React application, install the
runtime packages from npm (@devicechain/widgets,
@devicechain/dashboards and
@devicechain/client). A standalone viewer gives users
access to dashboards without the administration console.
Boards lay out on a grid that adapts from a phone to a wall display, with about two dozen built-in widgets, and you can write your own.
Build a dashboard, start to finish
A walkthrough of building a dashboard in the console: the canvas, slots, widgets, and the standalone /dash viewer. The audio is in English, with Spanish captions.
Query your telemetry with SQL.
Telemetry is stored in TimescaleDB, a PostgreSQL extension. Query it
directly with a PostgreSQL-compatible tool such as Metabase,
Grafana, Power BI or psql, using a configured analytics
read role.
Each tenant can be given its own read role, which sees an analytics schema of views over events, measurements, per-minute rollups, locations, alerts and connection changes. The database itself filters these views to the reader's tenant. Location access requires a separate grant. The SQL and BI guide covers the setup.
- Read-only role
- A login role for each tenant, with read access to the analytics views. You choose which tenants get a reader.
- Or use the API
- Applications use the GraphQL API, which reads the same tables the analytics views are built on.
GraphQL, client SDKs and MCP.
The API is GraphQL, with one schema for each area of the platform,
and the schema files are published with the docs. Client SDKs are on
npm for TypeScript (@devicechain/client) and on NuGet
for .NET (DeviceChain.Sdk). The .NET SDK includes
ahead-of-time compilation checks, and a Unity package, built from
source, wraps it with Unity transports.
An optional Model Context Protocol server lets AI assistants such as Claude, Cursor or VS Code read devices, state, telemetry, alarms and commands. Calls use the signed-in user's token and permissions. The server exposes a selected set of read-only tools, not the full API.
- GraphQL
- One schema per platform area, with the schema files published.
- SDKs
- TypeScript on npm and C#/.NET on NuGet, plus the Unity package.
- MCP
- An OAuth 2.1 resource server with read-only tools, limited to the user's own tenant.
Runs on Kubernetes, with PostgreSQL and NATS.
Up and running in three steps
-
$ dcctl install localPrepares a cluster, or uses one you already have, with monitoring. -
$ dcctl bootstrap local devicechain --host localhost --no-tlsCreates an instance with PostgreSQL, TimescaleDB and NATS. -
$ dcctl sim create demo$ dcctl sim run demoStarts simulated devices sending live telemetry. It needs the simulator download and a port-forward; the quickstart shows how.
Runs on Kubernetes 1.29 or newer, including kind on a laptop.
What you need / other install options
dcctl is a single binary that carries the Helm chart and the OpenTofu configuration. Install docker, kubectl, helm and OpenTofu (or Terraform) first, plus kind for a local cluster. The install and bootstrap workflows are tested end to end on kind.
- Google Kubernetes Engine. An OpenTofu configuration in the repository creates a cluster with separate database and service node pools. GKE guide →
- Helm without dcctl. The chart is also published as an OCI artifact. Installing a specific version →
- Upgrades.
dcctl upgrademoves an instance to a new release in place. Rolling upgrades →
Measured on a real cluster
Measured on 1.0, a high-availability install on Google Kubernetes Engine: HTTP, MQTT over TLS and detection rules together, with the test tenants’ ingest ceiling raised. The busiest service nodes ran at 85–92% CPU. Not a capacity guarantee. Measured throughput →
Production-ready out of the box
- Monitoring built in: Prometheus, Grafana and Alertmanager with the platform’s alert rules and dashboards, in the default cluster install
- Point-in-time restore from continuous backups, when backups are enabled
- High-availability install option
- Restore and failover tested with scripted drills on a running cluster; the restore drill passes only if secrets stored before the backup still decrypt afterwards
Operations and governance.
Over-the-air updates, sign-in and secrets, alarm notifications, outbound delivery, audit, per-tenant limits, data retention, tenant deletion, white-labeling, device simulation, the edge agent and signed releases.
Over-the-air updates
Per-tenant firmware, software and configuration images, verified against their declared size and digest. By default an image can be assigned only once a signer you register has signed it. Managed updates reach devices connected over MQTT.
Sign-in and secrets
Single sign-on through an organization's own OpenID Connect identity provider, and two-factor authentication with an authenticator app for password sign-ins. Integration secrets are encrypted at rest and write-only through the API.
Notifications
Per-tenant policies route alarms by severity to email or webhooks, and escalate alarms nobody acknowledges. Escalation is safe to run on several replicas.
Outbound connectors
A separate service delivers rule actions to webhooks, MQTT, Kafka, Amazon SNS and Amazon SQS. Connections to loopback, private and cloud-metadata addresses are blocked by default; an operator can allow specific destinations.
Audit journal
Records changes to control-plane entities and who made them. Telemetry and derived state are excluded. When a tenant is deleted, its entries stay, with names and email addresses removed.
Governance
Per-tenant limits on ingest, outbound actions, AI requests and queued commands, set through the tenant's tier, keep each tenant's load within bounds you set.
Data lifecycle
TimescaleDB hypertables with compression, retention and continuous aggregates for per-minute rollups.
Tenant deletion
Revokes sign-in at once and refuses new connections, ingest and commands within about a minute, then erases the tenant's data from each of its storage systems. Backups expire separately: by default, 30 days for core data and 7 for telemetry.
White-labeling
Per-tenant branding that falls back to an operator default and then to the built-in look.
Device simulation
dcctl sim sets up a scenario, and the simulator, attached to each release, creates its customers, areas, assets and devices, then sends live telemetry over the same wire a real device uses.
Edge agent
Buffers to disk through a network outage and forwards when the link returns. It signs in as a gateway and can speak only for the devices assigned to it.
Signed releases
Every container image and the Helm chart is signed and carries build provenance, and each image carries an SBOM, all verifiable without obtaining a key. dcctl, the edge agent and the simulator ship with checksums and provenance.
Try it on a laptop.
The
first-device quickstart
takes about half an hour, including bootstrap. Bring up an instance
on kind, create a device, send it a reading with
curl and see the reading in the console.
Prefer to watch? Install DeviceChain on a laptop and send your first device reading. The audio is in English, with Spanish captions.
DeviceChain 1.0 is the first stable release.
From 1.0, the device wire formats, the GraphQL API, the
dcctl commands and flags, the npm packages and the .NET
SDK change incompatibly only in a major release, and an instance is
upgraded in place, never recreated, to take a new release. It is a
rebuild of the SiteWhere IoT platform. The Unity package is built
from source. Read the release notes before upgrading; they list
breaking changes first (see the
versioning and upgrade policy). If something breaks, send us the steps and what you expected.
Get in touch.