> ## Documentation Index
> Fetch the complete documentation index at: https://docs.levelrail.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Desktop app

> A small macOS and Windows app that watches your Levelrail servers from the tray and opens each dashboard in its own window. Built from the open repository, with unsigned CI builds.

The desktop app is a thin native shell around your own Levelrail dashboard. The source lives in the `desktop/` folder of the repository and is one Tauri 2 codebase for macOS and Windows. This page describes what works today.

## What it does

* Adds a server profile from a URL. The URL must use `https`. Plain `http` is accepted only for `localhost` and `127.0.0.1`. A URL with a username or password is rejected, and only the origin (scheme, host, port) is kept.
* Checks each profile against the server's public `/healthz` endpoint and shows the result as online, offline or unknown. An invalid certificate counts as offline and there is no way to bypass it.
* Shows a tray icon (menu bar on macOS) whose color and menu reflect the worst status across your profiles. The menu has Open dashboard, a Server picker that chooses which profile Open uses (the choice lasts for the session), Profiles, Refresh now and Quit.
* Opens the dashboard in an app window that loads the server's own origin. That window has no access to native commands: no capability is granted to remote pages, so scripts on the dashboard cannot call into the app.
* Keeps navigation inside the profile's origin. Links to other sites, and pop-up windows, open in your default browser instead.
* Sends a native notification when a profile changes between online and offline.
* Checks for app updates when an update feed is configured (see Auto update below). With no feed configured it never contacts anything.

Profiles are stored in a local file in the app data folder. It holds names and URLs only.

## Auto update

Updates use the Tauri updater and are off until you set both variables below. The feed must be served over `https`, and every update is verified against the public key before it installs. When a newer version is found the tray menu shows an Install update entry and a notification appears once per version. No key is shipped in the repository.

## Not included

* No sign in handling beyond the dashboard's own login page. The app stores no credentials, tokens or cookies of its own.
* No background polling. Status is checked at startup, when you add a profile, and when you press refresh.
* No per-profile separation of cookies, no local VM control, no autostart.
* No signing or notarization. CI builds an unsigned DMG (macOS) and NSIS installer (Windows) as workflow artifacts. They are not published as a download, and the OS will warn on first launch.
* Not tested on Windows by hand. The Windows build is compiled and unit tested in CI only.

## Build from source

You need a Rust toolchain. The shared logic (URL rules, profile store, health client, status model) is a plain library crate and its tests run without a GUI:

```sh theme={"dark"}
cd desktop
cargo test -p levelrail-desktop-core
```

Building the app itself uses the Tauri 2 prerequisites for your platform:

```sh theme={"dark"}
cd desktop
cargo build -p levelrail-desktop
```

## Settings

| Variable | Default | Meaning |
| - | - | - |
| `APP_DESKTOP_HTTP_TIMEOUT_SECONDS` | `10` | Timeout for the health check request. Invalid or zero values use the default. |
| `APP_DESKTOP_UPDATE_ENDPOINT` | unset | HTTPS URL of the update feed. Updates stay off while this or the key is unset. |
| `APP_DESKTOP_UPDATE_PUBKEY` | unset | Public key that update signatures are checked against. |
| `APP_DESKTOP_UPDATE_CHECK_HOURS` | `24` | Hours between update checks. Invalid or zero values use the default. |

The custom link scheme for the app is `levelrail-app://`. It is reserved for a later slice and is not registered yet.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.