Model API traffic
Write async HTTP scripts, use fixed or ramping virtual users, or schedule an arrival rate. Add checks, named scenarios and transaction measurements.
LoadStride · v0.2.0 · MIT license
Downloads show npm package downloads in the last month, including repeat installs and automation. Badge values are cached by Shields.io; newly published packages may not show download statistics immediately.
Exercise APIs and optional browser flows, measure response times and set pass/fail thresholds. Run locally or in CI, then share HTML and JSON results with your team.
Write async HTTP scripts, use fixed or ramping virtual users, or schedule an arrival rate. Add checks, named scenarios and transaction measurements.
Import a HAR recording for HTTP replay, or use optional Playwright recording and browser execution. Review generated scripts and parameterize credentials before running load.
Inspect console summaries and saved HTML/JSON reports. Set thresholds for CI and browse saved runs with the included report server.
Your first local run
From your application's project directory, install LoadStride. HTTP mode needs Node.js 20 or newer; browser dependencies are optional.
npm install --save-dev --omit=optional loadstride@0.2.0
npx --no-install loadstride --versionFollow the step-by-step guide to start the included demo API, create your script and run ten iterations with two concurrent users. Then browse the saved HTML and JSON reports.
LoadStride is an early 0.x release under active development. The engine runs in one Node.js process; distributed workers are not included.
HTTP/API testing: supports fixed or ramping VUs and arrival-rate workloads. Practical capacity depends on the workload, generator machine and target; a configured VU count is not a throughput guarantee.
Browser/UI testing: runs real browsers through Playwright with one fixed-VU workload and a configurable ceiling (default 20 VUs). Raise it explicitly after measuring your flow. Playwright, Acorn and browser binaries require separate installation.
Measure before scaling: browser calibration on macOS/Linux repeats increasing VU levels and saves CPU, RAM and event-loop headroom evidence. Conditional hardware projections are planning estimates, not capacity guarantees. Explore browser capacity and sizing.
The report server needs an external proxy for authentication and TLS when shared over a network. Capacity depends on your workload and machine; monitor generator pressure alongside latency and failures.