Skip to content

overview

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

Load Rift

Load Rift is a Tauri desktop app for importing Postman collections and running local k6 load tests. The app keeps the workflow local: import a collection, configure traffic and runtime variables, run k6, watch live metrics, then export an HTML report.

What it does

Load Rift turns a Postman collection JSON file into a generated k6 script in src-tauri/src/importing/script.rs. The React workspace in src/app/App.tsx coordinates the user flow, while Rust commands in src-tauri/src/commands/ parse collections, validate settings, run smoke checks, launch k6, stop runs, and export reports.

graph LR
    Import[Postman collection] --> UI[React workspace]
    UI --> Bridge[Typed Tauri API]
    Bridge --> Backend[Rust commands]
    Backend --> Importer[Postman parser]
    Backend --> K6[k6 runtime]
    K6 --> Events[Live events]
    Events --> UI
    K6 --> Report[HTML report]
Loading

Main entry points

Area Source path Purpose
Frontend shell src/app/App.tsx Composes import, configuration, smoke test, run, and export state
API contract src/lib/loadrift/api.ts Defines commands and event subscriptions used by React hooks
Tauri adapter src/lib/tauri/client.ts Maps the typed API to Tauri invoke and listen calls
Rust entry src-tauri/src/lib.rs Registers shared state, plugins, startup cleanup, and commands
Import pipeline src-tauri/src/importing/ Parses Postman collections and generates k6 JavaScript
k6 runtime src-tauri/src/k6/ Resolves the k6 binary, starts processes, streams metrics, and exports reports

Quick links

Clone this wiki locally