Origin plane
Origin provides the runtime types and graph model that Reaktor shares across platforms. It covers graph execution, service and I/O contracts, binary data, and calls between languages.
The Origin plane may use no other plane. Every other plane may use it. Its modules live in reaktor/plane-origin/. Reaktor planes shows where it sits among the twelve.
Modules#
| Module | What it does | Read more |
|---|---|---|
reaktor-core | Provides shared runtime types, capabilities, and platform adapter interfaces. | Core |
reaktor-graph-port | Defines graph identities, typed ports, and reusable subgraphs. | Graph |
reaktor-graph-runtime | Runs graphs and capabilities in headless hosts. | Graph |
reaktor-actor | Runs actors: keys, bounded mailboxes, one turn at a time, supervision directives, timers, and durable state machines. | Actors |
reaktor-graph | Connects the graph runtime to Compose rendering and navigation. | Graph |
reaktor-service | Defines typed service operations, requests, responses, and trace records. | Service Layer |
reaktor-io | Provides routing, HTTP, WebSocket, file, and compression helpers. | — |
reaktor-flexbuffer | (Deprecated — use reaktor-struct) Legacy FlexBuffers binary serialization. | FlexBuffer (Deprecated) |
reaktor-ffi | Handles calls and data exchange between Kotlin, C++, and TypeScript. | FFI and RPC |
reaktor-struct | Dual-core (C++23 + KMM) zero-copy struct layout, verifier, evolution, and delta runtime. | Struct |
reaktor-ksp | KSP2 symbol processors for Reaktor (@Struct polyglot codegen and future Origin generators). | Struct |
reaktor-compiler-plugin | Kotlin K2 FIR/IR compiler plugin for Reaktor (@Struct @JvmRecord synthesis, Str16 lowering, and future passes). | Struct |
Every module in this plane is experimental.
What it may use#
- May use: no other plane.
- May be used by: Data, Surface, Machines, Identity, Build, Work, Cloud, Views, Observability, Platform and Agentic.
Pages#
- Core: reaktor-core, the module every other module imports: Feature slots for platform services, resources that must be closed, weak platform adapters, and shared primitives for time, dispatchers, logging, atomics and JSON.
- Graph: reaktor-graph, the runtime that holds an application together: nodes declare typed ports, a graph connects every input to a provider when it starts, and Hangar reads the same structure to draw it, check it and edit it.
- Reaktor Service: How Reaktor declares, serves and calls services: one open-class root per service, plain typed inputs and outputs, four kinds of failure, one call pipeline over every link, and services as graph nodes that consumers wire to by type.
- Reaktor Actor Model: ActorNode as a graph node with a serialized mailbox, exclusive state and port wiring, PersistentActorNode for durable state machines, and what Akka and Erlang/OTP teach about both.
- Reaktor Struct: reaktor-struct: one verified, zero-copy binary layout for memory, FFI calls, mmap storage and the wire across C++23, Kotlin Multiplatform, TypeScript, Static Hermes, Python and C#. Replaces deprecated reaktor-flexbuffer.
- Unified FFI and RPC: Design for graph-owned Service calls across Kotlin, C++ and TypeScript: shared RPC sessions, native ownership, compatibility, authority, cancellation, streams and a staged implementation plan.
- FlexBuffer (Deprecated): Runtime-first guide to reaktor-flexbuffer: every retained hot-path optimization, platform behavior, benchmark result, FFI implication, product use case, tradeoff, safety rule, and adoption path.