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

@planckspace/cli

v0.2.5

Published

PlanckSpace CLI — sync AI token usage from your editor to the team ledger

Readme

@planckspace/cli

PlanckSpace CLI — sync AI token usage from Claude Code, Cursor, and Windsurf to your team ledger.

Install

curl -fsSL https://planckspace.dev/install | sh

With an invite token (skips the manual login step):

curl -fsSL https://planckspace.dev/install | sh -s -- --token pk_live_xxx

Or install manually:

npm install -g @planckspace/cli

See docs/INSTALL.md for manual steps and troubleshooting.

VS Code extension

Install the companion extension to see spend, insights, and skill recommendations right in your editor:

  • VS Code Marketplace — search "Planckspace" in the Extensions view, or run:
    code --install-extension planckspace.planckspace-extension
  • Open VSX (Cursor / Windsurf / VS Codium): open-vsx.org/extension/planckspace/planckspace-extension
  • Headless / CI:
    code --install-extension planckspace.planckspace-extension
    # or install from VSIX:
    code --install-extension planckspace-extension-win32-x64-0.2.0.vsix

Commands

| Command | Description | |---|---| | planck init | Initialize ~/.planckspace/ (local DB + config) | | planck login <token> | Connect to a PlanckSpace workspace | | planck scan | Ingest local AI session history | | planck sync | Push unsynced sessions to the team dashboard | | planck sync --watch | Keep syncing on an interval (default 60 s) | | planck status | Show connection + session stats | | planck logout | Disconnect (local data retained) |

Non-interactive login (CI / install scripts)

planck login --token pk_live_xxx
# or
PLANCKSPACE_TOKEN=pk_live_xxx planck login

Backfill + sync in one step

planck scan --sync

What gets synced

  • Session metadata: tool, model, token counts, cost, duration, repo name, outcome
  • Git attribution: git config user.email from each repo (maps sessions to team members)
  • Never synced: prompt text, code content, file contents, turnsJson

See docs/COVERAGE.md for per-tool capture details.

What's new in 0.2.0

  • Cost insights — the CLI now detects patterns that inflate spend (large CLAUDE.md, low cache hit rates, repeated context) and writes them to ~/.planckspace/local.db. The VS Code extension surfaces these with estimated monthly savings.
  • Audit scoringplanck status reports a workspace configuration score across five dimensions: CLAUDE.md token budget, prompt-cache hit rate, hooks, installed skills, and MCP servers.
  • Improved Windsurf support — schema detection updated for recent Windsurf session log changes.
  • Anomaly detection — the CLI flags sessions with unusually high token counts or cost spikes.

Supported editors

| Editor | Sessions | Tokens / cost | Notes | |---|---|---|---| | Claude Code | Yes | Yes | Full | | Cursor | Yes | No | Cursor meters server-side; token fields are 0 | | Windsurf | Yes (beta) | Provisional | Unverified schema — may vary by version |

Requirements

  • Node.js 20+
  • macOS or Linux (Windows: use WSL)

Publishing

Build and publish to npm:

npm run release
# equivalent to: npm run build && npm publish

prepublishOnly runs tsc automatically before every npm publish.

To log in to npm first:

npm login
npm run release

The package publishes as @planckspace/cli (public scoped package).

Development

npm install
npm run dev -- scan       # run any command via tsx (no build needed)
npm test                  # vitest
npm run build             # compile TypeScript → dist/

Override the API endpoint during development:

PLANCKSPACE_API_URL=http://localhost:4000 npm run dev -- sync

License

MIT