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

@hashbyharsh/continuum

v0.1.4

Published

Seamless AI session continuity — token analytics, context capsule handoffs, and prompt recommendations

Readme

Continuum

Seamless AI session continuity — token analytics, context capsule handoffs, and prompt recommendations across all your AI coding tools.

npm install -g @hashbyharsh/continuum
continuum web

Opens a live dashboard at http://localhost:3737 showing your token usage, costs, and session health across Claude Code, Cursor, Cline, Copilot, and more.


Features

Token Analytics

Real-time cost and token tracking across every AI coding session — broken down by provider, model, project, and task category (coding, debugging, refactoring, planning, etc.).

Context Capsule

Automatically detects when a session is approaching its model's context window limit (warning at 70%, critical at 90%). Generate a .capsule.md handoff file with a single click — containing a structured summary, key decisions, open questions, and a ready-to-paste continuation prompt for a fresh session or a different model.

Prompt Recommendations

Analyzes your past prompts for token-wasting patterns and suggests drop-in templates to fix them. Detects: verbose prompts, repeated context, missing cache hints, vague task descriptions, and missing output format constraints.

Web Dashboard

A self-contained dark-mode dashboard with four tabs:

  • Overview — KPIs, token charts by provider, cost by category, model breakdown table
  • Sessions — all sessions sorted by recency with context utilization bars
  • Context Capsule — alerts for sessions nearing their limit, one-click capsule generation
  • Prompt Tips — ranked recommendations with copy-paste templates

Supported Providers

| Provider | Log Location | |---|---| | Claude Code | ~/.claude/projects/ | | Claude Desktop / Cowork | ~/Library/Application Support/Claude/local-agent-mode-sessions/ | | Cursor | ~/.cursor/ | | Cline | VS Code extension logs | | Roo Code | VS Code extension logs | | GitHub Copilot | VS Code extension logs | | Codex CLI | ~/.codex/ | | Gemini CLI | ~/.gemini/ | | OpenCode | ~/.opencode/ | | Kimi | ~/.kimi/ |


CLI Commands

# Launch web dashboard (default port 3737)
continuum web

# Print token stats in the terminal
continuum stats

# Generate a context capsule for a session
continuum capsule --session <sessionId>

# Show prompt recommendations
continuum recommend

# List all detected providers
continuum providers

# Filter by provider or date range
continuum stats --provider claude --days 7

How Context Capsule Works

When a session hits 70%+ of its model's context window, Continuum flags it. Clicking Generate Capsule produces two files in ~/.continuum/capsules/:

  • <session>.capsule.md — human-readable summary with a continuation prompt
  • <session>.capsule.json — structured data for tooling

Paste the continuation prompt into a new session to pick up exactly where you left off — even on a different model.


Requirements

  • Node.js >= 18
  • At least one supported AI coding tool installed locally

Install & Update

# Install
npm install -g @hashbyharsh/continuum

# Update to latest
npm install -g @hashbyharsh/continuum@latest

# Uninstall
npm uninstall -g @hashbyharsh/continuum

License

MIT © Harsh Singh