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

github-cursor-stats

v1.0.1

Published

Sync Cursor tab and composer usage from your local database to a GitHub profile README

Downloads

166

Readme

cursor-stats

Track Cursor tab and composer usage locally, then sync a stats card to your GitHub profile README.

Cursor coding activity card

Cursor's dashboard often shows zero tab completions even while you are actively using Tab. This is a confirmed bug with plenty of related reports where usage tracking simply does not work. I wanted to see tab consumption on my Cursor subscription, got annoyed, and built this instead.

Add it to your GitHub special repository and enjoy.

Install

Requires Bun:

bun add -g github-cursor-stats

Quick start

  1. Create a repo named after your GitHub username (your profile README repo).
  2. Clone it locally.
  3. Sync stats from Cursor's local database:
cd your-username
cursor-stats sync
  1. Commit the generated files, or push in one step:
cursor-stats sync --push

sync reads state.vscdb from Cursor's app data, writes stats.json, cursor-stats.png, and injects the card into README.md between <!-- cursor-stats:start --> and <!-- cursor-stats:end -->. Re-run it whenever you want the card updated.

Options

cursor-stats sync [options]

  -o, --output-dir <dir>   Output directory (default: cwd)
  -p, --push               Commit and push generated files
  -d, --vscdb <path>       Path to state.vscdb (default: Cursor app data)
      --show-tab <bool>      Show tab usage bar (default: true)
      --show-composer <bool> Show composer usage bar (default: true)
      --color-tab <hex>      Tab bar color
      --color-composer <hex> Composer bar color
      --color-accent <hex>   Heatmap accent color
      --color-bg <hex>       Card background
      --color-text <hex>     Primary text
      --color-muted <hex>    Muted text

Privacy

cursor-stats reads your local Cursor database (state.vscdb) only. It does not send data anywhere on its own.

When you sync to a GitHub repo, it writes usage stats (tab/composer accepted and suggested line counts by day) and a machine id derived from your hostname, platform, and CPU architecture (for example my-laptop-darwin-arm64).

Development

bun install
bun dev -- sync
bun test
bun run build

License

MIT. See LICENSE.

Stats card fonts use Geist and Geist Mono under the SIL Open Font License 1.1. See NOTICE.