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

@heyzk/maude

v0.2.0

Published

Interactive TUI for analyzing Claude Code sessions to identify flow patterns and reduce friction over time.

Readme

MAUDE - Metrics Analysis & User Development Engine

MAUDE is a personal instrumentation system for analyzing Claude Code sessions to identify flow patterns and reduce friction over time.

Installation

As NPM Package (Recommended)

npm install -g @heyzk/maude

From Source

git clone https://github.com/zk/maude.git
cd maude
npm install
npm run build

Development

# Run in development mode with hot reload
npm run dev

# Run type checking
npm run typecheck

# Run tests
npm test

# Build for production
npm run build

Technology Stack

  • Language: TypeScript
  • Runtime: Node.js
  • Build Tool: esbuild (fast bundler with native TypeScript support)
  • Type Checking: TypeScript Compiler (tsc --noEmit)
  • Testing: Jest with ts-jest
  • Development: tsx for TypeScript execution
  • UI Framework: Ink (React for CLI)

Usage

Interactive TUI (Terminal User Interface)

After installation, run:

maude

This launches an interactive interface where you can:

  • Browse all Claude Code sessions
  • View session details and metrics
  • Generate comprehensive reports
  • Copy logs to clipboard
  • Navigate with keyboard shortcuts

Command Line Tools

The package also includes CLI tools for scripting:

# List sessions in JSON format
./bin/llm-tool list

# Generate report for a session
./bin/llm-tool report-create <session-path> [output-path]

# Query report data
./bin/llm-tool report-query <report-file> <jq-path>

# Convert report to markdown
./bin/llm-tool report-to-markdown <report-file> [output-file]

# Analyze interventions
./bin/llm-tool analyze-interventions <report-file> [output-file]

Session File Format

MAUDE reads Claude Code session files in JSONL format (.jsonl), where each line is a JSON object representing a message. Sessions are typically stored in ~/.claude/projects/[project-name]/[session-id].jsonl.

Build System

MAUDE uses a modern TypeScript build pipeline optimized for CLI applications:

  • esbuild: Bundles TypeScript directly to JavaScript (10-100x faster than tsc)
  • TypeScript: Used for type checking only (tsc --noEmit), not compilation
  • Separate Workers: Report generation runs in separate worker processes to avoid blocking the UI
  • Single Output: All production code bundles to dist/cli/ for simplicity

This architecture provides:

  • Fast builds (< 1 second)
  • Full TypeScript type safety
  • Clean production distribution
  • Simple path resolution (no dual build confusion)

Deployment

Publishing to NPM

  1. Update version:

    npm version patch  # or minor/major
  2. Build and test:

    npm run clean
    npm run build
    npm test
  3. Test locally:

    # Test global installation
    npm install -g .
    maude --version
       
    # Test package contents
    npm pack --dry-run
  4. Publish:

    npm publish

Release Process

The prepublishOnly script automatically:

  1. Cleans previous builds
  2. Runs type checking
  3. Bundles with esbuild

Package Structure

The published package includes:

  • dist/cli/index.js - Main CLI entry point (with shebang)
  • dist/cli/workers/ - Separate worker processes
  • README.md - Documentation
  • LICENSE - MIT license

Documentation

Detailed documentation is available in the docs/ directory.