Build and run
Prebuilt binaries (recommended)
Section titled “Prebuilt binaries (recommended)”Download the latest release from GitHub:
Each release includes:
- safeparts (CLI)
- safeparts-tui (terminal UI)
Quick sanity check:
- Put the binaries on your PATH.
- Run safeparts —help.
- Run safeparts-tui —help.
macOS Gatekeeper
Section titled “macOS Gatekeeper”If you download the release binaries via a browser, macOS may quarantine them and show “cannot be opened because the developer cannot be verified”.
If you built from source, you usually will not see this.
If you trust the download and want to remove the quarantine attribute:
# Point this at the folder you extracted the release intoxattr -dr com.apple.quarantine /path/to/safeparts-release/
# Or remove it per-binaryxattr -d com.apple.quarantine /path/to/safepartsxattr -d com.apple.quarantine /path/to/safeparts-tuiBuild from source (Rust)
Section titled “Build from source (Rust)”Prereqs:
- Rust stable + rustfmt and clippy
Build + tests:
cargo buildcargo test --all-featuresCI-style lint:
cargo fmt --all -- --checkcargo clippy --all-targets --all-features -- -D warningsWeb UI (Vite + React + WASM)
Section titled “Web UI (Vite + React + WASM)”The web app lives in web/. It runs split/combine in your browser via WASM.
Prereqs:
- Bun
- wasm-pack (or let the build script install it)
Run locally:
cd webbun installbun run build:wasmbun run devOpen http://localhost:5173.
Web UI + docs (Docker)
Section titled “Web UI + docs (Docker)”If you want a single command that builds WASM + the web UI + the docs site and serves them, you can use the repo’s Dockerfile.
docker build -t safeparts-webui -f web/Dockerfile .docker run --rm -p 8080:8080 safeparts-webuiOpen http://localhost:8080.
Docs: http://localhost:8080/help/
Help/docs site (Astro + Starlight)
Section titled “Help/docs site (Astro + Starlight)”This site lives in web/help/ and is served under /help/.
cd web/helpbun installbun run dev