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

claw-insights

v0.1.4

Published

Real-time monitoring dashboard for OpenClaw gateway

Readme


Features

  • Zero Intrusion — Pure read-only sidecar; no code changes, no cloud calls, data never leaves your machine
  • Session Replay — Full transcript timeline with role separation, tool calls, and per-turn token tracking
  • Shareable Snapshots — Generate PNG/SVG status cards via REST API with themes, languages, and detail levels
  • Metrics Dashboard — Per-model token breakdown, error rates, and uptime over 30m / 1h / 6h / 12h / 24h
  • Event Logs — Structured viewer with density heatmap, filtering, and search
  • One Command Setup — Auto-discovers your running gateway, lightweight SQLite storage
  • Dark / Light · EN / 中文 — Full theming and i18n with runtime toggle

Quick Start

# Install
npm install -g claw-insights

# Start (auto-connects to your running OpenClaw gateway)
claw-insights start

On launch you'll see an access URL:

✅ Claw Insights v0.1.0    ready in 1.2s

➜  Open:  http://127.0.0.1:41041/?token=abc123...
   Auth:  token (auto-generated)

PID 12345 · daemon · Port 41041

Open the URL — token is exchanged for a session cookie, and you're in.

claw-insights status          # Show current access URL
claw-insights status --json   # Machine-readable status (includes auth.accessUrl)
claw-insights stop            # Stop daemon
claw-insights start --no-auth # Disable authentication

Example (status --json, trimmed):

{
  "schemaVersion": 1,
  "server": { "port": 41041, "url": "http://127.0.0.1:41041" },
  "auth": {
    "mode": "token-cookie",
    "tokenUrlPresent": true,
    "accessUrl": "http://127.0.0.1:41041/?token=..."
  }
}

→ Full install options, snapshot API, and troubleshooting: docs/configuration.md

🤖 AI Agent Friendly

Ships with structured resources for AI agents — see AGENTS.md for the full index:

| Skill | Use case | | ----------------------------------------- | ------------------------------------------------- | | install | Install, configure, and launch | | snapshot | Capture dashboard as PNG/SVG/JSON via REST or CLI |

Architecture

claw-insights/
├── packages/
│   ├── server/     Express + GraphQL Yoga + SQLite + Satori renderer
│   ├── web/        React 19 + Vite + Tailwind + ECharts + urql
│   └── shared/     Codegen TypeScript types (shared between server & web)
├── bin/            CLI entry (start/stop/restart/status/logs/snapshot/run)
└── codegen.ts      GraphQL codegen config (3 targets)

Data flow: OpenClaw gateway → log tailing + CLI → SQLite → GraphQL (SSE subscriptions) → React

→ Full architecture, dev setup, and codegen: docs/architecture.md

Documentation

| Document | Description | | -------------------------------------- | ------------------------------------- | | Configuration | All env vars, config file, auth model | | Architecture | System design, dev setup, testing | | API Reference | GraphQL + REST endpoint signatures | | AGENTS.md | AI agent skill index |

Contributing

See CONTRIBUTING.md for development setup, PR guidelines, and code conventions.

Security

See SECURITY.md for vulnerability reporting and security model.

License

MIT