Skip to content
In development

Histenco

An industrial historian that stores every change and never guesses

A data historian for plant signals, written in Rust and run as one program on a site server or an edge box. It collects from Modbus, OPC UA, MQTT and an existing GE historian, stores only changes, keeps every doubtful reading flagged rather than dropped, and answers in a browser trend page, SQL, Parquet, Grafana and an HTTP API, with asset models, event frames and alarms on the same data.

Line drawing of Histenco's data flow: plant sources into collectors, tag rules and the storage engine, out to the API, SQL and a central historian
One process per site: collectors, tag rules, storage, and the ways out.

Built around one idea

Most plants have a historian that is either expensive per tag, trapped in one vendor's formats, or a general database straining under plant data rates. Histenco is built around a smaller idea: store every change and nothing else, validate every setting and every reading at the door, and keep the data in open formats so it is never trapped.

It is one program. Collectors poll devices on a clock-aligned grid, convert each reading to an on-change event at the edge, and record a lost device as bad-quality data rather than a silent gap. The storage engine writes a log before it acknowledges anything, then compresses into immutable time-partitioned files at about three bytes an event. The same query service answers the trend page, the command line, the HTTP API and SQL, so they cannot disagree.

A plant engineer configures it in one file or a spreadsheet loadsheet, with every error reported in one pass with its line or row, and changes tags while it runs. Operators read trends in a browser, add notes and give downtime its reason. Assets, event frames and alarms describe the plant on top of the tags. A data team reads it with SQL, Parquet or Grafana, and an edge site forwards everything to a central historian through a queue that survives any outage.

What it does

Collectors

Modbus TCP and RTU, including registers holding text. OPC UA by polling or subscription, with signed and encrypted channels, and a browse command that walks a server and prints ready-made tag blocks. MQTT with JSON and Sparkplug B, over TLS with client certificates for cloud brokers. Netdata system metrics, and a GE Proficy Historian read through its REST interface with gaps filled. Each source runs on its own thread, so a fault on one never stops the others.

Tag rules

Type, resolution, range, deadband, heartbeat and a plausible rate of change, applied to every write. Out-of-range and spiked readings are stored and flagged uncertain, never discarded. Text tags hold batch numbers, product codes and names at the cost of an integer. A tag's id and type are permanent, so history can never be reinterpreted by a config edit.

Trend page

Served by the historian at its own address. Up to eight tags, each number in a strip with its own scale and bad stretches shaded, states and text in coloured lanes, an asset browser, zoom by dragging, live follow, and a link that reproduces the view. Nothing is loaded from anywhere else.

Asset model and event frames

Templates and assets place tags in the plant, so twenty conveyors are one template and twenty short blocks, and any query can name an asset's attribute. Event frames are found from a trigger such as a stopped state, at the exact sample it changed, with values captured at the start, end or across the event, and operators set the reason and comment.

Alarms and notifications

Limits, formulas or quality on any tag or template, with deadband and delays to stop chatter, priorities, acknowledgement and shelving in the states ISA-18.2 describes. Notifications go to Microsoft Teams, Slack, a webhook or email, retried, and every raise, clear and acknowledgement is kept in a journal.

Storage engine

Write-ahead log, then compressed immutable segments partitioned by time, with checksums everywhere. A crash at any point loses nothing. Retention deletes whole files, backups are safe while it runs, and years of history open from small summaries rather than whole indexes.

Queries, SQL and Grafana

Raw, value at a time, interpolated, time-weighted averages, totals, state durations for delay accounting, and trend reduction. Standard SQL over events, tags, assets, event frames and the alarm journal, Parquet export for DuckDB, pandas, Power BI or Spark, and a Prometheus query interface so Grafana charts tags by asset.

Calculated tags

Spreadsheet-style formulas with time windows and quality tests, checked when the config loads, computed on a grid and back-filled over history. Late data and restarts are caught up, and nothing can loop, hang or escape.

Store-and-forward

An edge historian sends everything it stores to a central one through a durable queue, over HTTPS. An outage of any length costs disk space on the edge and nothing else, and any time range can be re-sent.

Staying up

A crash in one source, the forward link or the alarms restarts only that part. A stall restarts the process through the service manager, a full disk pauses storing but not collecting, and a clock step is noticed and handled. Tags and tokens change without a restart.

What it looks like

The Histenco trend page in a browser: a day of a conveyor's feed rate, a bearing temperature, a surge bin level and a crusher's power in strips with their own scales, the conveyor's state as a coloured lane, downtime events as bars, and a readout of every value at the cursor
The trend page the historian serves itself. A strip per number with its own scale, states as a lane, downtime events as bars underneath, and every value at the cursor. One self-contained page that works on a plant network with no internet. Demo data.
The Histenco trend page zoomed to three hours, the cursor on a downtime event showing its duration, the average feed during it, the reason Blocked chute captured from the conveyor's state and an operator's comment
Three hours zoomed in. Each downtime is an event frame found from the conveyor's state, with its reason captured and the feed during it averaged, and an operator's comment added from the page. Demo data.
Histenco command line output: a configuration check, the tag list with units, ranges and stored event counts, and storage statistics for the demo data
The configuration checked, the tags listed with their rules and stored counts, and a day of eight tags at 1.8 bytes an event. Output of the built-in demo, which simulates a fictional conveyor.
Histenco command line output: state durations for delay accounting on a conveyor, hourly averages of its feed rate, and interpolated bearing temperatures
State durations for delay accounting, hourly averages with a good-data percentage, and interpolated readings on a grid, from the same query service the API, SQL and the trend page use. Demo data.

