Report hosting
Browse saved results and host reports on a shared company network.
On this page
Choose the right working directory. Examples using
npm runshortcuts,node bin/loadstride.js, or top-levelstarter-kit/paths run from the LoadStride source checkout. Those shortcuts do not exist in your application’s package.json. Installed-package users runnpx --no-install loadstridefrom their application directory. See Getting started for both options.
Report server
Browse completed LoadStride runs over HTTP without copying individual report files. The server is a separate, read-only process; it does not execute tests or upload results. It discovers JSON/HTML pairs already written to the report directory.
npm run report:serve
Open http://127.0.0.1:8080. The default is loopback-only. The equivalent command
is node bin/loadstride.js report serve reports.
For teammates on your company network:
npm run report:serve -- --host 0.0.0.0 --port 8080
They open http://<report-machine-hostname-or-ip>:8080, not 0.0.0.0 or their own
localhost. The machine/port must be reachable under your company’s network
configuration. Use another port, such as 8081, if Jenkins already uses 8080.
To select one workload’s reports or an absolute directory:
node bin/loadstride.js report serve reports/transactions --port 8081
node bin/loadstride.js report serve /srv/loadstride/reports --host 0.0.0.0 --port 8081
The selected directory must already exist. Stop with Ctrl+C. The server never
loads .env, so workload configuration cannot change its binding or port. A bind
failure or invalid directory/option exits with code 2; normal server shutdown exits
with code 0. --port 0 selects a free port and prints its actual URL.
For persistent company hosting, run it under your normal service manager, with the generated reports on persistent storage. Put HTTPS and your company’s authentication at the reverse proxy. This server itself has no login, TLS, access roles, or user management. Keep the service separate from transient CI job agents so reports remain accessible after a job ends.
Scripts and report directories
starter-kit/ contains sample scripts. The supplied npm commands save their
results under the project’s reports/ directory, not under starter-kit/.
Your scripts can live in load-tests/ or any other directory. --report-dir
chooses the output location independently of the script location.
For example, from the LoadStride source directory:
node bin/loadstride.js run /path/to/my-app/load-tests/checkout.js --report-dir /srv/loadstride/reports/my-app
node bin/loadstride.js report serve /srv/loadstride/reports --host 0.0.0.0 --port 8081
Replace the example paths with your own writable directories and existing script.
Scripts use ES modules: for scripts outside an existing "type": "module"
project, use the .mjs extension or add that setting to their package.json.
Each run creates a unique my-app/run-.../ folder containing report.json and
report.html. The server recursively discovers these pairs beneath its selected
root; it does not need the scripts or their directory. You can save multiple
applications beneath that root, for example reports/shop/ and reports/payments/.
Relative script, output and server-root paths resolve from the command’s working
directory; absolute paths are useful for CI jobs and service configuration.
npm run report:serve already selects reports. Use the direct CLI shown above
to select a different root rather than appending another directory to that npm
shortcut. A run without --report-dir or explicit JSON/HTML output saves no files
for the server to discover.
If tests run on another machine, use shared storage or copy each completed run folder into the report server’s root, including any CSS sidecar. The server reads local/shared files; it does not fetch reports from remote machines automatically.
Available views
/: searchable run index grouped by saved date (UTC), newest date and run first. Date sections expand/collapse, with the first date on each page expanded initially. At most 50 runs appear per page; use Older, Newer and Newest to navigate. A date with more than 50 runs can continue onto another page. Shows workload, configured VU limit, elapsed time, request count, result, and HTML/JSON links./?q=checkout: filter run paths, workload labels, and statuses./?date=2026-12-05: select one UTC saved date using the date field. Combine withqto narrow a workload; pagination preserves both filters. Applying the form’s filters starts at page 1; Clear resets them./?page=2: view older runs. Invalid page values fall back to page 1, out-of-range pages clamp to the last page, and invalid dates are ignored. Summary cards count all indexed runs; the page controls show the filtered total./latest: redirect to the newest indexed report’s HTML./api/reports: JSON metadata index; links are relative to this server./reports/<run-path>/report.htmlandreport.json: indexed report contents./reports/<run-path>/report.html.css: optional generated CSS sidecar.
Benchmark reports are recognized too. Capacity suites show ACCOUNTING PASS/FAIL
because their pass flag describes accounting, not sustainable generation capacity.
Benchmark duration/requests are summed across suite runs; configured VUs can vary
and display as unavailable. Run timestamps come from the JSON file’s save time;
copying files may change their saved-date group and ordering. Saved is the JSON
file’s modification date, not necessarily the test’s execution date. A top-level
JSON/HTML pair also works. Pagination changes the index view only; /latest,
/api/reports and report links still cover all indexed runs.
Refresh the page to see new runs. Metadata is cached for five seconds and refreshed on a later request; there is no live request-stream dashboard or automatic polling. Existing HTML files are served as written, including older report designs.
Discovery and access bounds
Use a directory dedicated to generated, trusted LoadStride reports. A run must have
a recognized version-1 report.json plus a nonempty report.html ending in
</html>. Malformed, incomplete, or unrelated JSON is skipped until a later scan.
Custom output filenames must be renamed to the canonical pair or generated with
--report-dir to appear in the index.
The index scans up to 5,000 directories and 10 levels, reads JSON up to 20 MiB per run, and lists the newest 1,000 discovered reports. It displays a notice if the directory/run limits truncate discovery; select a narrower root to reach older runs. Oversized or unindexed reports are not served through this process. There is no automatic retention/deletion policy.
Only GET and HEAD are accepted. Directory traversal and symlinked descendants are
rejected. Only canonical report HTML/JSON/CSS files for indexed runs are exposed;
.env, scripts, HAR recordings, console logs, screenshots, and arbitrary files are
not served. Root-directory selection is explicit; an explicitly selected symlink
root is resolved at startup. Keep report writers trusted, as with a static file
server. No CORS access is enabled. Report HTML is served with a restrictive content
policy that permits its styles and disables scripts.
Report data itself includes endpoint paths, labels, and error samples. Decide which runs belong in the shared directory and who may access the company’s report URL.
For CI publication without a persistent server, see Jenkins.
Based on the released v0.2.0 guide. View source on GitHub.