How iruora/stormix works
Stormix lets users define or import API flows, run them once or under load, and inspect or export results through a desktop app or CLI. Both front ends use the shared execution engine; collections are converted into flows, and the engine runs their requests and scripts. The README documents history, comparisons, diagnostics, reporting, and AI-related desktop features; some implementation details were not sampled, so those branches are shown without speculative internal links.
Main entry points: App.tsx Desktop workspace · main.rs Stormix CLI · runner.rs Flow runner · commands.rs Command handlers
Components 22
Desktop app
- Desktop workspace
apps/desktop/src/App.tsx - Flow editor
apps/desktop/src/views/StepsEditor.tsx - YAML editor
apps/desktop/src/editor/YamlEditor.tsx - Desktop commands
apps/desktop/src/bindings.ts - Command handlers
apps/desktop/src-tauri/src/commands.rs - AI assistance
crates/ai/src/lib.rs
Flow and collections
- Flow model
crates/flow/src/model.rs - Flow validation
crates/flow/src/validate.rs - Collection import
crates/collections/src/lib.rs - Postman importer
crates/collections/src/postman.rs - Bruno importer
crates/collections/src/bruno.rs - Collection export
crates/collections/src/opencollection/export.rs
Execution engine
- Flow runner
crates/engine/src/runner.rs - Load engine
crates/engine/src/load.rs - Script runtime
crates/script/src/lib.rs - Request diagnosis
crates/engine/src/diagnose.rs
Results and history
- Run history
crates/store/src/lib.rs - Run comparison
crates/store/src/diff.rs - Run metrics
crates/metrics/src/lib.rs - Report export
crates/report/src/lib.rs
CLI and integrations
- Stormix CLI
crates/cli/src/main.rs
Other components
- User
Connections 26
- User → Desktop workspace: edits or runs
README.md - Desktop workspace → Flow editor: edits steps
apps/desktop/src/App.tsx - Desktop workspace → YAML editor: edits YAML
apps/desktop/src/App.tsx - Desktop workspace → Desktop commands: invokes commands
apps/desktop/src/bindings.ts - Desktop commands → Command handlers: dispatches to
apps/desktop/src/bindings.ts - Command handlers → Flow runner: runs flows
- Command handlers → Load engine: runs load tests
- Command handlers → Run history: records runs
- User → Stormix CLI: runs commands
README.md - Stormix CLI → Flow runner: runs flows
crates/cli/src/main.rs - Stormix CLI → Load engine: runs load tests
crates/cli/src/main.rs - Stormix CLI → Collection import: imports collections
README.md - Collection import → Postman importer: dispatches Postman
crates/collections/src/lib.rs - Collection import → Bruno importer: dispatches Bruno
crates/collections/src/lib.rs - Collection import → Flow model: produces flows
README.md - Stormix CLI → Collection export: exports collections
crates/cli/src/main.rs - Flow validation → Flow model: validates
crates/flow/src/validate.rs - Flow runner → Flow model: executes flow
crates/engine/src/runner.rs - Flow runner → Script runtime: runs scripts
- Load engine → Flow runner: replays flow
- Flow runner → Run metrics: produces measurements
- Stormix CLI → Report export: exports reports
README.md - Desktop workspace → Run history: saves run history
- Desktop workspace → Run comparison: compares runs
- Desktop workspace → Request diagnosis: diagnoses failures
- Desktop workspace → AI assistance: offers assistance