Documentation

A new programming model for backends. One law. Eight elements. One contract.

Welcome to the OKEngine handbook. Keep the model small; let the backend grow without growing the mental model.

The Law

Every backend behavior is a Flow: on(Trigger) → Effects. One species; triggers are typed values.

on(http.post(), createBooking); // path + name from the file tree
on(expireStaleClock, expireStale);
on(orderPlaced, sendReceipt);

01 Understand

Master the mental model before exploring features:

02 Elements

Deep primitives and execution law:

03 Extend

Connect to infrastructure and extend the model:

04 Client

Call your Flows from a browser, CLI, or another service — typed, zero separate codegen:

On this page