Skip to content

Graphrt 0.6.2

Latest

Choose a tag to compare

@BimaPangestu28 BimaPangestu28 released this 24 Nov 11:51
· 61 commits to main since this release
9f1c970

WebAssembly plugins can now send and receive binary HTTP bodies (body_base64, "response_encoding": "base64"). This unblocks the supabase WebAssembly build's upload_object, so graphrt-plugins now ships WebAssembly builds of every supabase agent tool and, on its new declarative rest-kit runtime, of open-meteo, currency-rates, wikipedia and web-search. Those builds start several times faster and use a fraction of the memory of the Node.js plugins (numbers below). One Rust API change for embedders: graphrt-wasm's request and response bodies are now bytes, while plugins and the CLI are unaffected.

Added

  • WebAssembly plugins can send and receive binary HTTP bodies: graphrt::http takes body_base64 and, with "response_encoding": "base64", answers with body_base64 (guest SDK: HttpRequest::body_base64, HttpRequest::response_encoding, HttpResponse::body_base64).
    • Text bodies work as before.
    • Used by the supabase WebAssembly build's upload_object.
  • Measured in graphrt-plugins against the Node.js plugins (Linux aarch64, 4-vCPU VM, mock upstream, min-size musl build):
    • A cold graphrt run of supabase select_rows takes 23.5 instead of 116.6 ms (p50), and serve plus plugin hold 10.2 instead of 129.3 MiB after the runs.
    • open-meteo, currency-rates and web-search run cold in 16.3–18.1 instead of 102.9–106.3 ms (p50, as workflow nodes) and hold 9.3–10.1 instead of 112.2–126.4 MiB.
    • A warm call is 1–3 ms slower than on Node.js (a fresh module instance per call).

Changed

  • graphrt-wasm: HttpRequest::body is Option<Vec<u8>> and HttpResponse::body is Vec<u8>, so an embedder's HttpEgress passes bytes and no longer checks UTF-8 (the host does, for guests that ask for text).

Install

# agent build (run, serve, eval)
curl -fsSL https://github.com/Graphrt/graphrt/releases/download/v0.6.2/install.sh | sh
# gateway build (the same CLI plus `graphrt gateway` and `graphrt deploy`, every provider)
curl -fsSL https://github.com/Graphrt/graphrt/releases/download/v0.6.2/install.sh | sh -s -- --gateway
brew install graphrt/graphrt/graphrt
cargo install graphrt-cli                          # add --features gateway-all for the gateway
docker pull ghcr.io/bimapangestu28/graphrt:0.6.2

The container image of this release was published at ghcr.io/bimapangestu28/graphrt and stays there. Starting with the next release, images are published at ghcr.io/graphrt/graphrt.

  • Assets: graphrt-<target> is the agent build. graphrt-gateway-<target> (features gateway-all,eval,online-eval, with mimalloc) is the gateway build for Linux (static musl, x86_64 and aarch64) and macOS (x86_64 and aarch64). The gateway is Unix-only, so there is no Windows gateway archive.
  • Gateway providers: Kubernetes is measured on a local kind cluster. Cloud Run, ECS Fargate, Lambda, Fly and Azure Container Apps are tested against API fakes (conformance suite). Real cloud verification is pending.
  • Windows (experimental): cross-compiled (MSVC, static C runtime), not yet run on Windows.

Full changelog: CHANGELOG.md · v0.6.1...v0.6.2