Reaktor documentation
Reaktor is a Kotlin Multiplatform framework that builds a full-stack application as one typed graph of screens, services, actors and data. The docs follow the Reaktor+ repository: the framework in twelve planes, from Origin at the base to Agentic at the top, then Dependeasy, Hangar and the papers. Every page is listed below. Press / or ⌘K to jump to any page or heading, and ? for the other shortcuts.
Start here#
3What Reaktor is, how the Reaktor+ repository is laid out, how to contribute, and how these docs are written.
- Reaktor framework overviewWhat Reaktor is and how its parts fit: an application as one typed graph, the modules you build it from, a worked BestBuds example, and which parts ship today.
- Contributing to ReaktorWhere the code lives, how to set up and build, the rules every module follows, and how to add or change a page on this site.
- Writing docsHow a page declares its place in the navigation, its named sections and its links to other pages, and how the site builds every index from those declarations.
Reaktor#
56The framework, in twelve planes from the base up. Origin uses no other plane, and each plane after it may use only planes listed before it. Every plane opens with a page that lists its modules.
Origin#
Runtime types, the graph, actors, services, I/O, binary data and calls between languages. Uses no other plane.
- Origin planeOrigin 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. It uses no other plane.
- CoreThe base layer every module imports: feature slots for platform-specific code, resource handles, platform adapters, and shared time, logging and serialization helpers.
- GraphNodes, typed ports and graphs: how autoWire() and wire() choose a provider for each input, how graphs nest, how Graph.shape() turns the running structure into data, and how Hangar edits it, with playgrounds to try each part.
- Reaktor ServiceThe reaktor-service contract layer and its graph integration as built: declaring, serving and calling a service, how inputs travel, failures and outcomes, call context, interceptors, links and adapters, contract nodes, relays, whole-tree wiring and navigation exits, with a playground for routes and retries, and what is left.
- Reaktor Actor ModelActors as ordinary graph nodes with one mailbox, private state and typed messages, plus PersistentActorNode for durable state machines on Workers. The page maps supervision, back-pressure, state machines and sharding from Akka and Erlang/OTP onto them. BestBuds chat runs on them in production.
- Reaktor StructDeveloper guide to reaktor-struct: declaring @Struct models, automatic @JvmRecord synthesis and KSP2 polyglot codegen, the Rev 4 block layout and Str16 strings, dual-core C++23 + KMM bit-parity, schema evolution, RS_DELTA sparse patching, striped-seqlock shared blocks, hardware benchmarks and migration from FlexBuffers.
- Unified FFI and RPCThe unified FFI/RPC proposal: existing mobile JSON interop, V2 graph bindings, the shared session engine, native ABI and delivery gates.
- FlexBuffer (Deprecated)Reaktor's binary serialization: the encoding tiers, measured speed on every platform, how to adopt it, and the known issues.
Data#
Storage and queries for graph nodes, and the contracts for database providers. Uses Origin.
- Data planeData gives graph nodes a way to store and query information. It provides persistence adapters and shared contracts for database providers. It may use Origin.
- Data layerEverything about data in one page: object storage and its change journal on every target, browser SQLite, the tenant guard on graph queries and snapshot transfer as they are today, then the Tidemark design for the data graph, stores, queries, consistency, sync, delivery, lifecycle and portability, with a playground for the tenant guard.
- CRDTsConflict-free replicated data types let several replicas accept writes offline and merge without conflicts. The page explains how they converge, when to choose one over an actor or a transaction, and the design for replica actors, delta sync and a Durable Object relay. No CRDT code exists in Reaktor yet.
Surface#
UI components and their behavior, the Compose implementation, the UI kit and haptics, and the Surface textbook. Uses Origin.
- Surface planeSurface defines reusable UI components and their behavior, including how they handle input and expose accessibility information. It also contains the Compose implementation, the UI kit, and platform haptic feedback. It may use Origin.
- Reaktor SurfaceThe Surface textbook: describing UI once and rendering it with Compose and React, adaptive layout, motion, performance and application patterns.
Textbook#
The Surface textbook, from its foundations to the desktop, with the works it cites.
- FoundationsChapters 1–6: interface challenges, concepts, architecture, platforms, and a Send action.
- Contracts and interactionChapters 7–10: contracts, behavior, events, interaction, and input.
- Design and ownershipChapters 11–14: atomic design, state ownership, themes, and adaptive layout.
- Renderers and interopChapters 15–17: Compose, React, and renderer boundaries.
- Motion and materialsChapters 18–20: animation, tactile response, and material effects.
- Performance and assetsChapters 21–23: scheduling, memory, images, and delivery.
- Dynamic UI and verificationChapters 24–26: graph updates, specialized interfaces, and verification.
- Application patternsChapters 27–30: BestBuds, workbenches, media, and communication.
- Application extensionsChapters 31–33: commerce, creative software, and accessibility.
- DesktopChapters 35–37: focus, keys, overlays, menus, commands, density and cost, then collections, panes, tab sets, notices and islands on the desktop.
- ReferencesSources and further reading for the Surface textbook.
Machines#
The computers and devices that run Reaktor work. Uses Origin.
- Machines planeMachines manages the computers and devices that run Reaktor workloads. It measures capacity, decides when builds can run, and provides device controls for inspection and testing. It may use Origin.
- CapabilitiesCapabilities describe what machines, runtimes, devices and cloud services can do, as one graph of nested capability nodes whose ports offer or need things and say whether they are available. The design builds it on reaktor-graph, so wiring inside an app and choosing a machine for a task use the same matching. None of it is built yet.
- ClusterReaktor Cluster would run builds, checks and coding agents on many machines for one workspace. Work is placed by capability, every run holds a lease with a generation number that a stale machine cannot overwrite, runs use exact source snapshots, and each plan item in Hangar follows its work to whichever machine runs it. It replaces the two-Mac remote-dev router step by step. None of it is built yet.
Identity#
Sign-in, access rules, secrets, cryptography, conversation encryption and app unlock. Uses Origin, Data and Surface.
- Identity planeIdentity establishes who is calling and what they can access. It also provides the APIs for secrets, cryptography, conversation encryption, and device-backed app unlock. It may use Origin, Data and Surface.
- AuthThe high-level design of reaktor-auth: who is who in heimdall, signing in and the tokens it returns, how one call is decided, the relationship model over the code, roles as code, tenants and tenant switching, Hangar's Auth pane, what is built and open, and where each piece lives, with playgrounds for the token check and the relationship model.
- Auth referenceHow sign-in, sessions, tokens, service accounts and permission checks work across apps, Workers and servers, including roles declared as code, the relationship model over the code graph, and OAuth with Google and Apple.
- SecretsWhere secrets live, how Workers, servers and apps receive them, and how rotation works. The inventory is not published.
- End-to-end encryptionHow devices will use MLS to agree chat membership and seal content, with an explicit account of what works today and what remains unimplemented.
Build#
Source tools, compile-time code generation and Apple framework export. Uses Origin and Machines.
Work#
Durable workflows, plans and task graphs, and approval to run operations. Uses Origin, Data and Identity.
- Work planeWork defines durable workflows, plans, and task graphs. It also describes what operations can do and how callers request approval to run them. It may use Origin, Data and Identity.
- WorkDurable workflows on Android, iOS, the browser, Cloudflare Workers, JVM servers and the Hangar host. Steps record their results, retry when that is safe, undo on failure and resume after the process dies.
- Reaktor work graphHow Reaktor builds the work graph engine: the release measurements that led to the design, Hangar's plans and Manna's records in its terms, Reaktor V1 as the first subject space, the move to a typed graph of the system, the build order W0 to W5, hypotheses with baselines, and a market for work in Manna. Only Hangar's plans and Manna's records exist today.
- One graph model and a concurrent engineA revision of 12 November 2026 to the work graph design: one graph model for coordination and for typed models of the subject, and a concurrent store with snapshots, recorded read sets, a region index, an escrow ledger, two-phase admission and a liveness wheel, with its bounds, the review that corrected its reference code, and two tested implementations printed in the paper: the whole engine in Kotlin and the concurrent graph in C++23. Neither runs in Reaktor yet, and neither has been timed.
Cloud#
An inventory of cloud resources, clients for cloud services, and Kotlin bindings for Cloudflare Workers. Uses Origin, Data, Identity, Work, Build and Machines.
Views#
Views for graphs, boards and code, and the canvas they share. Uses Origin, Surface, Work and Build.
Observability#
Tracing, analytics, performance measurement, live inspection and Shadow. Uses Origin, Data, Work and Machines.
- Observability planeObservability records what an application is doing and how it performs. It provides shared tools for tracing, analytics, performance measurement, and live inspection. It may use Origin, Data, Work and Machines.
- Observe and diagnoseSignals and stores, the incident checklist, OpenTelemetry as the one telemetry model with reaktor.* attributes, instrumentation compiled from the graph, cardinality and payload rules, product analytics, Crashlytics with release symbols and graph keys, instance measures, leaks, JVM profiling, load tests and budgets.
- ShadowShadow's model: sanitized copies of production published as bases, isolated workspaces forked from them, runs that fix every input, rules for which effects stay real, and checks that compare a candidate with its baseline.
- Capture and replayThe build design for Reaktor's own record-and-replay layer across clients, Workers, Durable Objects, queues, JVM services and data stores.
Platform#
Web views, media, location, health, notifications and Google services. Uses Origin, Data, Surface, Identity, Work and Cloud.
- Platform planePlatform connects applications to device, browser, and external service capabilities. Its adapters cover web views, media, location, health, notifications, and Google services. It may use Origin, Data, Surface, Identity, Work and Cloud.
- WebViewSystem web views on Android, iOS, desktop and the browser, the bridge between page scripts and the app graph, and how it is secured.
- NotificationsPush notifications from Cloudflare: device registration, delivery through FCM, receipts, routing into the app graph, and the operations view.
Agentic#
How people and coding agents work on one workspace, and the modules that run the agents. Uses Origin, Data, Identity, Work, Build, Machines, Cloud and Observability.
- Agentic planeAgentic connects coding assistants to Reaktor conversations and tools. Conductor runs assistant sessions and manages their context, while the tool adapters expose graph-backed operations. It may use Origin, Data, Identity, Work, Build, Machines, Cloud and Observability.
- The agentic planeThe map of Reaktor's agentic plane: the work item and the three families of primitives around it, how one piece of work moves through them, how Claude Code, Codex and Gemini attach, which parts are in daily use, which are built but carry little work, and which are designs.
- Agent guideThe working rules for Claude Code, Codex and people on Reaktor, BestBuds and Manna: look code up through the Atlas, meet the design bar with the fewest new degrees of freedom, change code through plans, verify with the affected checks, leave other people's work alone, deploy through plans, and keep the docs plain and current.
Primitives#
What agents work with: memory, messaging and coordination, and evidence and acceptance.
- Memory hierarchy and primitivesThe five levels of memory in the agentic plane and the six operations that move knowledge between them. Says what runs today (Atlas answers that carry linked facts, recall at session start, briefs for task graphs, the fact store, imports and exports of each vendor's own memory, work logs), what was measured, and the design: a working frame that the door builds when an agent takes work, a record that the host writes, freshness by linked declaration, and long-term knowledge that grows only from accepted work.
- Messaging and coordination primitivesThe primitives of coordination and messaging in the agentic plane, by the question each answers. Who holds what: plans, items, revisions, leases, claims, plan.next, seats and limits. What each holder may change: regions, write admission and agent.radar. How a fact or a request reaches the one who must act: message.send, receipts, plan notes, the inbox and its hooks, steering, presence, waking and keep-working. Then the measured faults and the designed changes, mapped to the work graph's build steps.
- Evidence and acceptance primitivesThe primitives of evidence and acceptance: the candidate as the exact change, check_run with receipts and reduced findings, review lenses and panels, the finish gate, acceptance and landing by a person, completion reports on plan items, and the records (work logs, scorecards, the session ledger, the call log, the bench). Then the measured gap between task graphs and work from plans, and the designed changes.
Agents#
Agents and their task graphs, teams, tiers and review, and how each vendor's agents run.
- Agents and task graphsThe agents and how they execute: harnesses, four-part names, profiles, bindings, seats, the team file with its topologies, variants and member chart, where the shared state lives, Single, Compare and Council conversations, task graphs, worktrees and landing, the board, and the design rules for what a turn should cost.
- Teams, tiers and reviewStructures as topologies and variants, the model catalog and its tiers, the tiered loop of leader, scout, worker and reviewer, escalation ladders, review lenses and the finish gate, guidelines that cheaper models follow, and how the bench and the session ledger measure the result.
- Running agentsJoining the plane from Claude Code, Codex and Gemini in the Antigravity app; Codex app threads with codex queue and the wake link; Gemini conversations started and steered through the app; a lead, its lanes and the driver that wakes it; task.start and workspace submit; agent.steer; peer.exchange; agent.radar, checks and source scopes; then the failures seen so far on plans, messages, presence, the kernel door and running agents, each with its cause and fix.
Dependeasy#
2The build layer in dependeasy/: modules, apps, checks and deliveries declared in Kotlin, one pinned toolchain, one exported build model, and deploys that are planned before they are applied.
- DependeasyHow Reaktor, BestBuds and Manna declare their builds: the plugin bundles, the library and workspace declarations, artifacts that carry their producers, the pinned toolchain, reproducible installs, package scripts as graph nodes, local CI and releases, and the rules for changing a build.
- DeploymentWhat runs where, the delivery block that declares releases, migrations and deploys, the pr gate, plan then apply, receipts and rollback, the JVM server, Fastlane and Grafana deploys, and the graph deploy design.
Hangar#
8The desktop app in hangar/: one window over a running system, the kernel it shares with the reaktor CLI and the MCP server, the CLI, and one pane for each view.
- HangarReaktor's desktop app: how the window works, the thirteen panes and their shortcuts, how a screen links to its service, worker and stores across panes, and the agent and AI panes.
- KernelHow Hangar, the CLI and the MCP server share one headless workspace kernel; where tooling, kernel and host code belong; one operation path; the reaktor MCP server and its six tools, operation.catalog, the effect ladder, result types, seat policies and superadmin, approvals, the call log, long calls and owner upgrades; native JVM and Worker execution of infrastructure reads.
- Reaktor workspace CLIThe reaktor command-line tool: build inspection, supervised runs, run records and shell completion.
Panes#
From a running app's graph to its data, the cloud, real phones and the agents.
- Graph paneThe pane that draws a running app's graph in the style of Unreal Blueprints, with live calls, watched values, traces and wiring findings.
- Data paneHow the Data pane reads production databases safely: provider views, access profiles and recorded queries.
- Cloud paneThe pane that maps everything a product runs on, from hostname to machine, across Cloudflare, Google Cloud and Kubernetes, with drift and findings.
- DevToolsThe pane that mirrors real Android and iOS phones side by side: UI tree, network capture, logs, a replayable timeline and Lighthouse-style audits.
- The Agent paneThe Agent pane's three subpanes: Work (threads, DAG, Kanban, Log, attaching agents), Agents (Models with the ledger, Configs, the agent directory with profile pages, Structures and Harnesses) and MCP (Access, Atlas, Code graph, Sessions, Calls, Servers, Tools, Operations).
Papers#
35The public papers, one folder each in papers/: the work graph, and Reaktor V2, a design study that will not be built as written.
Reaktor V2#
The design study of October 2026, which will not be built as written: the overview, the abstract, the chapters, the references and the appendices.
- Reaktor V2 (Deprecated)The Reaktor Graph design study of October 2026: one typed graph for a whole multi-runtime system, its language, kernel, protocol and patches. It will not be built as written.
- Abstract and status of claimsWhat the paper proposes and contributes, its keywords, and which of its claims are built, measured or still to be tested.
Chapters#
- 1. IntroductionWhy an application that spans phones, browsers, edge Workers, servers and databases needs one typed model of the whole system.
- 2. The current runtime and what it cannot expressHow the graph in today's Reaktor works, and what it cannot express.
- 3. PreliminariesThe graph theory, category theory and engineering practice the design builds on, and the notation the paper uses.
- 4. Precedents: what game engines already knowWhat game engines, Unreal Engine's Blueprints above all, already know about typed graphs over a native core, and where the analogy stops.
- 5. The Reaktor GraphThe formal definition of a Reaktor graph: nodes, owned ports, role-labelled hyperedges and one containment forest.
- 6. The type systemThe standard signature of fourteen base kinds, the component profiles and the rules that check a graph.
- 7. Composition and behaviourOpen graphs, composing them as string diagrams, and the operational semantics with its TLA+ projection.
- 8. Traversals: one computational primitiveTraversals, the one computational primitive behind dependency injection, navigation, rendering and capability resolution.
- 9. Change: patches, transactions, diffs and code pushChanging a graph: typed double-pushout patches, transactions, graph diffs and pushing code to a running system.
- 10. RGL: the Reaktor Graph LanguageRGL, the Reaktor Graph Language embedded in Kotlin: definitions, behaviour, queries and changes in one syntax.
- 11. The kernel: a data-oriented realizationThe kernel as a data-oriented store: one table per sort, foreign-key columns and sparse facets.
- 12. RGP: the Reaktor Graph ProtocolRGP (rgp/1), the protocol through which the graph's holders exchange facts and changes.
- 13. A reference realizationThe first realization the design commits to, on Cloudflare, Google Cloud and Postgres, the capabilities any host must offer, and four further stacks.
- 14. Reaktor: modules and tools around the graphHow Reaktor's modules and tools map onto the standard signature, and how far each one is built.
- 15. Assurance inside the graphClaims, evidence and verifiers as elements of the graph, with a status vector instead of a single colour.
- 16. Problems of multi-runtime systemsThe problems that systems spanning many runtimes add to the classic fallacies of distributed computing.
- 17. Systems in scopeEleven classes of multi-runtime systems, what makes each one hard, and the mechanisms that address it.
- 18. Programming at the scale of systemsWhy agents, many runtimes and limited human attention call for programming whole systems at once.
- 19. Tools, agents and teams on one graphHow compilers, test and analysis tools, agents and teams can work on one graph instead of rebuilding fragments of it.
- 20. EvaluationWhat can be measured before implementation: the type system applied to the design corpus, bounded protocol checks, and the hypotheses to test.
- 21. Related workBigraphs, port graphs, graph transformation and the other work the design builds on or departs from.
- 22. Implementation planThe build order: identity and the kernel first, then services moved over one by one, with a chat feature as the pilot.
- 23. Limitations and open problemsWhere the design falls short: opaque code, liveness and performance, an evolving signature and other open problems.
- 24. ConclusionThe argument in brief: a typed, layered port hypergraph as the object model for applications that span many runtimes.
Appendices#
- Appendix A. ProofsProofs of the propositions and theorems on composition, patches and traversals.
- Appendix B. From the 2026 catalogue to the standard signatureHow the 40 node kinds, 24 port profiles and 36 hyperedge kinds of the 2026 catalogue map onto the standard signature.
- Appendix C. The bounded models and the corpus scriptThe explicit-state models behind the protocol checks, and the script that applies the type system to the design corpus.
- Appendix D. Study planFive reading paths through the background, a map of the concepts, and what to read for each one.
- Appendix E. PrimersThe background of the preliminaries again, with worked examples.
- Appendix F. GlossaryThe paper's terms and the section that defines each one.
- Appendix G. Roadmaps for learning and buildingTwo roadmaps, one for learning what the design draws on and one for building it, both drawn as Reaktor graphs.