-
Notifications
You must be signed in to change notification settings - Fork 0
api
Douwe de Vries edited this page Jul 1, 2026
·
1 revision
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.
| 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
|
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!.
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.