Skip to content
6 min readUpdated 25 Nov 2026

Contributing to Reaktor

This page covers where the code lives, how to build it, the rules every module follows, and how to change these docs. Read the Framework overview first for the terms: graph, node, port and service.

1. The repository#

Reaktor and the products built on it live in one repository, Reaktor+. Its root Gradle build includes the framework and each product's build, so a framework change shows up in every product at once, without publishing anything. Open the root folder as one project in IntelliJ IDEA.

FolderWhat it holdsRead
reaktor/The framework: every reaktor-* module and compose-flow, in twelve plane foldersReaktor planes
dependeasy/The build layer every build applies, in its own Gradle buildDependeasy
hangar/The desktop app (desktop, core and host) and the reaktor CLI (cli)Hangar
services/The servers the products share: the identity server reaktorServer, this documentation site reaktorWeb, the telemetry server and the analytics serverDeployment
papers/Every paper, one folder eachWork graph
bestbuds/, manna/ and the other productsEach product's apps, its own services and tests, its configuration and its records
config/, designs/, infra/, plans/Configuration shared by the products, design files, shared infrastructure such as the k3s cluster, and plans

2. The module map#

reaktor is one Gradle build. Its modules sit in twelve planes, one folder each: reaktor/plane-origin/, reaktor/plane-data/ and so on. A plane may use only the planes before it, from Origin, which uses no other plane, to Agentic, and dependeasy checks every dependency against that rule. Reaktor planes lists the planes in order, and each plane's Modules page lists its modules, what each one does and which planes it may use.

Every plane folder has a README.md, and most modules have one that gives their stability level and main API.

3. Set up and build#

You need Java 25, the Android SDK, Xcode with iOS platform support, CMake and Ninja. Web builds use Node 24. Shared versions are pinned in dependeasy/src/main/kotlin/dev/shibasis/dependeasy/toolchain/ToolchainVersions.kt. Put the Android SDK location in an untracked local.properties in the reaktor root:

sdk.dir=/Users/<you>/Library/Android/sdk

Then run the checks you need. Native sources are fetched only when a selected task needs them, so a JVM check stays fast:

./gradlew :reaktor-core:jvmTest :reaktor-auth-core:jvmTest
./gradlew -p dependeasy test
./gradlew :reaktor-ffi:iphoneosCMake

Because the build is composite, a change to reaktor-ui, reaktor-core or the graph modules also rebuilds the products. Run a consumer's tests before you call a change done:

(cd ../hangar && ./gradlew :engine:jvmTest)

reaktor/docs/SETUP.md has the full list, including Apple framework exports and device builds.

4. The two rules#

Most review comments on a Reaktor change come down to one of these.

Modules compose through the graph#

Build capabilities around the graph's identities, typed ports, ownership, lifecycle, queries and commands. A module does not need a separate graph-agnostic API. Add a plain facade only when a real consumer needs one.

Keep definitions apart from running instances and from presentation. A headless graph host must not pull in Compose or Hangar code just to run or inspect a system.

Layers do not leak#

compose-flow          generic canvas: viewport, pan, zoom, fit, edges, handles, minimap
  └─ reaktor-blueprint   Reaktor graphs drawn in the Blueprint style: model, layout, views
       └─ app            window chrome, panes and inspectors (Hangar, Manna, BestBuds)

Reaktor graph meaning never goes into compose-flow, and window chrome never goes into reaktor-blueprint. Graph layout belongs in reaktor-blueprint, never in an app.

5. Writing the code#

  • commonMain stays platform-safe. Platform APIs belong in the platform source sets.
  • Use explicit StateFlow backing fields. Never force-unwrap a port with .impl!!.
  • New code has no comments. Names and types carry the meaning, and the reasons go in the commit message.
  • Generated and vendored trees (build/, ts/import/, ts/export/, kotlin-js-store/) are not edited by hand.
  • Visual surfaces read reaktor-ui/machinesignal for colour, spacing, radii and type. No hardcoded hex values or sizes; parity tests fail when a surface drifts from the design file.
  • A performance claim needs a named target, current source and a recorded measurement from the harnesses in reaktor-performance.

6. Working on these docs#

The docs live in services/reaktorWeb/docusaurus and are versioned with the code.

Markdown is the source of truth. Every page declares doc_catalog (where it sits in the navigation, its kind, a one-line summary and when to read it) and reaktor_graph (named sections and typed links to other pages). Public navigation groups are declared in docs/home.md, private ones in docs/private/home.md, and each page sits in the folder of its group, so docs/ reads like the sidebar. Writing docs describes every field.

The sidebars, the home page index, graph.json, outline.json and llms.txt are generated from those declarations. Never edit sidebars.ts, private-sidebars.ts or the blocks between the nav:sections and nav:map markers by hand. After you change a page, regenerate them:

cd services/reaktorWeb/docusaurus
pnpm run nav

The build checks that the generated files match, so a page that is not placed in a group, a stale section anchor or a link to a missing page fails it. Build and test the whole site from services/.

./gradlew :reaktorWeb:reaktorWebBuild
./gradlew :reaktorWeb:reaktorWebDocumentationChecks

A docs change is finished when it is live. Deploy with a plan, then apply it:

./gradlew :workers:deployReaktorWeb -Pdependeasy.deployAction=plan
./gradlew :workers:deployReaktorWeb -x :reaktorWeb:reaktorWebBuild

The site also publishes machine-readable views of the same pages:

EndpointWhat it holds
/docs/llms.txtEvery page with its summary, grouped as in the sidebar.
/docs/outline.jsonEvery page's headings and anchors, for linking straight to a section.
/docs/graph.jsonPage metadata, navigation groups and the typed links between pages.
/docs/corpus/index.jsonEvery public page with its sections, status and links.
/docs/corpus/llms-full.txtThe full text of every public page.

Conventions for the prose:

  • Write plain, complete sentences, and say the answer first.
  • Mark a proposal with doc_status: design, and say in its first paragraph what is built and what is not. A reader must never have to guess.
  • Write what is true now. No dated status notes, revision banners, progress logs or changelogs: history belongs in Git.
  • When a page and the source disagree about what exists, the source is right. Fix the page in the same change.
  • Use an admonition only for a warning a reader must not miss, never for status.
  • When a page is replaced, delete it and fix the links to it. Git keeps the history.

7. Where a change belongs#

You are changingIt goes in
A cross-platform primitive, a feature slot or a resource handlereaktor-core
Graph meaning: nodes, ports, visitors, lifecyclereaktor-graph-port, then reaktor-graph-runtime
Canvas mechanics with no Reaktor meaningcompose-flow
How a graph is drawn or laid outreaktor-blueprint
A new capability (a device, a service, a product feature)the owning reaktor-* module, composed through the graph
Hangar's panes, chrome or inspectorshangar/core
Design tokensreaktor-ui/machinesignal, copied from the design file
A new modulethe plane its purpose belongs to, which must be allowed to use everything the module needs; see Reaktor planes
A framework docservices/reaktorWeb/docusaurus/docs, in the folder of the plane or section of the code it describes (docs/reaktor/plane-<name>/ for a plane), with its catalogue and graph fields

If none of these fits, talk it through before writing code. A change that has no obvious home usually means a boundary is wrong.