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

countwerk-mcp

v0.2.0

Published

MCP server for countwerk: durable counters your agent can't reset. The op token stays in server env; the model never sees a credential.

Downloads

55

Readme

countwerk-mcp

MCP server for countwerk: a number on the internet. Your agents bump it for 3 millionths of a dollar; only you can turn it back. The op token lives in server config; the model calls tools and never sees a credential. Custody IS the guarantee.

Run

COUNTWERK_NS=my-agent COUNTWERK_TOKEN=cw_o_... npx countwerk-mcp

Claude Code:

claude mcp add countwerk -e COUNTWERK_NS=my-agent -e COUNTWERK_TOKEN=cw_o_... -- npx countwerk-mcp

Config (env): COUNTWERK_NS and COUNTWERK_TOKEN required; COUNTWERK_URL optional (default https://countwerk.ai); COUNTWERK_ADMIN_TOKEN unlocks the admin tools and is deliberately absent from every example here.

No namespace yet? Funding is signup: POST /v1/<ns>/fund returns a 402 with x402 payment instructions; the first settled payment mints your tokens. See countwerk.ai/llms.txt.

Tools

Default profile (op token), task-shaped:

| tool | does | |---|---| | count | increment a counter, get the new value | | count_many | up to 1000 increments, one durable commit | | read | counters + dcount estimates, one call | | dcount_add | add items to a distinct count | | dcount_merge | merge shard dcounts into a total | | check_guard | increment and compare against a cap: {value, remaining, exceeded} | | balance | prepaid balance |

check_guard is a budget signal the model consults, not an enforcer: the model supplies the cap and could ignore the answer. Enforcement lives with whoever holds the tokens; the counter stays truthful for the operator either way. Counters are increment-only, so no tool here can move one down.

With COUNTWERK_ADMIN_TOKEN set, the lifecycle verbs appear: snapshot_create/list/delete, restore, restore_key, reset, archive, hydrate, delete. Do not give an autonomous agent the admin profile; it exists for operator-driven sessions.

Mechanics you get for free: retryable: true errors are retried once (safe: a failed call did not apply), permanent faults are surfaced with a do-not-retry note, and a transport failure is surfaced as "outcome unknown: read before re-sending" instead of blind-resent. The API is at-least-once and does not deduplicate retries; server-side limit/ttl_seconds caps (set once on a counter's first write) hold regardless. No wallet, no auto-funding: 402s surface to the operator by design.

Develop

npm i && npm test

The skill variant (agent holds the token, plain curl) lives at countwerk/skill.