@enact-load/sdk
v0.2.0
Published
Behavioral load-testing authoring SDK
Readme
Enact SDK
Author models with @enact-load/sdk, HTTP bindings with @enact-load/sdk/http, deterministic
fixtures with @enact-load/sdk/testing, and verified builds with @enact-load/sdk/build.
@enact-load/sdk/zod is an optional Zod 4 adapter; install Zod explicitly to use it.
@enact-load/sdk/browser registers typed browser bindings without loading automation.
Its Playwright-facing declarations require the optional [email protected]
peer, Node type declarations and TypeScript's DOM library. Neither the SDK nor
normal HTTP consumers install browsers.
Use environment: browser or environment: mixed and select a compatible binding/browser profile in a
local enact run configuration. The runtime owns Chromium processes, restricted
egress and isolated account sessions; browser callbacks operate on their
worker-owned page through @enact-load/sdk/browser. Direct automation runtime
imports in model bundles are rejected. The target policy is HTTP/1.1 without
embedded frames. HTTP/2, QUIC, workers,
WebSockets, WebRTC and WebTransport are unsupported; TLS verification remains on.
Their explicit operator prerequisites are
npm install --save-exact [email protected] and
npx --no-install playwright-core install chromium, plus the platform's
Playwright system dependencies. Use full Chromium, not --only-shell; an
operator-managed PLAYWRIGHT_BROWSERS_PATH must match installation and execution.
Neither validation nor run preparation installs packages or downloads browsers.
Mixed runs use separate HTTP/browser populations and fixed worker grants under
one coordinator, with at least two workers. Named HTTP bindings are selected
per population, including in HTTP-only local runs; an unselected default HTTP
binding is not activated. Browser action metrics remain separate from HTTP attempts.
Browser/mixed matrices, target viewport streaming, manual takeover
and persistent-server browser execution are unsupported.
The checkout's npm run test:browser-runtime is the separate native browser
gate (OpenSSL is used for disposable TLS fixtures). The
FileSpace example
demonstrates one submission graph with HTTP and browser bindings.
The enact executable is owned by the separate @enact-load/cli package. The SDK
does not install the CLI, GUI, SQLite or AWS clients. Internal @enact-load/core
modules are coordinated implementation details, not supported SDK entry points.
MIT-licensed; see the included LICENSE. Public npm releases are coordinated with core, runtime, host and CLI. The root workspace and cloud package remain private.
