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

@agnishc/edb-context-viewer

v0.15.1

Published

Pi extension: inspect the system prompt and full LLM context in scrollable overlay popups

Downloads

2,354

Readme

@agnishc/edb-context-viewer

Pi CLI extension for inspecting the full LLM context. A single command opens a tabbed overlay where you can explore token usage, the system prompt, tool definitions, messages, and the complete context — all in one place.

Command

/context

Opens a tabbed overlay with five views you can navigate using Tab / Shift+Tab.

Tabs

| Tab | What it shows | |-----|--------------| | Stats | Token distribution grid (10×5 colored blocks) + per-category breakdown table | | System | The full system prompt (includes tools, skills, guidelines, AGENTS.md, etc.) | | Tools | All active tool definitions with descriptions and parameter schemas | | Messages | All session messages (user, assistant, tool calls/results) | | Full | Complete context dump: system prompt + messages + usage stats |

Stats tab

Visualizes how the context window is used, broken down by category:

  • System Prompt — the static system prompt text
  • System Tools — tool definition schemas
  • Tool Calls — tool call arguments and results
  • Messages — user/assistant conversation text
  • Available — unused context window space

Token counts are estimated using a 4-chars-per-token heuristic, then scaled proportionally to match the actual total reported by the API.

Controls

| Key | Action | |-----|--------| | Tab | Next tab | | Shift+Tab | Previous tab | | / k | Scroll up (content tabs) | | / j | Scroll down (content tabs) | | Page Up / Ctrl+B | Scroll up one page | | Page Down / Ctrl+F | Scroll down one page | | Ctrl+U / Ctrl+D | Scroll half page | | Home / g | Jump to top | | End / G | Jump to bottom | | / | Search (live matching as you type) | | n / N | Next / previous match | | y | Copy full content to clipboard | | Escape / q | Close overlay |

Install

pi install npm:@agnishc/edb-context-viewer

License

MIT © Agnish Chakraborty