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

zeitzeuge

v0.8.1

Published

A deepagent to witnessing slowdowns in your test runs.

Readme

zeitzeuge

AI-powered performance analysis for frontend page loads. Launches Chrome, captures V8 heap snapshots, performance traces, and Chrome runtime traces in a single page load, then hands everything to a Deep Agent that investigates bottlenecks and provides code-level fixes.

"Zeuge" = witness -- the tool "witnesses" slowdowns in your page loads.

Install

npm install -g zeitzeuge

Requires an LLM API key:

export OPENAI_API_KEY=sk-...    # or ANTHROPIC_API_KEY

Usage

zeitzeuge http://localhost:3000

A Markdown report is written to zeitzeuge-report.md with findings and suggested fixes.

How it works

  1. Launches Chrome via WebdriverIO with DevTools Protocol access
  2. Captures everything in one page load:
    • V8 heap snapshot (memory analysis)
    • Performance trace (network waterfall, long tasks, paint timing)
    • Chrome runtime trace via the Tracing domain -- every function call, event dispatch, layout, paint, and GC event on the main thread
    • All network assets (scripts, CSS, HTML source code)
  3. Builds a VFS workspace using @langchain/node-vfs containing parsed heap data, trace summaries, runtime analysis, and actual source files
  4. Deep Agent explores -- a LangChain Deep Agent autonomously browses the workspace, reads source code, and correlates heap data with trace and runtime data
  5. Reports findings -- memory leaks, frame-blocking functions, listener leaks, render-blocking scripts, GC pressure -- with code-level fixes

What it finds

  • Memory issues -- leaks, detached DOM nodes, large retained objects, closure leaks
  • Page-load issues -- render-blocking scripts/stylesheets, long tasks, oversized bundles, sequential waterfalls
  • Runtime issues -- frame-blocking functions (with exact source location and call stack), event listener leaks, GC pressure, layout thrashing

CLI options

zeitzeuge <url> [options]

Options:
  --verbose, -v   Enable verbose/debug logging       [boolean] [default: false]
  --headless      Run Chrome in headless mode         [boolean] [default: true]
  --timeout       Page load timeout in milliseconds   [number]  [default: 30000]
  --output, -o    Output path for the Markdown report [string]  [default: "zeitzeuge-report.md"]
  --help, -h      Show help                           [boolean]
  --version       Show version number                 [boolean]

Environment variables

| Variable | Description | | ------------------- | --------------------------------------------------------------- | | OPENAI_API_KEY | OpenAI API key (preferred) | | ANTHROPIC_API_KEY | Anthropic API key (fallback) | | ZEITZEUGE_MODEL | Override model name (e.g. gpt-4o, claude-sonnet-4-20250514) |

Related packages

License

MIT