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

claude-context-editor

v0.1.4

Published

Real-time context window viewer and editor for Claude Code

Downloads

606

Readme

🌐 English | 한국어

Claude Context Editor

Real-time context window viewer and editor for Claude Code.

See exactly what Claude Code sends to the API — system prompts, messages, tool definitions, and token counts — and optionally edit messages before they're sent.

How it works

Claude Code ──POST /v1/messages──▶ Proxy (8080) ──▶ api.anthropic.com
                                      │
                                      │ WebSocket
                                      ▼
                                   Web UI (3000)

A local proxy intercepts Claude Code's API requests using the ANTHROPIC_BASE_URL environment variable. A web UI displays the full context window in real-time via WebSocket.

Quick Start

# Install
npm install -g claude-context-editor

# Start the proxy + web UI
cce

# Then in another terminal:
ANTHROPIC_BASE_URL=http://localhost:8080 claude

The web UI opens automatically in your browser.

CLI

cce              # Start the proxy + web UI
cce --version    # Show version
cce --help       # Show help

Features

Observe Mode (default)

  • View every API request in real-time
  • Inspect system prompt, messages, and tool definitions
  • See token counts per section (system, messages, tools)
  • Track API response usage (input/output tokens, stop reason)

Intercept Mode

  • Pause requests before they reach the API
  • Edit or delete individual messages
  • Send modified or original request
  • 5-minute timeout (auto-sends original if no action)

Cache Safety

| What you edit | Cache impact | |---------------|-------------| | Messages | Safe — no cache bust | | System prompt | Read-only in UI (would bust cache) | | Tools | Read-only in UI (would bust cache) |

Auto Port Selection

If the default ports (8080, 3000) are in use, the proxy and UI automatically find the next available port (up to +10).

Configuration

Environment variables:

| Variable | Default | Description | |----------|---------|-------------| | PROXY_PORT | 8080 | Proxy server port | | UI_PORT | 3000 | Web UI port | | UPSTREAM_URL | https://api.anthropic.com | Upstream API URL |

# Custom ports
PROXY_PORT=9090 UI_PORT=4000 cce
ANTHROPIC_BASE_URL=http://localhost:9090 claude

How Claude Code connects

Claude Code supports ANTHROPIC_BASE_URL natively. When set, all API calls go through the specified URL instead of api.anthropic.com. The proxy forwards headers (authorization, x-api-key, anthropic-version, etc.) and relays SSE streaming responses transparently.

License

MIT