Components
Components let you deploy custom logic that runs in real-time inside the Koios platform. Use them to build control algorithms, data transformations, state machines, alarm logic, and custom protocol adapters — all without managing external infrastructure.
Key Concepts
The component system has four main building blocks:
How They Fit Together
- Upload a library containing one or more component types
- Create an environment with a scan rate (how often components execute)
- Add instances of components to the environment's visual canvas
- Wire inputs and outputs to tags, other components, or historical data
- Enable the environment — the component engine begins executing your logic
Component Types
Libraries can contain four categories of components:
Koios ships with a Core Library containing common building blocks — math operations, boolean logic, comparisons, signal processing, and more. You can also build and upload your own libraries.
Execution Model
Each environment runs its components in a continuous loop at the configured scan rate:
- Read inputs — resolve all wired input values from tags and other components
- Sort by dependencies — components are automatically ordered so that upstream outputs are available before downstream inputs need them
- Execute — each component's logic runs in dependency order
- Write outputs — results are pushed to wired tags and made available to other components
Components maintain their internal state between cycles. A moving average remembers its buffer, a latch remembers its position, an integrator accumulates over time. State resets when the instance is reconfigured or the engine restarts (offline values provide reset defaults).
What's Next
- Component Libraries — upload, activate, and manage component packages
- Component Environments — create execution contexts and configure scan rates
- Component Canvas — add instances, wire inputs and outputs, and monitor execution
- Building Components — develop your own components with the Koios Component Builder
