Build from source
Issues and pull requests are welcome. This page is what you need to get the app running from a clone.
Prerequisites
| Tool | Version | What for |
|---|---|---|
| Node.js | 22+ | frontend (React + Vite) |
| Rust | stable (1.85+) | app core (Tauri) |
| C++ build tools | — | the Rust linker on each OS |
Windows
winget install OpenJS.NodeJS.LTS
# When the Rust installer asks about Visual Studio, ACCEPT the automatic
# "Visual Studio Build Tools" install — it provides the linker.
winget install Rustlang.RustupOpen a new PowerShell afterwards
PATH only updates in new sessions. Confirm with cargo --version.
If the Rust installer did not offer the Build Tools:
winget install Microsoft.VisualStudio.2022.BuildTools --override "--wait --passive --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended"PowerShell usually blocks npm.ps1 ("running scripts is disabled"). Allow local scripts for your user only, no admin needed:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser(Or use npm.cmd instead of npm and change nothing.)
WebView2, the UI engine, already ships with Windows 10/11.
macOS
xcode-select --install # command line tools (linker)
curl https://sh.rustup.rs -sSf | shLinux
curl https://sh.rustup.rs -sSf | sh
sudo apt install libwebkit2gtk-4.1-dev libgtk-3-dev build-essential \
libayatana-appindicator3-dev librsvg2-devRun it
git clone https://github.com/pedro-canedo/openweights.git
cd openweights
npm install
npm run tauri devThe first build is slow
It compiles hundreds of Rust crates: 5 to 15 minutes. The ones after are incremental (seconds).
Commands
| Command | What it does |
|---|---|
npm run tauri dev | The app in development mode, hot reload |
npm run tauri build | The production installer |
npm run build | Type check + frontend-only build |
npm run dev | UI in the browser with mocked data, no Rust |
cd src-tauri && cargo test --workspace | Rust tests (hundreds of them) |
Before opening a PR
Run what CI runs:
npm run build
cd src-tauri
cargo test --workspace
cargo clippy --workspace --all-targets -- -D warnings
cargo fmt --all --checkConventions
- Comments and commit messages in Portuguese, explaining the why — what the code does is already in the code. Identifiers and test names are in English.
- Test names in English, as sentences:
a_cancelled_run_keeps_what_it_already_said. - Every behaviour change ships with a test. A test that does not fail without the fix proves nothing.
- The UI is bilingual: new keys go into
src/i18n/pt-BR.jsonanden.json, always both. - This site is bilingual too: a page under
site/gets its counterpart undersite/pt/, in the same commit —npm run docsfails the build otherwise.
The full version, including how release notes are written once and where each kind of documentation lives, is in CONTRIBUTING.md.
The docs site
cd site
npm install
npm run devIt is a VitePress site; pages are Markdown. npm run build renders it, and pushing to main publishes it.
Two checks run before publication and fail the build rather than warn: npm run i18n for the interface strings and npm run docs for the pages — parity between languages, the same heading structure, presence in the sidebar, and links to versioned files pointing at a tag instead of main.