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

@cveld/claude-code-dashboard

v0.4.0

Published

A local web dashboard for browsing Claude Code sessions, projects, and transcripts from ~/.claude/.

Readme

Claude Code Dashboard

A local web app for browsing Claude Code sessions from ~/.claude/. Built with Next.js 16, React 19, and Tailwind 4.

Run it

No clone, no install — just run it with npx:

npx @cveld/claude-code-dashboard          # http://localhost:3000
npx @cveld/claude-code-dashboard -p 4000  # custom port

It reads from your local ~/.claude/ directory. Open the printed URL in your browser.

Development

npm install
npm run dev   # http://localhost:3000

Releasing

Releases are automated with release-please. Push Conventional Commits (feat:, fix:, …) to main; release-please opens a release PR that bumps the version and updates CHANGELOG.md. Merging that PR tags a GitHub release and the workflow publishes the package to npm with provenance.

Publishing uses npm trusted publishing (OIDC) — no NPM_TOKEN secret. Configure the trusted publisher once on npmjs.com for @cveld/claude-code-dashboard: GitHub repo cveld/claude-code-dashboard, workflow release-please.yml. The package must already exist, so the very first version is published manually (npm publish --access public).

Features

  • Projects overview — all projects with unread markers and last-activity timestamps
  • Sessions browser — sessions across all projects, grouped by time period (Today, Yesterday, This week, …), with collapsible groups
  • Transcript viewer — full transcript with Markdown rendering (tables, code blocks, GFM)
  • Inline tail preview — expand the last N messages without leaving the sessions list; "Load more" adds 10 messages at a time
  • Unread tracking — blue dot per session; bulk mark read/unread per group; optional auto-mark on open (configurable)
  • Real-time updates — SSE connection detects changes in ~/.claude/projects/ and refreshes automatically
  • Project filter pills — filter by the first path segment of the project path
  • Sort toggle — newest or oldest first, persisted via localStorage
  • Active sessions — reads ~/.claude/sessions/*.json for running Claude processes
  • IDE window detection — reads ~/.claude/ide/*.lock to show open IDE windows; can open a file directly in the right IDE
  • Hook receiver — POST /api/hooks from Claude Code hooks (stop, notification) triggers real-time notifications in the dashboard

Pages

| URL | Content | |---|---| | / | Projects list with unread count and last activity | | /sessions | All sessions grouped by time period, All/Unread toggle, inline tail expand | | /projects/[slug] | Sessions for one project with per-session mark read/unread | | /projects/[slug]/sessions/[id] | Full transcript | | /settings | App settings (e.g. auto-mark-as-read) |

Data

The app reads local files only — no authentication, no external server.

| File | Purpose | |---|---| | ~/.claude/projects/<slug>/*.jsonl | Session transcripts | | ~/.claude/sessions/*.json | Active Claude processes | | ~/.claude/ide/*.lock | Open IDE windows | | ~/.claude/dashboard-read.json | Read state (managed by the app) | | ~/.claude/dashboard-settings.json | App settings |

Slug format

Claude encodes paths as slugs: :-, path separators → -.
c:\work\git\fooc--work-git-foo

Setting up Claude Code hooks

Add the following to ~/.claude/settings.json to forward stop and notification events to the dashboard:

{
  "hooks": {
    "Stop": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "curl -s -X POST http://localhost:3000/api/hooks -H 'Content-Type: application/json' -d '{\"event\":\"stop\",\"transcriptPath\":\"$CLAUDE_TRANSCRIPT_PATH\",\"sessionId\":\"$CLAUDE_SESSION_ID\"}'"
          }
        ]
      }
    ]
  }
}