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

@agenv/workstream-dashboard

v0.1.3

Published

Local Bun dashboard for AgENV workstreams and tmux observability

Readme

@agenv/workstream-dashboard

Local-only Bun dashboard for AgENV workstreams.

Install

This package is Bun-only.

Install Bun first, then install the package:

# install Bun: https://bun.sh
npm install -g @agenv/workstream-dashboard

The dashboard reads an existing AgENV repository on disk, so you still need a checked-out repo with work/ state and the @agenv/workstreams data model available through the repo contents.

What it shows

  • canonical current-workstream state from work/<stream-id>/tasks.json
  • runtime overlays derived from the canonical workstream snapshot
  • tmux session observability for matching workstream activity
  • optional embedded ttyd terminal views for read-only inspection

Local prerequisites

The dashboard is intentionally local-only in v1:

  • it always binds to 127.0.0.1
  • embedded terminal views only proxy loopback ttyd targets
  • terminal observability is read-only and should be treated as inspection only

Install or verify the local tools it depends on:

# macOS (Homebrew)
brew install tmux ttyd

# Debian/Ubuntu
sudo apt-get install tmux ttyd

# verify
tmux -V
ttyd -v

Dependency roles:

  • tmux: required to observe the live implementation/supervision sessions the dashboard correlates with the current workstream.
  • ttyd: required only for browser-embedded terminal views. If ttyd is missing, canonical status still works, but terminal views remain unavailable.

Start the server

From an AgENV repo root:

workstream-dashboard --repo-root "$(pwd)"

Or with an explicit path:

workstream-dashboard --repo-root /absolute/path/to/repo

Optional flags:

  • --repo-root <path>: repo to inspect; defaults to the current directory
  • --port <port>: local port; defaults to 43119

On startup the server prints a local URL such as http://127.0.0.1:43119/.

Routes and pages

HTML pages

  • /: current-workstream dashboard
  • /terminal-views/:terminalViewId: standalone page for one read-only terminal view
  • /terminal-views/:terminalViewId/ttyd: proxied local ttyd target used by the dashboard iframe

JSON + SSE endpoints

  • /api/health: server config plus observability capability summary
  • /api/current-workstream/snapshot: full dashboard snapshot
  • /api/current-workstream/status: canonical status summary
  • /api/current-workstream/tree: canonical tree snapshot (?batch_id=01.02 optional)
  • /api/current-workstream/runtime: canonical runtime summary
  • /api/current-workstream/supervision: canonical supervision summary
  • /api/current-workstream/observability: tmux + terminal observability summary
  • /api/current-workstream/live: SSE stream for snapshot/observability refresh events

Using the current-workstream dashboard

  1. Set the active workstream with work current --set "<stream-id>".
  2. Start the dashboard server and open / in a browser.
  3. Use the summary cards, stage list, and task tree to inspect canonical progress.
  4. Use the tmux panel to see matched local sessions for the current workstream.
  5. If ttyd is available, choose a terminal view to embed a read-only terminal for that session.

If the dashboard and observability disagree, trust the canonical snapshot first.

Source of truth vs observability

The dashboard has three layers:

  1. Canonical state: tasks.json is the source of truth. Status, tree, runtime, and supervision summaries are derived from persisted workstream state.
  2. tmux observability: live session discovery is correlated against canonical identifiers. It can be ready, degraded, unavailable, missing, stale, or ambiguous.
  3. ttyd terminal views: browser-friendly, read-only views layered on top of tmux sessions when local ttyd is available.

Only the first layer changes workstream truth. tmux and ttyd help operators inspect what is happening, but they do not determine completion, failure, or review state.