Building
How to get the source, build and run Open Stomp Manager, and work on it. For contributors; to make a release see Releasing.
The app is a Tauri program. Rust runs the pedal engine (the open-stomp library), and the interface is React and TypeScript, styled with plain CSS, shown in the system's web view. Architecture describes how the two halves talk.
Get the source
The library is a path dependency on a sibling checkout (app/src-tauri/Cargo.toml). Clone both side by side:
git clone https://github.com/JackMechem/open-stomp-lib
git clone https://github.com/JackMechem/open-stomp-manager
cd open-stomp-managerProjects/
├── open-stomp-lib/ the library: protocol, state, connection engine, protocol docs
└── open-stomp-manager/ this repo
└── app/ the app: package.json, src/ (React), src-tauri/ (Rust)Changes to the library are picked up by the next build; there's nothing to publish in between.
Build with Nix
nix run # build and run
nix build # result/bin/open-stomp-manager
nix develop # dev shell: Rust, Node, pnpm, WebKitGTK, ALSA, amidiThe flake fetches the library as the
open-stomp-libinput:github:JackMechem/open-stomp-lib/stable, the library's newest release, pinned inflake.lock.nix flake update open-stomp-libmoves it.To build against your local checkout instead:
shnix run --override-input open-stomp-lib path:../open-stomp-lib
After changing app/pnpm-lock.yaml
The frontend's npm packages are fetched with a fixed hash (pnpmDeps in flake.nix). Set that hash to "", run nix build, and paste the hash Nix prints. CI's nix build job catches a stale hash.
Build without Nix
You need:
- Rust 1.95 or newer
- Node 22 or newer
- pnpm, the version in
app/package.json'spackageManager(corepack enablepicks it up) - On Linux, the WebKitGTK, ALSA and D-Bus headers:
sudo apt install libwebkit2gtk-4.1-dev librsvg2-dev libasound2-dev libdbus-1-dev pkg-config # Debian, Ubuntu
sudo dnf install webkit2gtk4.1-devel librsvg2-devel alsa-lib-devel dbus-devel pkgconf # FedoramacOS and Windows need nothing extra (Windows 10 and 11 have WebView2).
cd app
pnpm install
pnpm tauri dev # run, reloading as you edit
pnpm tauri dev -- -- --replay ../captures/logs/01-main-session.log --speed 8 # no pedal needed
pnpm tauri build # release build and installersChecks
(cd app && pnpm typecheck) # TypeScript
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace # the hub's commands, the activity log, imports
(cd ../open-stomp-lib && cargo test) # the protocol and engine tests, driven by capture logs
packaging/check-version.sh # version consistencyDevelop
pnpm tauri dev (in app/) starts Vite and the app.
- Saving a
.tsxor.cssfile updates the window at once and keeps its state. - Saving a Rust file rebuilds and restarts the app.
- Right-click → Inspect opens the web inspector (debug builds): the quickest way to try out CSS.
- Starting on a replay (
-- -- --replay <log>) doesn't connect to the pedal, so it's safe while another editor is using it.
Environment variables
| Variable | Effect |
|---|---|
STOMP_DEV=log,import,import-ir,save,rename | Open the activity log or that dialog at startup |
STOMP_DEV=devtools | Open the web inspector at startup (debug builds) |
STOMP_DEBUG_IMPORT=<file.nam or .wav> | Convert the file at startup into USER AMP/IR 10, without uploading it |
STOMP_UPDATE_URL=<latest.json URL> | Check this update manifest instead of the newest release's (debug builds; http allowed) |
Debug builds don't check for updates at startup and never install one: Check for updates only reports what it finds.
Driving the app from scripts (Linux)
tools/dev/webdriver.py controls the real app through WebKitGTK's WebKitWebDriver: click, drag, type, read the frontend's state (window.__stomp in debug builds) and take screenshots. tools/dev/shot.py uses it to screenshot the app on a replayed capture, for the docs:
nix develop --command tools/dev/shot.py # target/shots/main.png
nix develop --command tools/dev/shot.py log --dev log # with the activity log openPlatforms and packages
| Platform | MIDI | Web view | Release downloads |
|---|---|---|---|
| Linux (x86_64) | ALSA | WebKitGTK 4.1 | .deb, .rpm, .AppImage |
| macOS 11+ (Apple Silicon + Intel) | CoreMIDI | WKWebView | .dmg, and the .app as a .zip |
| Windows 10+ (x86_64) | WinMM | WebView2 | -setup.exe installer, portable .zip |
pnpm tauri build makes the installers for the platform it runs on, in target/release/bundle/. Their settings (name, identifier, icons, Linux package dependencies, minimum macOS version) are in app/src-tauri/tauri.conf.json.
- Linux: the
.deband.rpmdepend on WebKitGTK, GTK, ALSA and D-Bus (D-Bus is for Bluetooth, through BlueZ). The AppImage bundles WebKitGTK, so it's much larger. The Nix package is built from the.deb's contents and wrapped so GTK finds its schemas and modules. On NVIDIA with Wayland, a blank window usually needsWEBKIT_DISABLE_DMABUF_RENDERER=1. - macOS: a universal app (
--target universal-apple-darwin, which needsrustup target add aarch64-apple-darwin x86_64-apple-darwin), ad-hoc signed (signingIdentity: "-"), not notarized.app/src-tauri/Info.plistadds the Bluetooth usage description; macOS kills an app that uses Bluetooth without one. - Windows: release builds use the GUI subsystem (no console window);
--helpand--versionattach to the launching console. The installer downloads WebView2 if it's missing (Windows 10 before 21H2); the portable.zipneeds it present.
Icons are generated by app/src-tauri/icons/make_icons.py.
Continuous integration
.github/workflows/ci.yml runs on every push and pull request, on Linux, macOS and Windows:
- the frontend type-check and build
- clippy, with warnings as errors
- the tests
- a release build without installers
Other jobs check the minimum Rust version, nix build (which also catches a stale npm hash in flake.nix), and packaging/check-version.sh. Each job first clones open-stomp-lib next to the checkout, at the ref in OPEN_STOMP_LIB_REF (top of the workflow).
The docs site
The documentation site is built in open-stomp-lib from both repositories' docs: this repo's docs/ becomes the site's Manager section.
- Its
pages.ymlchecks this repository'smainand release tags every 30 minutes and rebuilds when they change, so changes here reach the site within about half an hour. - No token or secret is needed.
