@revoengine/sdk exposes the modern RevoEngine runtime to Node.js 22 or newer. It provides:
apifor platform-backed runtime operations;storagefor folders, objects, upload sessions, and retrieval;agentsfor Agent and related AI operations permitted by the caller;utilsfor local encoding, hashing, identifiers, and other pure helpers;execute(code, options)for transient low-code execution with activelib.Category.Name.ElementKey.Xexports;batchfor configuring automatic runtime-call batching.
Choose a runtime mode
Revo-hosted
Custom Node.js receives an execution-bound
runtime from RevoEngine. No customer API key is exposed to component code.Standalone
A backend Node.js process constructs
RevoClient with an instance-bound API key.
The exported
RevoApi and RevoStandaloneApi types preserve this distinction.
Shared function pattern
Write reusable functions against the smallest runtime subset they need:RevoClient or the runtime injected into hosted init(runtime).
Contract behavior
Remote calls use a versioned, generated contract and correlate every result by call ID. Deprecated low-code aliases and callback-based transaction methods are intentionally excluded. The SDK validates protocol and contract revisions and surfaces incompatible responses as protocol errors.Runtime method availability does not grant permission. Authentication, roles, instance boundaries, execution context, and platform policy are still enforced by RevoEngine.

