Skip to content
Douwe de Vries edited this page Jul 1, 2026 · 1 revision

API

Load Rift exposes a typed frontend API backed by Tauri commands and k6 runtime events. The contract starts in src/lib/loadrift/api.ts and is implemented for Tauri in src/lib/tauri/client.ts.

API surface

Area Page Source paths
Commands Tauri commands src-tauri/src/commands/, src/lib/tauri/client.ts
Events Events src-tauri/src/events.rs, src/features/test/useTestHarness.ts

Command groups

The command API covers collection import, configuration validation, smoke tests, start/stop, latest status, and report export. Rust registers the command list in src-tauri/src/lib.rs through tauri::generate_handler!.

Event groups

k6 emits output, metrics, completion, and error events. Payload models are shared between src/lib/loadrift/types.ts and src-tauri/src/models.rs.

For the implementation boundary, see Command API bridge.

Clone this wiki locally