vigil

module
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2026 License: MIT

README

Vigil

Continuous network reliability monitor with a desktop UI. Pings your router, anycast DNS, and real call-quality endpoints (Teams, Zoom, Outlook) on a fixed interval. Samples Wi-Fi signal. Detects outages. Generates the receipts you hand your ISP or property manager when they tell you the network is fine.

Lives in the system tray. Works on macOS, Windows, and Linux.

Vigil — from the Roman Vigiles, Rome's night watch. Built because an ISP and a managed property couldn't give a straight answer.

Screenshots

Dashboard — is the network ok right now?

Live RTT chart over the last 15 minutes, per-target status tiles, and a status banner that turns red the moment three consecutive failures land.

Outages — the receipts

Every detected outage with exact start/end timestamps, duration, consecutive-failure count, and error-code breakdown. This is the page you screenshot when your ISP says "everything's fine."

Vigil outages timeline with timestamps and error breakdown

History — time-range explorer

Pick any window from 1 hour to 30 days. RTT trend, uptime %, p50/p95/p99 latency, and per-target stats. Generate CSV / JSON / HTML reports from any view.

Vigil history view with RTT trend and per-target stats

Install

Download the latest release from GitHub Releases. Pick the file for your OS:

OS File Notes
macOS Apple Silicon (M1 / M2 / M3 / M4) Vigil_<version>_aarch64.dmg
macOS Intel Vigil_<version>_x64.dmg
Windows 10/11 (x64) Vigil_<version>_x64-setup.msi Installer
Linux (Debian / Ubuntu) vigil_<version>_amd64.deb sudo dpkg -i vigil_*.deb
Linux (everything else) vigil_<version>_amd64.AppImage chmod +x then run
macOS
  1. Open the .dmg and drag Vigil.app to your Applications folder.
  2. Open Applications, double-click Vigil.

If you see "Vigil can't be opened because Apple cannot check it for malicious software": that means this build is unsigned. Open System Settings → Privacy & Security, scroll to the bottom, and click "Open Anyway" next to the Vigil notice. Confirm in the prompt that follows. After this first time, Vigil opens normally on every launch.

(Signed builds skip this step entirely.)

Windows
  1. Run the .msi installer. Defender SmartScreen may show "Windows protected your PC" if the build is unsigned.
  2. Click More info → Run anyway.
  3. Walk through the installer (one screen, no choices to make).
  4. Vigil launches automatically; check the system tray (bottom-right corner).
Linux

.deb (Ubuntu, Debian, Mint, Pop!_OS):

sudo dpkg -i vigil_*_amd64.deb
sudo apt-get install -f   # if dependency errors, this resolves them

.AppImage (Fedora, Arch, NixOS, anything else):

chmod +x Vigil_*_amd64.AppImage
./Vigil_*_amd64.AppImage

ICMP probes use unprivileged ICMP sockets. On Ubuntu / Fedora this works without sudo for any user; on locked-down distros you may need to add yourself to net.ipv4.ping_group_range.

First launch

  1. The dashboard begins probing immediately — every 2.5 seconds, 13 default targets (router + Google/Cloudflare DNS + Teams/Zoom/Outlook + STUN). Within seconds you'll see "Last cycle: 13/13 ok" if everything's healthy.
  2. Vigil lives in the tray — close the window and it keeps probing in the background. Right-click the tray icon for Show / Hide / Open data folder / Launch on login / Quit.
  3. Outages auto-detect — three consecutive failures of the same target trigger an outage event. Lose Wi-Fi for ten seconds and the dashboard goes red.
  4. Generate a report any time — History page → Generate report. Pick CSV / JSON / HTML, choose a folder. The HTML report is a self-contained dashboard you can email to your ISP.

Data lives in:

  • macOS: ~/Library/Application Support/dev.vigil.desktop/
  • Windows: %APPDATA%\dev.vigil.desktop\
  • Linux: ~/.local/share/dev.vigil.desktop/

The tray menu has an "Open data folder" shortcut.

Keyboard shortcuts

Press Shift+? from anywhere in the app to see the full shortcut overlay. The essentials:

  • ⌘1 … ⌘5 (Ctrl+… on Windows / Linux) — jump between Dashboard, History, Outages, Targets, Settings
  • ⌘S — save Settings
  • Esc — close any modal

What's where

cmd/vigil-sidecar/        Entry point for the Go sidecar
internal/                 Sidecar internals (probes, monitor, aggregator, IPC, storage)
pkg/                      Reusable Go packages (errors, log, buildinfo)
db/ent/schema/            Ent schemas (single source of truth for the SQLite layout)
apps/desktop/             Tauri shell + React frontend
packages/configs/         Tamagui config, theme controller, fonts
scripts/                  Build + release helpers
.github/workflows/        CI + release pipelines

