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

@wrongstack/webui-hq

v0.317.2

Published

HQ Command Center dashboard — offline React app for the cross-machine coordination surface (port 3499).

Readme

@wrongstack/webui-hq

HQ Command Center dashboard — the offline React app for the cross-machine coordination surface served at wstack --hq (port 3499).

Overview

This is a self-contained Vite + React app with zero CDN dependencies — everything bundles into dist/ so it works on offline/LAN/restricted-network machines. It connects to the HQ server's /ws/browser WebSocket channel and renders 12 views:

| View | Source | Purpose | |------|--------|---------| | Cockpit | hq.snapshot + /api/alerts | fleet, alert, and cost overview with quick actions | | Fleet | hq.snapshot | searchable graph/compact-list topology by full fleet, machine, or project, including mailbox-serve clients | | Console | transcript + hq.command_status | live chat plus leader/subagent messaging, interrupt controls, and inline command lifecycle | | Mailbox | hq.snapshot.mailboxes | unread/incomplete/high-priority counts | | Kanban | /api/projects/:projectId/kanban + kanban.snapshot | read-only project boards shared across clones and machines | | Cost | hq.snapshot.projects | per-project cost breakdown | | Brain | brain.event envelopes | decision/intervention timeline | | Worktrees | worktree.event envelopes | phase lifecycle swim-lanes | | Trends | /api/trends/cost | time-bucketed cost/activity | | Alerts | hq.alert + /api/alerts | live + history alert feed | | Control | POST /api/command | steer/abort/spawn/broadcast to clients | | Security | /api/auth/status + /api/auth/password | browser password and credential management |

Build

pnpm --filter @wrongstack/webui-hq build

Produces dist/ (index.html + assets + vendor chunk). The HQ server (packages/cli/src/hq-server.ts) resolves this dist/ via resolveHqDistDir() and serves it at /. If unbuilt, HQ falls back to the inline HQ_HTML dashboard so HQ is always functional.

Dev

pnpm --filter @wrongstack/webui-hq dev

Starts Vite dev server on port 5174. Point it at a running HQ server by setting the WS URL — in dev, the app derives the WS URL from window.location, so visit the HQ server directly (port 3499) for the served build, or proxy in dev.

Architecture

  • src/lib/hq-ws-client.ts/ws/browser client (reconnect, token from ?token= query, dispatches snapshot/event/alert/command-status frames).
  • src/store.ts — Zustand store for snapshots, events, alerts, command lifecycle, selections, and connection state.
  • src/app.tsx — operator shell, lazy view router, persistent light/dark mode.
  • src/views/ — the 10 views.

All types come from @wrongstack/core (HqSnapshot, HqEventEnvelope, etc.).