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

@howincodes/claude-code-limiter-server

v1.3.0

Published

Dashboard server for claude-code-limiter

Readme

@howincodes/claude-code-limiter-server

Dashboard server for claude-code-limiter. Manage per-user rate limits for shared Claude Code subscriptions.

This is the admin server — REST API + SQLite + real-time dashboard. Deploy it once, manage all your users from the browser.

For the client CLI (installed on each user's machine), see @howincodes/claude-code-limiter.

Deploy

Docker (recommended)

docker run -d \
  --name claude-limiter \
  -p 3000:3000 \
  -v claude-limiter-data:/data \
  -e ADMIN_PASSWORD=your-secure-password \
  ghcr.io/howincodes/claude-code-limiter:latest

Docker Compose with auto-HTTPS

DOMAIN=limiter.yourdomain.com ADMIN_PASSWORD=secret docker compose up -d

Caddy handles SSL certificates automatically.

npm

ADMIN_PASSWORD=secret npx @howincodes/claude-code-limiter-server

Office/home network

ADMIN_PASSWORD=secret npx @howincodes/claude-code-limiter-server
# Reachable at http://192.168.x.x:3000 by all machines on the network

Environment Variables

| Variable | Required | Default | Description | |----------|----------|---------|-------------| | ADMIN_PASSWORD | Yes (first run) | — | Dashboard login password | | PORT | No | 3000 | Server port | | JWT_SECRET | No | auto-generated | Secret for admin JWT tokens. Set this for persistent sessions across restarts | | DATA_DIR | No | ./data (local) or /data (Docker) | SQLite database location |

Dashboard

Open https://your-server/dashboard and log in with your admin password.

Overview — All users at a glance: status, usage bars, credit consumption, live event feed

User Detail — Per-user breakdown: credit gauge, per-model bars, monthly trends, limits editor

Add User — Create a user, set limits, get an install code to copy

Settings — Credit weights (opus/sonnet/haiku costs), team name, password

API

Hook API (used by the CLI on each machine)

| Endpoint | Purpose | |----------|---------| | POST /api/v1/sync | Session start: sync config, report model | | POST /api/v1/check | Gate check: is this prompt allowed? | | POST /api/v1/count | Record a completed turn | | POST /api/v1/register | Exchange install code for auth token | | GET /api/v1/health | Health check for Docker/load balancers |

Admin API (used by the dashboard)

| Endpoint | Purpose | |----------|---------| | POST /api/admin/login | Authenticate, get JWT | | GET /api/admin/users | List users with live usage | | POST /api/admin/users | Create user + install code | | PUT /api/admin/users/:id | Update limits, kill, pause, reinstate | | DELETE /api/admin/users/:id | Remove user | | GET /api/admin/usage | Usage history for charts | | PUT /api/admin/settings | Update credit weights, team name |

WebSocket

Connect to /ws for real-time events: user_check, user_blocked, user_counted, user_status_change.

Features

  • Per-model limits — opus: 5/day, sonnet: 20/day, haiku: 50/day
  • Credit budgets — 100 credits/day (opus=10, sonnet=3, haiku=1)
  • Sliding windows — rolling 24h, or daily/weekly/monthly resets
  • Time-of-day rules — opus only 9am-6pm
  • Kill switch — instantly block a user + force logout
  • Live dashboard — real-time usage via WebSocket
  • SQLite — single file database, zero config, just mount a volume

License

MIT