Durable & Deterministic Workflow Engine
Obelisk
A deterministic workflow engine built on the WASM Component Model.
[!WARNING] Pre-release: Expect changes in CLI, gRPC, WIT, and database schema.
The Stargazers app features:
Obelisk fly.io deployment tool features:
obelisk command.curl -L --tlsv1.2 -sSf https://raw.githubusercontent.com/obeli-sk/obelisk/main/download.sh | bashOr use cargo-binstall:
cargo binstall obelisk…Requires protoc.
cargo install --locked obeliskUsing Nix:
nix run github:obeli-sk/obelisk/latestFor more options see Installation.
The server defaults to a 1 MiB compact JSON-encoded limit for each newly
persisted execution parameter array, result, stub result, persisted history
value, or failure diagnostic. Self-hosted operators can set a positive value in
server.toml:
[limits]
max_persisted_value_size_bytes = 1048576Each top-level execution snapshots the effective limit. Child and scheduled
executions inherit it, so a configuration change applies only to new execution
trees and cannot change replay behavior. Existing databases require no schema
migration: executions created by older releases retain their legacy unlimited
contract. max_transport_message_size_bytes (also under [limits], defaulting to
512 MiB) is a separate, larger transport safeguard bounding a single gRPC message
or REST request body, and does not relax the persisted-value limit.
Check out the Getting Started Guide for details.
obelisk server run --deployment deployment-testing-wasm-oci.tomlSee deployment-testing-vm.toml for the runnable
example, setup commands, and architecture notes.
docker run -it --rm \
--name obelisk-postgres \
-e POSTGRES_PASSWORD=postgres \
-p 5432:5432 \
postgres:18
# export env vars if .envrc is not used
export POSTGRES_HOST="localhost"
export POSTGRES_USER="postgres"
export POSTGRES_PASSWORD="postgres"
export POSTGRES_DATABASE="obelisk"
obelisk server run --server-config server-postgres.toml --deployment deployment-testing-wasm-oci.tomlobelisk component list
# Call fibonacci(10) activity from the workflow 500 times in series.
obelisk execution submit testing:fibo-workflow/workflow.fiboa '[10, 500]' --followVisit localhost:8080 to manage components, functions and execution history.
This project has a roadmap and features are added in a certain order. Discuss features via GitHub Discussions before contributing. A Contributor License Agreement is required.
Set up dependencies via Nix:
cp .envrc-example .envrc
$EDITOR .envrc
direnv allow
# If direnv is not available use `nix develop`Or manually install dependencies (see dev-deps.txt).
Run the program:
cargo run --releaseSee DEVELOPMENT.md for repository structure, build instructions, testing, code patterns, and contribution conventions.
Postgres must be running. See .envrc-example for how to set up the environment variables.
Quick start:
cp .envrc-example .envrc && $EDITOR .envrc && direnv allow
cargo run --release
./scripts/test.shThis project (all files and folders except as noted below) is licensed under the GNU Affero General Public License version 3.
The following subfolders are licensed under the MIT License:
wit/ – see LICENSE-MITproto/ – see LICENSE-MITThe runtime includes functionality that may generate new "extension" WIT files. These generated files are typically based on a combination of user-provided WIT files and the base WIT definitions found in the MIT-licensed wit/ directory.
Users are free to use, modify, and distribute these generated WIT files under the terms of the MIT License, for example, to allow other WASM components to interact via these extended interfaces.
No open issues yet, or sync has not completed.