Assay
One static binary that replaces Temporal + Kratos + Hydra + Keto. Plus a full Lua 5.5 runtime
with 66 modules for Kubernetes, monitoring, secrets, and AI agents.

What is Assay?
Two binaries, one project. FROM scratch-shippable, PG18 + SQLite first-class. Sizes today: assay
~12 MB, assay-engine ~19 MB (the engine grew with the auth + IdP work in v0.2.0).
assay — Lua 5.5 runtime with 63 stdlib modules (Kubernetes, Prometheus, Vault, GitHub,
Gmail, OpenClaw, Tailscale, …). Drop-in replacement for 50-250 MB Python/Node/kubectl scripting
containers.
assay-engine — durable workflow engine (Temporal-replacement: deterministic-replay
activities, signals, timers, child workflows, schedules, search attributes) + full IdP
(Kratos + Hydra + Keto replacement: OIDC client + provider, passkey, JWT/JWKS rotation, biscuit
capability tokens, Argon2 password, Zanzibar ReBAC, session management, admin HTTP API, dashboard
panes for everything). Default builds include runtime-gated S3 history archival.
# Lua runtime
assay script.lua # Run Lua with all builtins
assay checks.yaml # Structured checks with retry/backoff/JSON output
assay exec -e 'log.info("hello")' # Inline evaluation
assay context "grafana" # LLM-ready module docs
assay modules # List all 65 modules
assay modules --json # Same list as JSON, with full per-module metadata
# Workflow + auth + dashboard server (one process)
assay-engine serve --config engine.toml
# workflow API → /api/v1/workflows + dashboard at /workflow/
# auth/IdP API → /auth/* (OIDC discovery at /.well-known/openid-configuration)
# admin SPA → /auth/console
Scripts that call http.serve() become web services. Scripts that call http.get() and exit are
jobs. The runtime talks to a deployed assay-engine over HTTP via the assay.workflow and
assay.auth stdlib modules — same binary, same builtins.
Replaces what?
| Component | Replaces | Notes |
|---|
assay-engine workflow | Temporal | Same define/execute_activity/wait_for_signal API |
assay-engine auth (session) | Ory Kratos (sessions) | Cookie + CSRF + Argon2id |
assay-engine auth (passkey) | Ory Kratos (WebAuthn) | webauthn-rs-backed register + auth ceremonies |
assay-engine auth (OIDC OP) | Ory Hydra | RFC 7009 revoke, RFC 7662 introspect, JWKS rotation |
assay-engine auth Zanzibar | Ory Keto / SpiceDB | Recursive-CTE walk on PG18 + SQLite |
assay-engine auth biscuit | (Ory has nothing) | Datalog-attenuable capability tokens — built-in |
assay-engine dashboard | Ory Console + Temporal UI | Single SPA, auth panes appear when auth is on |
assay runtime | Python / Node + kubectl | 12 MB, 5 ms cold start, 63 stdlib modules |
Two binaries, two use cases
| Use case | Binary | Install |
|---|
| Scripting / automation | assay | cargo install assay-lua or download release |
| Workflow + auth + IdP server | assay-engine | cargo install assay-engine or Docker |
assay runs Lua scripts with the full 45-module stdlib; for workflows/auth it talks to a deployed
assay-engine over HTTP. assay-engine is a standalone HTTP server with workflow + auth +
dashboard, pluggable across PG18 (default) and SQLite — both backends compiled in, runtime-selected
via config.
See docs/migration-to-0.2.0.md for the upgrade path from v0.1.x.
Why Assay?