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

@radenadri/ohmydashboard

v0.6.1

Published

Agent monitoring dashboard for OpenCode — run with bunx ohmydashboard

Readme

OhMyDashboard

Agent monitoring dashboard for OpenCode and OhMyOpenCode.

See which agents are running, how many tokens you've burned, and what your sessions look like — all in one place.

OhMyDashboard

Quick Start

bunx @radenadri/ohmydashboard@latest

Opens at http://127.0.0.1:51234. That's it.

Options

bunx @radenadri/ohmydashboard --port 8080       # custom port
bunx @radenadri/ohmydashboard --host 0.0.0.0    # expose to network

Features

  • 5 Summary Cards — Total sessions, messages, tokens, cost, and active agents at a glance
  • Active Agents — Live view of running agents with model, directory, message count, and elapsed time
  • Agent Leaderboard — Who's doing all the work (ranked by message count)
  • Cost History — 14-day area chart of estimated costs
  • Model Distribution — Donut chart showing which models get the most use
  • Activity Heatmap — GitHub-style 7-day heatmap (hour x day-of-week)
  • Session Table — Full session list with TanStack Table: sorting, search, agent filter, pagination, expandable rows
  • Date Filtering — Today / Week / Month / All toggle
  • Auto-refresh — Dashboard updates every 15 seconds
  • Dark Mode — Because obviously

How It Works

OhMyDashboard reads OpenCode's local JSON storage directly from:

~/.local/share/opencode/storage/
├── sessions/     # Session metadata
├── messages/     # Message content
├── parts/        # Message parts (tool calls, results)
└── projects/     # Project registry

No database, no API keys, no configuration. If OpenCode runs on your machine, the dashboard just works.

Development

git clone <repo>
cd ohmydashboard
npm install
npm run dev

This starts two processes:

  • Vite dev server on :5174 (frontend with HMR)
  • Hono API server on :3456 (backend)

Build

npm run build    # TypeScript check + Vite build

Production (local)

bun bin/cli.ts   # Single server on :51234

Tech Stack

| Layer | Tech | |-------|------| | Frontend | React 19, Tailwind CSS v4, Recharts, TanStack Table, Lucide Icons | | Backend | Hono (serves API + static SPA) | | Runtime | Bun (CLI + server) | | Build | Vite 7, TypeScript 5.9 |

Project Structure

ohmydashboard/
├── bin/cli.ts                  # CLI entry (bunx ohmydashboard)
├── server/
│   ├── index.ts                # Hono app + dev server
│   ├── opencode-reader.ts      # Reads OpenCode JSON storage
│   └── cache.ts                # TTL cache (30s)
├── src/
│   ├── App.tsx                 # Dashboard layout
│   ├── components/
│   │   ├── Logo.tsx            # SVG logo
│   │   └── dashboard/          # All dashboard panels
│   ├── hooks/
│   │   └── useDashboardData.ts # Data fetching + auto-refresh
│   └── types/opencode.ts       # TypeScript interfaces
├── public/favicon.svg
└── package.json

Requirements

  • Bun >= 1.1.0
  • OpenCode installed and used (needs ~/.local/share/opencode/storage/ to exist)

Quick Diagnostics (if bunx fails)

If you see module resolution errors (example: Cannot find module '@hono/node-server'), run:

# inspect what would be published
npm pack --dry-run

# verify runtime dependency classification
npm run verify:runtime-imports

# verify packed artifacts contain CLI + runtime server files
npm run verify:pack

# full end-to-end local tarball smoke test
npm run verify:smoke

Expected smoke-test behavior:

  • Local tarball installs to temp directory
  • CLI boots successfully
  • GET /api/stats returns 200
  • / (dashboard UI) returns 200

Safe Release Checklist

Before npm publish, run:

npm run release:verify

This executes, in order:

  1. Runtime import audit (verify:runtime-imports)
  2. Full build (npm run build)
  3. Pack integrity check (verify:pack)
  4. Local tarball smoke test (verify:smoke)

If any step fails, publish is blocked by prepublishOnly.

License

MIT