Load Rift is a Tauri desktop app for importing Postman collections and running local k6 tests.
This repository currently contains the first working Tauri vertical slice:
- Tauri 2 backend setup
- React + TypeScript frontend setup
- A typed frontend API layer
- Postman collection import from file
- Local k6 execution with live output, metrics, status tracking, and richer HTML report export
- Advanced k6 options JSON for scenarios, thresholds, tags, and other settings that do not fit the basic controls
- Optional weighted request mix mode for request-level traffic importance
- Bundled project-local k6 binary for Linux and macOS desktop builds
- Node.js 22+
- npm
- Rust and Cargo
- Tauri system dependencies
On this machine, cargo check succeeded against the current Linux GTK/WebKit stack.
Desktop builds are published on the GitHub Releases page:
Download the .dmg for your Mac from the latest release:
- Apple Silicon:
aarch64/ ARM64 - Intel:
x64
Open the .dmg and drag Load Rift into Applications.
Linux builds require a distro with WebKitGTK 4.1.
Enable the repository once per machine:
bash <(curl -fsSL https://github.com/ddv1982/load-rift/releases/latest/download/install-apt-repo.sh)The setup script verifies a detached GPG signature and package checksum before installing the Load Rift archive keyring and APT source configuration. If signature authentication is unavailable, the script fails before installing.
Refresh APT metadata:
sudo apt updateInstall Load Rift:
sudo apt install load-riftAfter the repository is enabled, use normal sudo apt update and sudo apt install load-rift commands for installs and updates.
The standalone .AppImage, .deb, and .rpm release assets remain available as direct-download fallback options.
npm install
npm run install:k6npm run install:k6 uses built-in checksums for the default bundled k6 version. If you override K6_VERSION, also set K6_SHA256 to the expected checksum for the selected platform archive.
npm run tauri devThis starts the Vite frontend and the Tauri desktop shell together.
npm run buildThis builds the frontend only and writes the static assets to dist/.
To build the Tauri app bundle:
npm run tauri buildBuild outputs land in:
dist/: frontend build output used by Taurisrc-tauri/target/release/: compiled Rust release binariessrc-tauri/target/release/bundle/: packaged desktop artifacts
Common bundle subdirectories under src-tauri/target/release/bundle/ include:
- Linux:
appimage/,deb/,rpm/ - macOS:
macos/,dmg/
Tauri produces native bundles for the current build platform, so Linux bundles must be built on Linux and macOS bundles must be built on macOS.
You usually do not need to run a clean step before building.
Use a clean rebuild only when troubleshooting stale Rust/Tauri artifacts, native-toolchain changes, or unusual linker/compiler errors:
rm -rf dist
cargo clean --manifest-path src-tauri/Cargo.toml
npm run build
# or
npm run tauri buildcargo clean removes Rust build artifacts and makes the next build slower, so
it should be treated as a troubleshooting step rather than a normal part of the
build workflow.
npm run dev: starts the Vite frontend onlynpm run lint: runs ESLintnpm run typecheck: runs TypeScript checksnpm run build: builds the frontend intodist/npm run install:k6: downloads the project-local k6 binary intosrc-tauri/bin/npm run tauri dev: runs the desktop app in dev modenpm run tauri build: builds the desktop app and writes bundles tosrc-tauri/target/release/bundle/
The app currently provides a slim migration shell with:
- File import entry point
- A test harness panel for start, stop, and status
- Basic runner controls for common load-test setup, including sequential vs weighted request mix
- An advanced k6 options JSON area for scenarios, tags, thresholds, and other custom options
- Weighted request mixes follow a deterministic request schedule across started iterations, and weight
0excludes a request from the weighted pool; use advanced k6 scenarios/executors for stricter fixed workload ratios - Clear override behavior: if you define top-level
scenarios,stages, oriterationsin the advanced JSON, those settings override the basic runner controls - HTML report export with summary cards, threshold results, structured metrics, the raw k6 summary JSON, and the final console summary from k6
- Event listeners for:
k6:outputk6:metricsk6:completek6:error
- Supported Linux and macOS builds vendor
k6v2.0.0intosrc-tauri/bin/using the platform-specific target triple filename. - Custom
K6_VERSIONinstalls requireK6_SHA256for the matching k6 release archive; built-in checksums only apply to the default bundled version. - Tauri bundles those binaries as application resources, so packaged Linux and macOS artifacts do not rely on a system-wide k6 install.
- At runtime the app still honors
LOADRIFT_K6_BINfirst, which is useful for local overrides or debugging. - Load Rift writes each run's generated
script.js,summary.json, andmetrics.jsonpaths into a private per-run temp directory. Startup cleanup only removes old Load Rift-owned k6 artifact directories when the marker schema, k6-child PID role, expected file shape, staleness, and conservative PID-liveness checks all prove deletion is safe; markerless, malformed, preserved, active, symlinked, or unknown-shape directories are skipped. - User-visible fallback diagnostics redact local artifact paths by default. Full artifact paths are kept for logs and for explicit debug preservation mode.
- Set
LOADRIFT_PRESERVE_K6_ARTIFACTS=trueonly when debugging k6 temp-file issues. This preserves the per-run temp directory instead of deleting it automatically and allows user-visible diagnostics to include local artifact paths; preserved artifacts can contain request URLs, headers, bodies, and tokens, so delete the directory manually when finished. - CI requires bundled-k6 regression coverage with
LOADRIFT_REQUIRE_BUNDLED_K6_TESTS=true. Local test runs still skip bundled-k6 tests when the platform binary is absent unless that variable is set; runnpm run install:k6first when you want the mandatory behavior locally.
- Load Rift is licensed under MIT. See
LICENSE. - The root
LICENSEfile contains only the project's MIT license text so GitHub and package tooling can detect it cleanly. - Packaged Linux and macOS builds bundle
k6v2.0.0, which is licensed separately under AGPL-3.0-only. - See
THIRD_PARTY_LICENSES.mdfor the exact bundledk6version and corresponding source references. - See
licenses/AGPL-3.0.txtfor the AGPL-3.0-only license text shipped with this repository. - Tauri bundle resources also ship these licensing documents inside the app,
and Linux AppImage/
.deb/.rpmoutputs install copies under/usr/share/doc/loadrift/.
When publishing packaged app binaries, include a release note alongside the
download that calls out the bundled k6 binary and its corresponding source.
Use this template:
This package bundles Grafana k6 v2.0.0, licensed under AGPL-3.0-only.
Corresponding source: https://github.com/grafana/k6/tree/v2.0.0
Source archive: https://github.com/grafana/k6/archive/refs/tags/v2.0.0.tar.gz
Additional bundled licensing notices are included in the package.
src/: React frontendsrc/lib/loadrift/: shared TS types and frontend API contractsrc/lib/tauri/: Tauri-specific frontend adaptersrc/features/: frontend hooks and flow statesrc-tauri/: Rust backend