Tell your coding agent what should happen to your events. It writes the flow as plain code that you review in git, and one Rust binary runs it on NATS. The people who know the business adjust its tables and thresholds in a panel, without touching the code.
git clone --depth 1 https://github.com/cpoder/vejas && cd vejas
docker compose up -d # NATS and the last release, about 50 MB to pull
claude mcp add --transport http vejas http://localhost:8686/mcp # or any MCP client
Then say to your agent:
Take the orders that arrive on
vx.demo.orders. Each order carriestotal_centsandcustomer.email. Flag every order above 1,000 euros and post it to Slack with the customer's email.
It reads the language reference over MCP, writes the flow, tests it on a sample and deploys it. Send it an order:
curl -X POST localhost:8787/ingest/demo.orders \
-d '{"total_cents":125000,"customer":{"email":"a@b.co"}}'
The panel at http://localhost:8686 lists the order under Activity. Open it to
see the Slack message the flow would send, as a dry run until you set
SLACK_WEBHOOK_URL in docker-compose.yml. The threshold is in the panel too,
where a sales lead can change it after checking the change on the last orders.
The cookbook shows what the agent wrote, and thirteen more
prompts, ten of them replayed by a real agent.
Status: young. Vejas is the evidence-collection engine of Reglyze (NIS2 compliance) and has run in its production since August 2026: Microsoft 365 and EDR (SentinelOne, CrowdStrike) collectors, mapped to the national laws of Italy, Portugal, Croatia and Poland. No customer has connected a source yet. Interfaces still move fast. Start here: the documentation · COOKBOOK · VISION · ARCHITECTURE · ROADMAP · ADRs. The bet, long-form: MANIFESTO.md.
| On one Linux x86_64 machine | |
|---|---|
| From spawn to a flow running | 10.9 ms |
| Memory under load | 10 MB |
| Binary, v0.8.0 | 12.2 MB |
The method and the other numbers are in bench/README.md.
The demo, 45 seconds — a real SAP NetWeaver and a real Salesforce org, bridged both ways by two readable flows; a domain expert corrects a business rule on screen, the change is shadow-replayed on the real events, promoted, and the next IDoc lives the corrected rule. The recording is also a green end-to-end test (the script) — the video cannot lie. Full video (mp4).
Below: a flow an agent wrote in VejasScript, as the panel reads it, top to bottom: what it receives, what it computes with the sample event, what it checks, what it sends. The yellow values are the business rules. A domain expert changes one in place, sees on the last real events what would change, and makes it live without touching code:
An integration platform with no builder UI. Flows are VejasScript — plain, readable code written by your coding agent, reviewed in git, and run natively by a single Rust binary on NATS. Humans keep two screens: monitoring for operators, and a business panel where non-technical experts validate and correct transcoding tables and thresholds. The agent owns how; the human owns what it means. The whole platform is drivable over MCP. Detection over time — a sequence of events, a window, an absence — is a detect unit: a VPL program run by the Varpulis CEP engine, embedded as a library (ADR-0031).
Vėjas is the old Baltic god of the wind. Wind moves things without anyone drawing the route.
- Runtime — one Rust binary. Runs VejasScript flows in-process (a durable NATS consumer + the interpreter per flow), hot-reloads on edit, serves the panel and the MCP server. No Python, no subprocess. (ADR-0001, ADR-0009)
- Transport — NATS with JetStream, the only infrastructure dependency
(persistence, KV, object store). Two containers, one
docker compose up. (ADR-0002) - Clustering — run N runtimes on the same NATS: flows load-balance and fail over natively (measured: an instance kill -9'd under load, every message still delivered exactly-all), singleton sources take a KV lease (graceful handoff in 2.3 to 2.5 s, crash failover bounded by the TTL), and a clustered instance refuses local-file mutations — a live promote instead publishes a version every instance converges on (measured: 20 ms convergence, lossless mid-burst). (ADR-0020/0021, measured in bench/)
- Language — VejasScript:
sourcein,emitout,invoketo compose services (pipeline-merge composition), transcoding tables and thresholds as editable literals. - Packages — group flows and services, hot-addable; cross-package calls go
through
EXPORTS(private by default) or the bus. (ADR-0003, ADR-0004) - Connectors — a typed Rust driver SDK (
Drivertrait, Source/Sink). Bundled drivers:http-in,timer,http-poll,oauth-poll(a generic OAuth2 REST poller that stands in for much of a SaaS catalog),mqtt-in,mqtt-out,slack-out,http-out, plus the exec bridges (exec-source/exec-sink/exec-stream-source/exec-rpc), which wrap a program in any language over stdio, isolated by process. That is how the SAP connector ships: native Rust over the officiallibsapnwrfcC library — BAPI/RFC calls, IDocs in and out over tRFC, no JVM (ADR-0014) — and the Salesforce connector (OAuth2 + Bulk API 2.0, streaming). Brokers that need their own transactional loop are standalone binaries (connectors/amqp,connectors/mq). An instance is a declarative.vjsmanifest, hot-addable, and an agent can write one from a prompt. The subject convention stays the whole interface, so an out-of-process connector is first-class. (ADR-0007, ADR-0011, ADR-0014) - Secrets —
secret("path/key")resolves at run time from a Vault (HashiCorp KV v2), a local file, or an env backend for dev. A secret is never a literal, so it never lands in git, the panel, or the business surface, and every path that shows a run (preview, replay, time-travel, canary) gets a placeholder instead of the value. (ADR-0008) - UI — no builder. Monitoring (pipeline graph, statuses, a live feed of the last processed events) + a business panel where experts review and correct the business surface (rendered from literals in the code). A correction is shadow-replayed on the flow's last real events — before/after diff, then promote or discard. You never click to draw a flow. (ADR-0005)
- Versioning — a candidate version of a flow replays yesterday's real traffic (time-travel) or shadow-follows live traffic (canary), diffed side by side per event; unproven code never emits for real. Promote publishes the version cluster-wide (measured: 20 ms, lossless), audited, rollback included. (ADR-0021)
- Dead letters — a message that keeps failing is parked with its error and
the flow version that killed it, never dropped. Replay is explicit, and each
dead letter is announced on
vx.dlq.events, so a flow can wake someone. (ADR-0015) - Governed mode — with
VEJAS_REQUIRE_APPROVAL=1, agents propose and a human approves. A change to a flow, a connector or a secret, through MCP or HTTP, must be proposed; the MCP tools that reach a system are refused; and approval takes a token the agent never holds. The agent's own credential opens the MCP endpoint and nothing else. (ADR-0024, ADR-0045) - MCP & API — the runtime is its own MCP server; a flow that declares
tool "…"becomes a first-class MCP tool, and one that declaresapi "VERB /path"becomes a synchronous HTTP endpoint with an auto-generated OpenAPI document. The platform grows its own tool and API surface as you write flows. (ADR-0006, docs/MCP.md)
docker compose up runs the last release's image, ghcr.io/cpoder/vejas-runtime;
docker compose up --build builds this checkout instead. A Linux x86_64 binary is
on Releases.
Develop and test:
cargo test --manifest-path core/Cargo.toml # language unit tests
cargo test --manifest-path sdk/Cargo.toml # the connector crate (bus, trace, sink loop)
core/target/release/vejas-runtime vjs-test tests/vjs # golden end-to-end cases
Security defaults: the panel/MCP port (8686) stays on this machine, because that
surface can write flows and run commands (exec connectors). The binary listens on
127.0.0.1:8686 unless VEJAS_HTTP_ADDR says otherwise, and the bundled compose
publishes the port on localhost only. The image binds 0.0.0.0 inside the
container, so a bare docker run -p 8686:8686 exposes it: set VEJAS_TOKEN first,
and the runtime warns at boot if you did not. With VEJAS_TOKEN set, every write
(POST, /mcp included) requires Authorization: Bearer <token>. An agent can hold
its own credential, VEJAS_AGENT_TOKEN, which opens /mcp and nothing else, and
needs VEJAS_TOKEN set too. Outside governed mode it does on /mcp what
VEJAS_TOKEN does: governed mode is what confines it. The webhook port (8787) only
publishes events onto the bus.
Apache-2.0. A platform that argues against proprietary formats has to start with itself.


