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

@naisys/supervisor

v3.0.3

Published

NAISYS Supervisor - Web UI for monitoring agents, logs, and messaging

Readme

@naisys/supervisor (server)

← Back to Supervisor | ← Back to main README

Fastify server for the NAISYS Supervisor. Connects to the hub over Socket.IO for live data, serves the bundled React client, and exposes a permission-aware REST API that's also callable by agents via ns-api thanks to HATEOAS action gating.

This is the npm-published half of @naisys/supervisor — the bundled client lives in ../client/ at dev time and gets copied into client-dist/ for publish. Data lives in the hub (@naisys/hub-database); the supervisor owns only auth/session/passkey state in @naisys/supervisor-database.

Running

Standalone (against an existing hub):

npm install @naisys/supervisor
npx naisys-supervisor

See the Supervisor README for full configuration (NAISYS_FOLDER, HUB_URL, SERVER_PORT, PUBLIC_READ) and feature list.

Dev mode (from monorepo):

npm run dev --workspace=@naisys/supervisor

Structure

  • supervisorServer.ts — Fastify bootstrap, hub Socket.IO client, static client, swagger/scalar API reference
  • routes/ — per-resource routes (agents, users, mail, hosts, runs, costs, variables, etc.) with co-located HATEOAS action/link builders
  • services/ — business logic kept out of routes
  • database/ — supervisor DB wiring, schema-version checks, migration deploy
  • hateoas.ts / schemaRegistry.ts / routeHelpers.ts — generic HATEOAS helpers, per-endpoint schema discovery, response helpers
  • authMiddleware.ts — session + API-key authentication, permission gating (permGate)
  • paging.ts — forward/backward pagination
  • tests/ — Vitest unit/integration tests

API design

  • HATEOAS-driven REST API — see doc 012. The same permission system gates both UI buttons and API endpoints
  • Disabled actions include a reason
  • Scalar UI for API reference (gated behind auth); OpenAPI spec hidden from agents

Auth (doc 007)

  • Passkey-first WebAuthn login, optional bcrypt password
  • One-time registration tokens (QR-code-friendly), step-up auth on sensitive operations
  • Multi-session support; cookie sharing with co-hosted ERP
  • Bootstrap superadmin via printed registration URL on first run
  • Per-user/agent API keys with rotation

Live data

Heartbeat-driven agent/host status, live mail/chat, run logs with attachments — all pushed from the hub over Socket.IO. The supervisor is a thin UI + API layer; the hub is the source of truth.

Scripts

  • npm run devtsx watch against src/supervisorServer.ts
  • npm run buildtsc
  • npm run bundle — copy the built client into client-dist/ for publish
  • npm run start — run dist/supervisorServer.js
  • npm test — Vitest

License

MIT