How it is built

  • Written in Rust with unsafe code forbidden in every crate. The storage engine has no dependencies at all, so there is nothing to audit under it and the build is identical on every platform.
  • On-change storage from the edge. Polled readings are stamped on the poll grid and stored only when they change, with a heartbeat proving a flat signal is alive, which is why a second of data costs about a bit per timestamp.
  • Faults are data. A lost device records its tags as bad quality once, holding the last value, so a trend shows where the data stopped being trustworthy instead of a gap that looks like a flat line.
  • Nothing is quietly guessed. Unknown settings are errors, every problem is reported in one pass, and a reading the rules refuse is counted and logged with its reason rather than dropped.
  • Built for scale. In benchmarks on a development PC a million tags were stored at a million events a second for two hours with every sampled tag read back exactly, and three years of 100,000 tags open in a fifth of a second holding 63 MB. Merges and seals run beside the lock, so long queries never hold up collection.
  • Open formats out. CSV, JSON, SQL and Parquet, documented on-disk formats, and Prometheus metrics and JSON logs for the tools a site already monitors with. The data is never trapped in the product.
  • Secure by default. HTTPS from certificate files renewed in place, read and write token roles changed without a restart, and without tokens the API serves the local machine only.
RustApache DataFusionParquetModbusOPC UAMQTT and Sparkplug BPrometheus and Grafana

Integrations

A historian is only as useful as what reads from it and what feeds it. Histenco connects to the plant with the protocols it already speaks, and gives the data out in the formats and tools the rest of the business already uses.

What connects today

Plant protocols

Modbus TCP and RTU, including RTU over serial-to-Ethernet gateways and buses with many units. OPC UA by polling or subscription, with Basic256Sha256 security and browsing to build the tag list. MQTT with JSON payloads read by path and Sparkplug B by metric or alias, on plain TCP or TLS with client certificates.

An existing GE historian

Tags copied from a GE Proficy Historian through its REST interface, with history back-filled and outages read back, or streamed through MQTT with the REST source filling what the stream missed. Nothing is installed on the GE side.

Grafana and monitoring

A Prometheus query interface over plant data, so Grafana charts tags with their asset and attribute labels, and Prometheus metrics and JSON logs for the historian's own health.

Notifications

Alarm notifications to Microsoft Teams as an adaptive card, to Slack, to any webhook as JSON, or by email over TLS, each channel testable from the command line.

HTTP API

Query, write, SQL, tags, assets, event frames, alarms, operator notes, health and the forward link, as JSON or CSV, with bearer tokens for read and write roles. The same routes the trend page and terminal interface use.

SQL, Parquet and CSV

Read-only SQL for any tool that speaks it, Parquet files for data platforms, and CSV import for history from spreadsheets or an old system.

Edge to central

Store-and-forward from any number of edge historians to a central one, matched by tag name, with every event's quality carried through and new tags accepted on first sight.

What we could add

  • EtherNet/IP for Allen-Bradley, S7 for Siemens and DNP3, on the roadmap and built when a site needs them.
  • Alarms and events reported by devices themselves, such as OPC UA Alarms and Conditions, alongside the alarms Histenco raises on the data.
  • A warm standby that takes over collection, and site-to-central links with more than one destination.
  • An archive tier that moves old partitions to cheaper storage as Parquet, still queryable.
  • Production reporting, delay accounting and condition monitoring built on the API and event frames, which is the software work Enco does.

How you can run it

  • Released as a single binary with no runtime to manage: static Linux builds for servers and for 64-bit ARM edge boxes such as a Raspberry Pi, lighter builds for small boxes, Debian packages, a Windows build, and a Dockerfile for a container.
  • Installed as a service on Linux, Windows or macOS, with an install kit for Linux. Upgrades are run by the new build, which checks the live configuration and data, swaps itself in, proves the service healthy and rolls back if it is not.
  • A central historian hosted by Enco or in your environment, receiving from any number of edge sites through the store-and-forward link.
  • Configured from one file and a tag loadsheet, with the first tags validated and collecting on the day it is installed.
  • Supported by the engineers who wrote it. The historian carries 321 automated tests, including malformed input for every network decoder, and has run an hour at 100,000 tags against simulators with no losses.

Further reading

See it working, then decide

The quickest way to judge it is a walkthrough on real workflows. Tell us what your team runs today and we will show you where this fits, or where a custom build fits better.