{"id":50675274,"url":"https://github.com/ziuus/zervox","last_synced_at":"2026-06-08T15:03:33.771Z","repository":{"id":344874731,"uuid":"1171948010","full_name":"ziuus/Zervox","owner":"ziuus","description":"Node.js monitoring daemon experiment with automated health checks and recovery actions.","archived":false,"fork":false,"pushed_at":"2026-05-21T22:32:21.000Z","size":110,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-22T07:47:22.237Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://zervox.vercel.app","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ziuus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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-03-03T19:36:01.000Z","updated_at":"2026-05-21T22:32:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ziuus/Zervox","commit_stats":null,"previous_names":["ziuus/zervox"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ziuus/Zervox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziuus%2FZervox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziuus%2FZervox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziuus%2FZervox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziuus%2FZervox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ziuus","download_url":"https://codeload.github.com/ziuus/Zervox/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziuus%2FZervox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34067353,"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-08T02:00:07.615Z","response_time":111,"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":[],"created_at":"2026-06-08T15:03:31.771Z","updated_at":"2026-06-08T15:03:33.766Z","avatar_url":"https://github.com/ziuus.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zervox\n\nA Rust watchdog for Node.js apps and long-running development commands.\n\nZervox can run commands in the foreground for quick checks, or start a detached supervisor that keeps runtime state, tracks PIDs, writes persistent logs, restarts crashed processes with backoff, and reports useful crash hints.\n\n## Why Rust\n\n- Ships as a single binary\n- Lower memory footprint than a Node daemon\n- Better fit for long-running process supervision\n- Easier to install on servers and developer machines\n- Strong foundation for native process control, systemd integration, and safe AI-assisted diagnostics\n\n## Implemented\n\n- `zervox check -- \u003ccommand\u003e` - run once and summarize failures\n- `zervox start -- \u003ccommand\u003e` - foreground watchdog with restart limit\n- `zervox start --detach --name \u003cname\u003e -- \u003ccommand\u003e` - background supervisor\n- `zervox add \u003cname\u003e -- \u003ccommand\u003e` - save a command locally\n- `zervox up \u003cname\u003e` - start a saved command in detached mode\n- `zervox status [name]` - show runtime status, supervisor PID, child PID, restarts, and log path\n- `zervox logs \u003cname\u003e` - tail persistent logs\n- `zervox stop \u003cname\u003e` - stop supervisor and child process\n- `zervox restart \u003cname\u003e` - restart a saved supervised process\n- `zervox cleanup` - remove stopped runtime records and mark stale supervisors\n- `zervox systemd \u003cname\u003e` - print a user-level systemd unit for a tracked command\n- `zervox systemd \u003cname\u003e --install` - install the user-level systemd unit\n- `zervox list`, `zervox run`, `zervox remove`, `zervox doctor`\n- Crash hints for common Node errors like port conflicts, missing modules, permission issues, and syntax errors\n\n## Runtime files\n\n- Config: `~/.config/zervox/processes.json`\n- Runtime state: `~/.local/state/zervox/runtime.json`\n- Logs: `~/.local/state/zervox/logs/\u003cname\u003e.log`\n\nUse `zervox doctor` to print the exact paths on your machine.\n\n## Build\n\n```bash\ncargo build --release\n```\n\nThe binary will be available at:\n\n```bash\n./target/release/zervox\n```\n\n## Usage\n\nRun a command once:\n\n```bash\nzervox check -- node server.js\n```\n\nRun in the foreground and restart it up to five times:\n\n```bash\nzervox start --max-restarts 5 -- node server.js\n```\n\nStart as a detached supervised process:\n\n```bash\nzervox start --detach --name api --max-restarts 5 -- node server.js\n```\n\nInspect and operate it:\n\n```bash\nzervox status api\nzervox logs api -n 50\nzervox restart api\nzervox stop api\n```\n\nJavaScript entry files are automatically run with Node:\n\n```bash\nzervox start server.js\n```\n\nTrack a command for later:\n\n```bash\nzervox add api --max-restarts 5 -- node server.js\nzervox list\nzervox up api\n```\n\nRun in another directory:\n\n```bash\nzervox start --detach --name api --cwd ./apps/api -- npm run dev\n```\n\n## Example crash summary\n\n```text\nCrash detected\ncommand: node server.js\nexit code: 1\nhint: port conflict detected. Stop the existing process or change PORT.\n\nrecent output\n  Error: listen EADDRINUSE: address already in use :::3000\n```\n\n## Production-readiness status\n\nZervox now has the core pieces of a production watchdog:\n\n- Detached supervisor process\n- PID tracking for supervisor and child\n- Persistent runtime state\n- Persistent per-process logs\n- Stop/restart/status/log commands\n- Restart limit and exponential backoff\n- Stale PID detection for killed supervisors or rebooted machines\n- User-level systemd unit generation\n- Integration tests around the real CLI and detached lifecycle\n- Strict Rust checks passing\n\nStill needed before a serious public release:\n\n1. GitHub Actions release pipeline for Linux binaries\n2. Optional AI diagnostics with review-before-run safety controls\n3. TUI or web dashboard\n4. More platform testing outside Linux/systemd\n\n## Install from release\n\nThe recommended public install path is a one-line installer script. The script downloads the prebuilt release binary, verifies the SHA256 checksum when available, and installs `zervox` into `~/.local/bin` by default.\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/ziuus/Zervox/master/scripts/install.sh | bash\n```\n\nInstall a specific version:\n\n```bash\nVERSION=v0.1.0 curl -fsSL https://raw.githubusercontent.com/ziuus/Zervox/master/scripts/install.sh | bash\n```\n\nInstall somewhere else:\n\n```bash\nBIN_DIR=/usr/local/bin curl -fsSL https://raw.githubusercontent.com/ziuus/Zervox/master/scripts/install.sh | bash\n```\n\nUninstall:\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/ziuus/Zervox/master/scripts/install.sh | bash -s -- --uninstall\n```\n\n## Release\n\nTag a version to trigger the Linux binary release workflow:\n\n```bash\ngit tag v0.1.0\ngit push origin v0.1.0\n```\n\nThe workflow uploads `zervox-x86_64-unknown-linux-gnu.tar.gz` and a SHA256 file.\n\n## Development\n\n```bash\ncargo fmt --check\ncargo test --all-targets\ncargo clippy --all-targets --all-features -- -D warnings\ncargo run -- check -- node -e \"console.log('ok')\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziuus%2Fzervox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fziuus%2Fzervox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziuus%2Fzervox/lists"}