{"id":51030592,"url":"https://github.com/consi/haze","last_synced_at":"2026-06-22T00:01:39.354Z","repository":{"id":360176212,"uuid":"1241355139","full_name":"consi/haze","owner":"consi","description":"HAZE - Single-binary network latency monitor","archived":false,"fork":false,"pushed_at":"2026-06-09T22:03:53.000Z","size":1285,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-10T00:05:48.252Z","etag":null,"topics":["latency","monitoring","network","smokeping"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/consi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-17T09:29:03.000Z","updated_at":"2026-06-09T22:03:58.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/consi/haze","commit_stats":null,"previous_names":["consi/haze"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/consi/haze","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/consi%2Fhaze","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/consi%2Fhaze/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/consi%2Fhaze/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/consi%2Fhaze/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/consi","download_url":"https://codeload.github.com/consi/haze/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/consi%2Fhaze/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34629658,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["latency","monitoring","network","smokeping"],"created_at":"2026-06-22T00:01:01.707Z","updated_at":"2026-06-22T00:01:39.240Z","avatar_url":"https://github.com/consi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Haze\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/screenshot.png\" alt=\"Haze dashboard\" width=\"900\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  A network latency monitor with a smoke-style UI. Probes hosts on a schedule,\n  draws the latency distribution as percentile bands whose opacity reflects\n  packet loss.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/consi/haze/actions/workflows/test.yml\"\u003e\u003cimg src=\"https://github.com/consi/haze/actions/workflows/test.yml/badge.svg\" alt=\"Tests\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/consi/haze/releases/latest\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/consi/haze?include_prereleases\u0026sort=semver\" alt=\"Latest release\"\u003e\u003c/a\u003e\n  \u003ca href=\"LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-AGPL--3.0--or--later-blue.svg\" alt=\"License: AGPL-3.0-or-later\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/consi/haze/pkgs/container/haze\"\u003e\u003cimg src=\"https://img.shields.io/badge/ghcr.io-consi%2Fhaze-2496ed?logo=docker\" alt=\"Container image\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Features\n\n- Six probe types:\n  - `ping` - ICMP echo round-trip time\n  - `dns` - DNS resolution latency\n  - `tcp_connect` - TCP handshake time\n  - `tls_connect` - TCP + TLS handshake time\n  - `http_ttfb` - HTTP request to first response byte\n  - `http_total` - HTTP request including body download\n- Percentile bands (median + outer envelopes) with packet-loss-driven opacity.\n- Multi-host overlay views, per-host detail with alerting hooks.\n- Auth via password and `WebAuthn` passkeys (`HAZE_ORIGIN` must be set for passkeys).\n- Cross-instance replication: pull groups (or the whole tree) from peer Haze instances over a long-lived SSE stream, with loop-detection and block/unblock controls.\n- One static binary, frontend assets embedded - no separate webserver.\n- SQLite storage; on first boot, an `admin` user is provisioned with a random password printed to logs.\n\n## Install\n\nPick the format that matches your platform. All artefacts are signed only by GitHub's release attestations; verify with `gh attestation verify` if you need supply-chain assurance.\n\n### Binary\n\n```bash\n# Linux amd64\ncurl -L https://github.com/consi/haze/releases/latest/download/haze-x86_64-unknown-linux-musl -o haze\nchmod +x haze\n./haze\n```\n\nReplace the asset name with `haze-aarch64-unknown-linux-musl` for arm64.\n\n### Debian / Ubuntu\n\n```bash\ncurl -LO https://github.com/consi/haze/releases/latest/download/haze_\u003cversion\u003e_amd64.deb\nsudo dpkg -i haze_\u003cversion\u003e_amd64.deb\nsudo systemctl enable --now haze\njournalctl -u haze -f       # grab the admin password printed on first boot\n```\n\n### Fedora / RHEL\n\n```bash\nsudo rpm -i https://github.com/consi/haze/releases/latest/download/haze-\u003cversion\u003e-1.x86_64.rpm\nsudo systemctl enable --now haze\njournalctl -u haze -f\n```\n\n### Docker\n\n```bash\ndocker run --rm \\\n    -p 4420:4420 \\\n    -v haze-data:/var/lib/haze \\\n    --ulimit nofile=65536:65536 \\\n    --cap-add NET_RAW \\\n    --sysctl net.ipv4.ping_group_range=\"0 65535\" \\\n    ghcr.io/consi/haze:latest\n```\n\nThe image is distroless (`gcr.io/distroless/static-debian12:nonroot`) and ships only the static binary. Multi-arch (`linux/amd64`, `linux/arm64`).\n\nThe `--ulimit` flag matches the `LimitNOFILE=65536` the systemd `.deb` install applies. Each monitored host keeps two file descriptors open (lock + active WAL); a deployment of ~400 hosts sits within ~100 FDs of the kernel default of 1024, and a burst of parallel `/series` requests can push the process over. Skip the flag and you'll see `EMFILE` / \"Too many open files\" once you scale past a couple of hundred hosts.\n\n`--cap-add NET_RAW` + the `ping_group_range` sysctl let the non-root container open ICMP sockets - required for the `ping` probe. Drop both if you don't need ping probes (you can still use `dns`, `tcp_connect`, `tls_connect`, `http_ttfb`, `http_total`).\n\n## Quick start\n\n1. Run the binary or service. Default bind is `127.0.0.1:4420`; override with `HAZE_BIND=0.0.0.0:4420` (or `--bind`) to expose it on the network.\n2. Open \u003chttp://localhost:4420\u003e.\n3. Sign in as `admin` with the random password **printed to logs on first boot**.\n4. Add a host: pick a target, choose a probe type, set the interval.\n5. Watch the smoke chart fill in.\n\n## Configuration\n\n| Variable          | Default              | Notes                                                                                |\n|-------------------|----------------------|--------------------------------------------------------------------------------------|\n| `HAZE_BIND`       | `127.0.0.1:4420`     | Bind address. Use `0.0.0.0:4420` to listen on all interfaces.                        |\n| `HAZE_DATA_DIR`   | `./data` (binary), `/var/lib/haze` (systemd) | SQLite database and probe chunk files (HZC).              |\n| `HAZE_LOG`        | `info`               | `tracing-subscriber` directive, e.g. `haze=debug,info`.                              |\n| `HAZE_ORIGIN`     | _unset_              | Public origin (`https://haze.example.com`) - required for WebAuthn passkeys.         |\n| `HAZE_BASE_URL`   | _unset_ (root `/`)   | URL path prefix to deploy under, e.g. `/haze`. See [Reverse-proxying under a sub-path](#reverse-proxying-under-a-sub-path). |\n\nCLI flags mirror the env vars (`--bind`, `--data-dir`, `--log`, `--origin`, `--base-url` / `--base-path`).\n\n### Reverse-proxying under a sub-path\n\nBy default Haze serves the UI and API at the root path (`/`). To deploy it under a sub-path - e.g. `https://example.com/haze/` - set `HAZE_BASE_URL` (or pass `--base-path /haze`) on the haze process. The same binary / Docker image works at any path; the frontend is rewritten at serve time so no rebuild is needed.\n\nThe prefix must be a URL path only - no scheme, no host. `/haze` and `/monitoring/haze` are valid; `https://x.com/haze` is rejected at startup.\n\nExample nginx config:\n\n```nginx\nlocation /haze/ {\n    proxy_pass http://127.0.0.1:4420/haze/;   # note: prefix must be passed through, not stripped\n    proxy_set_header Host $host;\n    proxy_set_header X-Forwarded-Proto $scheme;\n    proxy_http_version 1.1;\n    proxy_buffering off;                      # required for the SSE stream at /haze/api/v1/events\n}\n```\n\nContainer/k8s liveness probes can keep hitting `/healthz` directly - that route is always served at the root path regardless of `HAZE_BASE_URL` so the probe doesn't have to go through the reverse proxy. The same probe is also reachable at `${HAZE_BASE_URL}/healthz` for proxied checks.\n\n## Building from source\n\nYou need a recent stable Rust toolchain (the `rust-toolchain.toml` pins `stable`), Node.js 22+, and [`just`](https://github.com/casey/just) for the orchestration recipes.\n\n```bash\njust setup       # cargo fetch + npm ci\njust dev         # prints the two commands to run in parallel terminals\njust release     # builds frontend, then a single binary at target/release/haze\n```\n\nTo cross-compile static musl binaries the same way the release workflow does:\n\n```bash\njust setup-tools                                 # installs cargo-zigbuild etc.\ncargo zigbuild --release --target x86_64-unknown-linux-musl -p haze-cli\ncargo zigbuild --release --target aarch64-unknown-linux-musl -p haze-cli\n```\n\n## License\n\n[AGPL-3.0-or-later](LICENSE). If you run Haze on a network-accessible service, the AGPL's network-use clause applies - you must offer the source to users of that service.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconsi%2Fhaze","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconsi%2Fhaze","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconsi%2Fhaze/lists"}