npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

nyx-audit-cli

v0.2.8

Published

Prove your homelab matches your intent — YAML network specs, live VLAN/VPN audits, drift detection, Omada/OPNsense import. Cross-platform CLI with MCP for AI agents.

Readme

nyx-audit-cli

Your homelab should be doing what you think it's doing. nyx proves it.

npm · GitHub · Spec reference

Cross-platform CLI that audits live network behavior against a declared YAML intent model — VLAN isolation, VPN routing, host counts, DNS, ports, ACLs, and drift over time. Every command emits structured JSON for automation and AI agents.

Install

npm install -g nyx-audit-cli

Try without a global install:

npx nyx-audit-cli version
npx nyx-audit-cli doctor

Works on macOS, Linux, Windows, and WSLx64 and arm64. Postinstall downloads the matching prebuilt binary from GitHub Releases with embedded SHA-256 verification.

npm 9+ / Ubuntu 26+ note: npm's allow-scripts security policy may block the postinstall script, so the binary won't be downloaded at install time. No worries — if nyx is invoked without a binary present it detects this and downloads automatically. You can also trigger it manually:

node $(npm root -g)/nyx-audit-cli/install.js

Quickstart

# 1. Install (above)

# 2. Check prerequisites (nmap, interfaces, spec hints)
nyx doctor

# 3. Generate a starter spec from your machine's RFC1918 networks
nyx init --output my-network.yaml

# 4. Run a full audit against declared intent
sudo nyx audit --spec my-network.yaml

After a clean audit, lock in a baseline from the saved snapshot (each audit writes to ~/.nyx/snapshots/):

sudo nyx audit --spec my-network.yaml
nyx snapshot list
nyx snapshot baseline ~/.nyx/snapshots/snapshot-YYYYMMDD-HHMMSS.json

Compare later when something feels off:

sudo nyx audit --spec my-network.yaml && nyx drift status

What it does

sudo nyx audit --spec homelab.yaml

One spec file. Eight assertion types. Concurrent live checks:

  1. Subnet discovery — host counts per VLAN (nmap -sn)
  2. Isolation — prove zones cannot reach each other
  3. VPN routing — split-tunnel vs full-tunnel behavior
  4. Route checks — gateway and path correctness
  5. Port checks — TCP reachability
  6. DNS checks — resolution and optional DNSSEC
  7. Network health — latency, loss, MTU
  8. ACL checks — Omada / OPNsense policy alignment

Results preserve spec order, include evidence, and map to exit codes (0 pass, 1 fail, 2 error, 3 warn).

Why nyx?

| Ad-hoc checks | nyx | |---------------|-----| | Ping one host, hope VLANs are fine | Declared intent across every network | | "It worked yesterday" | Snapshot baseline + drift diff | | Tribal knowledge in your head | Versioned YAML spec in git | | Scattered shell one-liners | One audit, structured JSON output | | Manual firewall spot-checks | acl_check against Omada / OPNsense |

Built for homelab operators, platform engineers, and SREs who run segmented networks and need proof — not vibes.

Assertion types

| Type | Validates | |------|-----------| | subnet_discovery | Host count in a CIDR | | isolation | Zone-to-zone deny/allow | | vpn_route | Traffic uses the expected tunnel | | route_check | Route to a target exists | | port_check | TCP ports open/closed | | dns_check | Resolution (+ optional DNSSEC) | | network_health | Latency, loss, MTU | | acl_check | Controller policy enforcement |

Remote probes: set runner: on assertions to execute checks over SSH from another VLAN.

Vendor integrations

| Provider | Commands | What you get | |----------|----------|--------------| | Omada SDN | nyx omada info \| import \| check | Import networks/policies into a spec | | OPNsense | nyx opnsense info \| import \| check | API-driven spec from live firewall |

AI agent integration (MCP)

Built-in Model Context Protocol server — audit, discover, route-check, and drift tools for Claude Code, Cursor, and other MCP clients.

Claude Code:

claude mcp add nyx -- npx -y nyx-audit-cli mcp serve --transport stdio

Claude Desktop / Cursor:

{
  "mcpServers": {
    "nyx": {
      "command": "npx",
      "args": ["-y", "nyx-audit-cli", "mcp", "serve", "--transport", "stdio"]
    }
  }
}

Prerequisites

  • nmap — required for discovery (nyx doctor prints the install command for your OS)
  • sudo — needed for some subnet scans on Linux/macOS

Commands

| Command | Purpose | |---------|---------| | audit | Run all assertions from a YAML spec | | init | Auto-detect networks and generate a starter spec | | doctor | Environment and spec validation | | discover | nmap host discovery for a subnet | | check-vpn | Split-tunnel vs full-tunnel check | | drift status | Compare latest audit to baseline | | snapshot baseline | Lock in a known-good audit | | mcp serve | Start MCP stdio server | | omada / opnsense | Vendor import and check |

Global flags: --json, --spec, --verbose, --timeout.

Documentation

License

MIT — see LICENSE.

nyx is independent tooling — not affiliated with TP-Link/Omada, OPNsense, or the nmap project.