Build from source
Mbox Viewer is open source under the MIT license, and you can build it on macOS, Windows or Linux. You need
Node 22, Rust through rustup and the system prerequisites of Tauri 2. Clone the repository, run
npm install, then start the app with npm run tauri dev. The commands below also run the tests
and produce the same installers as the official releases.
What is the stack?
| Part | Technology | Folder |
|---|---|---|
| Desktop shell, menus and native dialogs | Tauri 2 | src-tauri/ |
| Backend for mbox parsing, the query language and the index | Rust with tantivy | src-tauri/src/ |
| Interface | React 19, TypeScript and Vite | src/ |
| Website and documentation | Static HTML generated from Markdown | site-src/ and site/ |
The Rust crate uses the 2024 edition and requires Rust 1.94 or later.
What do I install first?
- Install Node 22.
- Install Rust stable through rustup.
- Install the Tauri 2 system prerequisites for your system. On macOS they include the Xcode command line tools, and on Windows they include the Microsoft C++ build tools and WebView2. On Linux they include WebKitGTK 4.1 and its development files, as the next section shows.
- Clone the repository and install the JavaScript dependencies:
git clone https://github.com/baptgb/mbox-viewer.git
cd mbox-viewer
npm install
What do I install on Linux?
On Debian, Ubuntu 22.04 or later and their derivatives, install these packages, which the release workflow also installs:
sudo apt update
sudo apt install libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev libssl-dev \
libayatana-appindicator3-dev librsvg2-dev patchelf xdg-utils
| Package | Why the build needs it |
|---|---|
libwebkit2gtk-4.1-dev |
It provides WebKitGTK 4.1 and GTK 3. They draw the interface. |
build-essential, libssl-dev, libxdo-dev |
They compile and link the Rust crates. |
librsvg2-dev, libayatana-appindicator3-dev |
Tauri links them for icons and the tray. |
patchelf, file |
The AppImage bundler uses them to adjust the bundled libraries. |
xdg-utils |
The AppImage bundles xdg-open, which opens links and attachments. |
On Fedora, install webkit2gtk4.1-devel, openssl-devel, libxdo-devel, librsvg2-devel and
libappindicator-gtk3-devel with the C development tools. On Arch Linux, install webkit2gtk-4.1,
base-devel, openssl, xdotool, librsvg and libappindicator-gtk3. The
Tauri 2 prerequisites list the packages for other
distributions.
Which commands do I run?
Run every command from the repository root.
| Task | Command |
|---|---|
| Start the app in development mode | npm run tauri dev |
| Start the interface alone in a browser, with mock data | npm run dev, then open http://localhost:1420 |
| Run the Rust tests | cd src-tauri && cargo test |
| Lint the Rust code | cd src-tauri && cargo clippy --all-targets -- -D warnings |
| Run the interface tests | npx vitest run |
| Check the TypeScript types | npx tsc --noEmit |
| Run the end-to-end tests with Playwright on mock data | npm run e2e |
| Build the documentation pages | npm run docs:build |
The development server uses port 1420 and fails if that port is busy. Stop the other process, then run the command again.
How do I build the installers?
| Installer | Command |
|---|---|
| macOS universal app for Intel and Apple Silicon | npm run tauri build -- --target universal-apple-darwin |
| Windows NSIS installer, built on Windows | npm run tauri build |
| Windows NSIS installer, cross-compiled from macOS | npm run tauri build -- --runner cargo-xwin --target x86_64-pc-windows-msvc --bundles nsis |
Linux AppImage and .deb package, built on Linux |
npm run tauri build -- --bundles appimage,deb |
On Linux, the build writes the AppImage to src-tauri/target/release/bundle/appimage/ and the
.deb package to src-tauri/target/release/bundle/deb/. The Linux packages cannot be built on a Mac, and
scripts/package.sh linux only prints a reminder to use the release workflow.
On a Mac, scripts/package.sh [mac|win|all] builds the installers, copies them to release/ and
writes a SHA256SUMS.txt file for the local files. Each target works as follows:
- The
mactarget builds the universal.appand then a.dmgwithhdiutil. It also exports the Claude Desktop bundleMbox Viewer_<version>_macos.mcpbwith the--export-mcpboption. It needsrustup target add aarch64-apple-darwin x86_64-apple-darwin. - The
wintarget cross-compiles the NSIS.exeinstaller. It needsrustup target add x86_64-pc-windows-msvc,cargo install cargo-xwinandbrew install nsis llvm. The folder/opt/homebrew/opt/llvm/binmust be on thePATH. The Windows bundle is skipped, because the Windows executable cannot run on macOS to export it.
How are the official releases built?
Two GitHub Actions workflows build the project:
| Workflow | Trigger | What it does |
|---|---|---|
ci.yml |
Every push to main and every pull request |
It builds the interface and runs cargo test, cargo clippy, tsc and vitest on macOS. A second job runs the Rust tests and cargo clippy on Ubuntu 22.04. |
release.yml |
A vX.Y.Z tag |
It builds the .dmg, the .exe, the AppImage and the .deb package on native runners and attaches them to the GitHub release with the three .mcpb bundles. A last job then writes SHA256SUMS.txt over every file of the release and attaches it too. |
The Linux packages are built on Ubuntu 22.04, the oldest supported runner, so they need glibc 2.35
or later and run on distributions from that generation onward. Each release also carries a SHA256SUMS.txt file, so you can compare your download with the
published checksums.
Where do I start reading the code?
The design notes live in the docs/ folder of the repository:
| Document | Content |
|---|---|
docs/superpowers/specs/2026-12-01-mbox-viewer-design.md |
Architecture, index schema and query language |
docs/superpowers/specs/2026-12-01-annotations-design.md |
Design of tags and virtual folders |
docs/superpowers/specs/2026-12-02-mcp-server-design.md |
Design of the MCP server |
docs/contracts.md |
Rust and TypeScript types, Tauri commands and events |
docs/messages.md |
Backend messages and their stable codes |
The English and French interface strings live in src/i18n.ts. To propose a change, open an
issue or a discussion first. To choose between the two, read
Report a problem.
Frequently asked questions
What do I need to build Mbox Viewer?
You need Node 22, a stable Rust toolchain installed through rustup and the system prerequisites of Tauri 2. The Rust crate requires Rust 1.94 or later.
Which technologies does Mbox Viewer use?
The desktop shell is Tauri 2 with a Rust backend that parses the mbox files and builds a tantivy index. The interface uses React 19, TypeScript and Vite.
Can I try the interface without building the Rust part?
Yes. Run npm run dev and open http://localhost:1420 in a browser. The interface then runs on mock data, so it opens no real file.
How do I run the tests?
Run cargo test in src-tauri/ for the Rust tests and npx vitest run for the interface tests. npm run e2e runs the Playwright tests against the mock interface.
Can I build the Windows installer on a Mac?
Yes. The project builds the Windows installer on macOS through cross-compilation with cargo-xwin, NSIS and LLVM. The Windows .mcpb bundle is skipped in that case, because the Windows executable cannot run on macOS to export it.
Which packages do I need to build on Linux?
On Debian and Ubuntu you need libwebkit2gtk-4.1-dev, build-essential, libssl-dev, libxdo-dev, librsvg2-dev and libayatana-appindicator3-dev. The AppImage bundler also needs patchelf, file and xdg-utils.
Is a build from source signed?
No. A local build is not signed with an Apple Developer ID or an Authenticode certificate, like the official releases. macOS and Windows warn on its first launch, and a Linux build carries no signature either.
Under which license is the source code published?
The source code is published under the MIT license. You can read it, change it and redistribute it under the terms of that license.
Where are the design documents?
The docs/ folder of the repository holds the design specifications, the interface contracts in docs/contracts.md and the backend messages in docs/messages.md.
How do I rebuild this documentation?
Run npm run docs:build from the repository root. The command checks the Markdown pages under site-src/docs/ against the writing rules and writes the HTML into site/.