The desktop app is a Tauri 2.x shell wrapping a Go sidecar over stdio JSON-RPC. The sidecar owns the probe loop, SQLite, aggregation, and outage detection. The shell handles tray, window lifecycle, and the auto-updater. See CLAUDE.md for the full architecture, conventions, and release runbook.

Development

Prerequisites
Quick start
# Install JS deps
pnpm install

# Generate Ent code (only needed first time / after schema changes)
make gen-ent

# Build the Go sidecar for the host platform and drop it where Tauri expects it
make build-sidecar

# Run the desktop app in dev mode (Vite + Tauri)
make desktop-dev
Make targets

Run make help to see them all. The frequently-used ones:

  • make gen-ent — Run Ent codegen after editing schemas in db/ent/schema/.
  • make build-sidecar — Cross-compile the Go sidecar for the host platform.
  • make desktop-dev — Start Vite + Tauri in dev mode (depends on build-sidecar).
  • make desktop-build — Production bundle (.dmg / .msi / AppImage).
  • make desktop-icons — Regenerate all Tauri icon sizes from apps/desktop/app-icon.png.
  • make lint — Run all linters via pre-commit.
  • make test — Run Go tests.

Contributing

Issues and PRs welcome. A few ground rules:

  • Keep the watchman voice — Vigil reports state matter-of-factly. No alarm-emoji panic, no gamification, no condescension.
  • Sidecar logs go to a file in the OS app-data dir. Stdout is reserved for IPC; never fmt.Println from the sidecar.
  • Probe defaults are conservative on purpose (2.5 s cadence, 2 s timeout). Don't tighten them without a reason — Vigil's job is to not be the thing degrading the network.
  • See CLAUDE.md for architecture, conventions, and the release runbook.

License

MIT. See LICENSE.

Credits

Built and maintained by SID Technologies. Vigil is one of SID's open-source tools — see also Pilum (multi-cloud deployment CLI).

Directories

Path Synopsis
cmd
vigil-sidecar command
Vigil sidecar — long-running Go process spawned by the Tauri shell.
Vigil sidecar — long-running Go process spawned by the Tauri shell.
db
Package db wires the Ent client to SQLite under the user's app data dir.
Package db wires the Ent client to SQLite under the user's app data dir.
ent
Package ent hosts the go:generate trampoline for Ent codegen.
Package ent hosts the go:generate trampoline for Ent codegen.
ent/schema
Package schema contains the ent schema definitions.
Package schema contains the ent schema definitions.
internal
aggregator
Package aggregator builds 1-min, 5-min, and 1-hour rollup buckets from raw probe samples.
Package aggregator builds 1-min, 5-min, and 1-hour rollup buckets from raw probe samples.
app
Package app is the Vigil sidecar entry point.
Package app is the Vigil sidecar entry point.
constants
Package constants holds time math, config defaults, and statistical thresholds.
Package constants holds time math, config defaults, and statistical thresholds.
ipc
Package ipc implements the stdio JSON-RPC protocol between the Tauri shell and the sidecar.
Package ipc implements the stdio JSON-RPC protocol between the Tauri shell and the sidecar.
monitor
Package monitor owns the probe loop and flusher.
Package monitor owns the probe loop and flusher.
netinfo
Package netinfo wraps OS-specific network introspection (default gateway, Wi-Fi state) behind a small cross-platform interface.
Package netinfo wraps OS-specific network introspection (default gateway, Wi-Fi state) behind a small cross-platform interface.
outages
Package outages detects reachability gaps live as probe results stream in and persists them as Outage rows.
Package outages detects reachability gaps live as probe results stream in and persists them as Outage rows.
probes
Package probes contains the four probe implementations Vigil uses to test network reachability.
Package probes contains the four probe implementations Vigil uses to test network reachability.
reports
Package reports renders shareable artifacts (CSV / JSON / HTML) from raw probe samples.
Package reports renders shareable artifacts (CSV / JSON / HTML) from raw probe samples.
retention
Package retention prunes old samples and aggregations hourly.
Package retention prunes old samples and aggregations hourly.
runloop
Package runloop provides the loop-with-ticker scaffolding shared by Vigil's periodic goroutines.
Package runloop provides the loop-with-ticker scaffolding shared by Vigil's periodic goroutines.
stats
Package stats provides pure analysis functions used by the aggregator and report generator.
Package stats provides pure analysis functions used by the aggregator and report generator.
storage
Package storage is the persistence layer above Ent.
Package storage is the persistence layer above Ent.
pkg
buildinfo
Package buildinfo exposes version, git commit, and build timestamp.
Package buildinfo exposes version, git commit, and build timestamp.
errors
Package errors is a drop-in replacement for the stdlib errors package that carries slog-style structured attributes alongside each error.
Package errors is a drop-in replacement for the stdlib errors package that carries slog-style structured attributes alongside each error.
log
Package log configures the zerolog global logger.
Package log configures the zerolog global logger.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL