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

copilot-lens

v1.2.1

Published

A local dashboard to visualize and analyze your GitHub Copilot CLI sessions

Readme

Copilot Lens 👓

Your Copilot history has answers. Now you can actually find them.

A local memory layer for AI coding assistants. Search and browse everything you've ever discussed with Copilot CLI, VS Code Copilot Chat, or Claude Code. All on your machine. No cloud, no sign-in.

copilot-lens hero

Install

npx copilot-lens --open

Or npm install -g copilot-lens for a permanent install.

Usage

copilot-lens                  # Web dashboard at localhost:3000
copilot-lens --open           # Open browser automatically
copilot-lens --port 8080
copilot-lens tokens           # Token usage in the terminal (Ink TUI)
copilot-lens tokens --json    # Machine-readable output

Features

  • Search: full-text across every session, with source/date/directory filters
  • Sessions: unified browser for Copilot CLI, VS Code Copilot Chat, and Claude Code conversations, including extended-thinking blocks where supported
  • Analytics: eight charts covering daily activity, hour-of-day, tools, models, top directories, time per branch/repo, and MCP servers
  • Tokens: real API-reported token usage parsed from local logs, with daily/weekly/monthly views, model breakdown, and an estimated upstream API cost
  • Effectiveness Score: 0 to 100 score per repo with improvement tips
  • Export: single-session OpenAI-style chat JSONL, suitable as SFT data

Sessions

Unified session browser across Copilot CLI, VS Code Copilot Chat, and Claude Code

Analytics

Eight charts showing how and when you use Copilot and Claude

Tokens

Real API-reported token usage with daily, weekly, and monthly views

Effectiveness Score

0 to 100 score per repo with actionable improvement tips

About the cost number: GitHub Copilot bills on premium requests, not tokens. The cost shown is what you'd pay calling Anthropic / OpenAI / Google directly with the same usage. Useful as a reference, not your GitHub bill.

Where the data comes from

| Source | Path | |--------|------| | Copilot CLI sessions | ~/.copilot/session-state/ | | Copilot CLI token logs | ~/.copilot/logs/process-*.log | | VS Code Copilot Chat | ~/Library/Application Support/Code/ (macOS), %APPDATA%/Code/ (Win), ~/.config/Code/ (Linux) | | Claude Code | ~/.claude/projects/ |

VS Code Insiders is supported. Pasted images are stripped; files over 200MB are skipped. Durations exclude gaps longer than 5 minutes so paused sessions aren't inflated.

Development

git clone https://github.com/pavanvamsi3/copilot-lens.git
cd copilot-lens
npm install
npm run dev        # tsx, no build step
npm run build
npm test

Stack: Node + Express + TypeScript, vanilla frontend, Chart.js, Ink for the TUI, Vitest.

License

MIT