Skip to main content
@revoengine/sdk exposes the modern RevoEngine runtime to Node.js 22 or newer. It provides:
  • api for platform-backed runtime operations;
  • vault for explicit Secret text and connected account credentials;
  • serviceAccount for accounts, management ACL, execution memberships and immutable API-key rotation;
  • storage for folders, objects, upload sessions, and retrieval;
  • transport for Secret-backed SFTP imports, exports, and commands;
  • agents for Agent and related AI operations permitted by the caller;
  • utils for local encoding, hashing, identifiers, and other pure helpers;
  • execute(code, options) for transient low-code execution with active lib.LibraryName.member default exports and lib.LibraryName.ElementKey.member named-element exports; pass readOnly: true to restrict platform writes for that run. A hosted runtime cannot override an inherited restricted mode.
  • batch for configuring automatic runtime-call batching.
Choose an SDK release supported by your target instance and pin it independently from the platform release. Point your runtime client at TEST or PROD to choose the environment; changing that endpoint does not update the installed package. Endpoint Storage directives require a target running RevoEngine 1.9.2 or newer and SDK 4.3 or newer. A newer package cannot add operations that the selected backend does not support.

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.
Both modes expose the same top-level namespaces, but context methods reflect where code runs: The exported RevoApi and RevoStandaloneApi types preserve this distinction.

Shared function pattern

Write reusable functions against the smallest runtime subset they need:
Pass either a RevoClient or the runtime injected into hosted init(runtime).

Contract behavior

The execution mode is immutable. Pass readOnly in sandbox/execute requests; api.enableDebug() and api.disableDebug() are removed. External HTTP remains real in read-only mode. Native service-account mutations use current IAM, management ACL, target rank and delegation checks. Key create/rotate return the usable credential once; metadata reads never recover it. See Service accounts. Platform 1.9.2 targets stable SDK 4.3.0; Platform 1.9.0 uses SDK 4.1.0; platform 1.8.0 uses SDK 4.0.0 for new hosted Components; platform 1.7.1 uses SDK 3.0.0. SDK and platform versions are independent; do not infer compatibility by matching their version numbers. Newly created hosted Components use the pinned SDK version; existing deployed revisions retain their recorded version until redeployed with an updated configuration. Use explicit HTTP requestType: 'storage' / responseType: 'storage' with flat source / target references, and named { scheduleFor } options for Automation scheduling. Live byte/SSE iterators stay inside V8 execution and cannot be returned through SDK calls. Use transport.sftpImport, transport.sftpExport, and transport.sftpCommands for new SFTP code. Both hosted and standalone clients expose these methods with generated types. Legacy SFTP aliases and the removed thread-goal methods are excluded from the current SDK. See SFTP integrations and the 1.5.9 release notes. For portable Component pins, use a verified componentDigest. Database reads and exports now use one relation namespace: api.exportDatabase() covers Databases, live Views, and Materialized Views. The former View-only read helper and api.exportDatabaseView() have been removed. Use api.getDatabaseData() for relation reads and api.exportDatabase() for exports. Database exports accept CSV, TSV, NDJSON, and XLSX. api.importDatabase() previews a Storage file and returns an operation to review before api.commitDatabaseImport() writes it; use api.updateDatabaseImportMapping() when columns need correction. See Database API for the lifecycle and generated methods for current signatures. 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. Remote MCP server definitions in the current SDK accept public HTTPS destinations. Configure a Vault binding for credentials and review the discovered tools and their permissions before enabling the plugin. See MCP server plugins for the connection workflow.
Runtime method availability does not grant permission. Authentication, roles, instance boundaries, execution context, and platform policy are still enforced by RevoEngine.
For removed library-selection configuration and coordinated client upgrades, follow Upgrade to 1.8. SDK 4.1.0 intentionally changes api.triggerJob(name, trigger, options?) to the native explicit envelope. Move earlier flat run values into trigger.input and upgrade the Job Component together. See the 1.9 upgrade guide. Published SDK 4.0.0 retains its earlier wire contract.

Native Endpoint file transport

The stable SDK 4.3 release line carries native upload-session/file directives; live request or response streams do not cross SDK/RPC. Configure the Endpoint and return the exact selected reference described in native Endpoint Storage. Anonymous upload grants are available to managed JavaScript and TypeScript Components; Custom Node.js does not receive this grant.
Last modified on November 15, 2026