Repository navigation
Antaeus v0.5.0
Adds an experimental WebAssembly build of the engine, so JavaScript hosts such
as Cloudflare Workers, browsers, and Node.js can evaluate policies with the
same engine as the CLI, without running it in a container. Remote evaluators
such as the hosted Drex API are called through the host's fetch. The build
ships as antaeus_0.5.0_js_wasm.tar.gz in this release, covered by
SHA256SUMS and build-provenance attestations. Its interface (version 1) may
still change in a minor release before v1.0.0, and its CPU, startup time, and
memory use have not yet been measured on Cloudflare's production runtime. The
CLI, native archives, and container image behave as in v0.4.0.
Install with brew install antaeusio/tap/antaeus (or brew upgrade antaeus),
go install github.com/antaeusio/antaeus/cmd/antaeus@v0.5.0,
docker pull ghcr.io/antaeusio/antaeus:0.5, or an archive from this release.
See docs/webassembly.md for the WebAssembly build.
Added
- Experimental WebAssembly build of the engine for JavaScript hosts such as Cloudflare Workers, browsers, and Node.js:
antaeus_<version>_js_wasm.tar.gzin each release, built withscripts/build-wasm.start()from itsantaeus.mjsreturns JSONvalidateandevaluatecalls (interface version 1) that take credentials and an optional absolute deadline per call and return the same Decisions as the CLI. Each call runs in a fresh engine instance entered only from its own request's context, which keeps Cloudflare Workers from cancelling one request's timers and I/O on behalf of another; concurrent instances are capped, waiting calls are bounded (host.busybeyond 16 calls or 16 MiB) and settle at their own deadline. Remote evaluators use the host'sfetchwithout following redirects and stream response bodies; unexpected host values become provider failures rather than stopping the engine. Seedocs/webassembly.md.