Skip to main content

zMon

zMon is a monitoring application featuring a React-based frontend (using Vite) and an Express backend, both running on Bun.

Project Structure

  • frontend/ - React frontend application (Vite + TypeScript)
  • backend/ - Express backend server
  • launcher/ - zmon / zmon.bat dispatcher script templates, copied into every release by zmon-package
  • zmon/ - Python package replacing the Express backend (see below)
  • zmon-setup - Prepares and runs the Python backend
  • zmon-dev - Runs both servers for local development
  • zmon-package - Builds and packages the application for distribution (see below)

Requires Bun to be installed for development and packaging. End users running a packaged release do not need Bun or Node installed — see below.

Python backend (in progress, branch python-wheel)

The Express/Bun backend is being replaced by a pip-installable Python package so zMon can ship inside zCFD, mount into zui's zCFD Dashboard tab, and be installed standalone to monitor jobs on a remote cluster. See docs/packaging-plan.md for the design and what remains.

One command does everything — create the virtualenv, install the package, build the frontend, and launch:

./zmon-setup data/override.py

It works from any directory (/path/to/zMon/zmon-setup mycase.py is fine, and relative case paths resolve against wherever you ran it), and re-running is instant because each step is skipped when it's already done. --setup-only prepares everything without launching.

Bun is not needed to run zMon, and zmon-setup will build the frontend with the existing frontend/node_modules if bun isn't installed. Bun is still the frontend build tool when it is available.

Launching serves the API and the built SPA on an unused port chosen by the OS and opens a browser. Add --no-browser to just print the URL. Useful flags:

  • --port N — pin the port (for an SSH tunnel). Also ZMON_PORT.
  • --host — defaults to 127.0.0.1; anything else exposes the file browser to other users on the machine.
  • --exit-when-idle — shut down when no browser is connected (the old Bun behaviour). Off by default: it is unsafe behind an SSH tunnel.

Run the tests with:

./.venv/bin/python -m unittest discover -s tests

The API is served under /api/monitor. When mounted in zui, the frontend reads window.ZMON_CONFIG = { baseUrl, token }; standalone it needs no configuration.

Development Instructions

From the root of the project, install dependencies once:

bun install

Then start both the frontend and backend dev servers together:

./zmon-dev

This runs the backend directly with bun backend/server.js and the Vite dev server via bun run --filter frontend dev. The frontend is accessible at the URL Vite prints (usually http://localhost:5173) and communicates with the backend on its own port.

To run either side individually:

bun backend/server.js          # backend only
bun run --filter frontend dev  # frontend only

Build and Packaging Instructions

From the root directory of the project, run:

./zmon-package

or

bun run package

or

bun run build

This command will:

  1. Install dependencies and build the frontend application.
  2. Create a temporary release directory structure.
  3. Compile the backend into a standalone Bun executable for every supported platform/architecture (bun build --compile, one binary per target), embedding all backend dependencies — no node_modules, no Bun or Node install required to run any of them.
  4. Package everything into seven tarballs in the root directory:
    • zmon-<version>.tgz — a universal package containing every platform's binary (under bin/) plus zmon / zmon.bat launcher scripts that detect the local OS/architecture and dispatch to the right one. One download works everywhere.
    • zmon-<version>-<platform>.tgz — six single-architecture packages (linux-x64, linux-arm64, darwin-x64, darwin-arm64, windows-x64, windows-arm64), each containing just that platform's binary (named zmon / zmon.exe, no dispatcher needed) plus the frontend assets. Use these on a download page that lets users pick their platform directly, for a much smaller download than the universal package.
  5. Clean up the temporary release directory.

Extracting the universal tarball produces:

zmon-<version>/
  zmon           - launcher for Linux/macOS: detects OS + architecture and execs the matching binary
  zmon.bat       - launcher for Windows: detects architecture and execs the matching binary
  bin/           - one compiled executable per target
  public/        - built frontend static assets

Extracting a single-architecture tarball produces just the binary and assets directly:

zmon-<version>-linux-x64/
  zmon           - (or zmon.exe on Windows packages)
  public/

Either way, end users just run ./zmon <file> (macOS/Linux) or zmon.bat <file> / zmon.exe <file> (Windows) — no runtime installation step.

Note: the backend no longer shells out to tail/grep (they don't exist on Windows) — the /api/log and /api/cycle-times endpoints stream and filter log files in pure JS instead (bounded memory regardless of log file size), so behavior is identical across all platforms.

Release files for zmon 1.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for zmon 1.5.0
File Interpreter ABI Platform
zmon-1.5.0-py3-none-any.whl Python 3 none any Details

Release files / zmon-1.5.0-py3-none-any.whl

Download URL zmon-1.5.0-py3-none-any.whl
Size 525.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c0eb1cfd76fa0daa15988d1f3c10d71ffb88f7bbfbf4544d07f0b427c9510eeb
BLAKE2b-256 checksum
How to use checksums
d370076222c145d87ee029652105f82ba1b230dd1b24cc0ea90c71448aded6d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 6, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.5.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page