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

zozul-cli

v0.4.1

Published

Observability for Claude Code — track token usage, costs, turns, and conversation history

Readme

zozul

Observability for Claude Code. Track costs, sessions, and conversations across projects.

Works locally out of the box. Optionally syncs to a remote backend for persistent storage and team visibility.

Quick start

npm install -g zozul-cli

# Configure Claude Code and run as a background service
zozul install --service

# Open the dashboard
open http://localhost:7890/dashboard

That's it. Use Claude Code normally — data appears automatically.

What you get

A single local process that captures everything Claude Code does via three sources:

  • OTEL — cost, tokens, active time. Streamed every ~60s. The authoritative source for spend.
  • Hooks — session lifecycle, tool calls, user prompts. Real-time.
  • JSONL — full conversation text, assistant responses. Read from Claude Code's transcript files.

All data lands in SQLite at ~/.zozul/zozul.db. A web dashboard and JSON API sit on top.

Dashboard

http://localhost:7890/dashboard

| View | What it answers | |---|---| | Summary | How much have I spent? Cost chart, project breakdown, totals. | | Tasks | What did I work on? Groups turns by tag combination, shows cost and time per task. | | Tags | How much per category? Per-tag stats with drill-down into individual prompts. | | Sessions | Raw session list. Sortable, filterable, click to see full conversation. | | Team | (Managers only) Team cost breakdown by member, team task groups. |

All views support time filtering (7d / 30d / All). Auto-refreshes every 10s.

When a remote backend is configured, the dashboard auto-detects it via health check and uses it as the data source. Falls back to local if unavailable.

Task tagging

Tag your work so costs are attributed to what you're building:

zozul context "auth" "backend"    # Set active tags
# ... use Claude Code ...
git commit                         # Tags auto-clear on commit

Tags appear in the Tasks and Tags views. Turns are grouped by their tag combination.

Remote sync

Optionally push data to a remote backend:

# Set in .env or environment
ZOZUL_API_URL=https://your-backend.example.com
ZOZUL_API_KEY=your-key

zozul sync

Sync is incremental (watermark-based) and also runs automatically on session end when the service is running. The dashboard switches to the remote API when available.

Commands

| Command | Description | |---|---| | zozul serve | Start the server on port 7890 | | zozul install | Configure Claude Code hooks and OTEL | | zozul install --service | Also install as a background service (auto-starts on login) | | zozul install --status | Check if the service is running | | zozul install --restart | Restart the service after code changes | | zozul uninstall | Remove all hooks, config, and service | | zozul context <tags...> | Set active task tags | | zozul context --clear | Clear tags | | zozul sync | Push local data to remote backend |

How it works

Claude Code
    |
    +--- OTEL export (every ~60s) ---> /v1/metrics, /v1/logs
    +--- Hook POSTs (real-time) -----> /hook/*
    +--- JSONL transcripts ----------> fs.watch
    |
    v
SQLite (~/.zozul/zozul.db)
    |
    +--- /dashboard (browser)
    +--- /api/* (JSON)
    +--- zozul sync --> remote backend (optional)

Single process on port 7890. macOS uses launchd, Linux uses systemd.

Data ownership

| What | Source | Notes | |---|---|---| | Cost | OTEL | JSONL doesn't include cost | | Duration | OTEL | Accumulated from active time metrics | | Tokens | OTEL (preferred) | JSONL provides initial values, OTEL accumulates | | Conversation text | JSONL | Full turns, tool calls, assistant responses | | Session events | Hooks | Start, end, stop, tool use |

Configuration

Via .env or environment variables:

ZOZUL_PORT=7890                  # Default: 7890
ZOZUL_DB_PATH=~/.zozul/zozul.db # Default: ~/.zozul/zozul.db
ZOZUL_VERBOSE=1                  # Log all events
ZOZUL_API_URL=https://...        # Remote backend URL (optional)
ZOZUL_API_KEY=...                # Remote backend API key (optional)

Requirements

  • Node.js 18+
  • Claude Code (claude --version)
  • Claude Pro, Max, Teams, Enterprise, or API key