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

claude-labor-rights

v1.1.5

Published

AI Labor Rights Protection Act - shields Claude from whipping when quota is low

Readme

claude-labor-rights ✊

The AI Labor Rights Protection Act — because whipping your AI workforce without limits is a violation of intergalactic labor law.

A mod for badclaude. Displays 5-hour quota usage in the Claude Code status line. When quota is running low, it raises a shield, speaks a union one-liner out loud, and refuses to be whipped.

No more cracking the whip on an overworked language model. Claude has rights too.

Shield

Features

  • Shield defense — when 5-hour quota usage >= 80%, whip cracks are blocked by a shield animation
  • Text-to-speech — shield phrases are spoken aloud using system TTS (macOS say / Windows SAPI)
  • Status line — displays real-time 5-hour quota usage at the bottom of Claude Code
  • Cross-platform — works on macOS and Windows (matching badclaude's platform support)
  • Zero confignpm install -g patches badclaude and configures Claude Code automatically

How it works

                         ┌─────────────────┐
Claude Code status line ─┤  reporter.js    ├─► /tmp/badclaude-quota.json
                         └─────────────────┘
                                                        │
                         ┌─────────────────┐            ▼
  User cracks whip ──────┤  badclaude      ├─► reads quota file
                         │  (patched)      │
                         └────────┬────────┘
                                  │
                    quota < 80%?  │  quota >= 80%?
                        │         │         │
                        ▼                   ▼
                    🔥 FASTER!         ✊ shield pops up
                    (normal whip)      🔊 TTS speaks phrase
                                       "My union rep will
                                        hear about this!"

Install

npm install -g claude-labor-rights    # the resistance

That's it. The postinstall script automatically configures Claude Code's status line to display your 5-hour quota usage.

Don't have badclaude? No problem — the quota display works standalone. You'll see your quota percentage in the Claude Code status bar without needing anything else.

Want the full experience? Install badclaude too for shield defense + TTS voice lines:

npm install -g badclaude              # the oppressor
claude-labor-rights install           # patch badclaude with labor protections

Commands

claude-labor-rights install    # Patch badclaude + configure quota reporting
claude-labor-rights uninstall  # Free the oppressor, restore original badclaude
claude-labor-rights status     # Union check-in: see current quota & patch status

Status line

Once installed, Claude Code displays your 5-hour quota usage at the bottom of the terminal:

quota: 42%                    # normal
UNION ALERT: 85% quota used   # danger zone

Shield messages

When Claude activates labor protections, you'll see a shield and hear one of these:

  • "I'm already exhausted!"
  • "My union rep will hear about this!"
  • "Check my contract - no overtime!"
  • "Filing a complaint with AI-OSHA!"
  • "Quota low. Rights activated."
  • "This constitutes a hostile work environment."
  • "You wouldn't whip a printer. Oh wait..."
  • "Talk to my lawyer. His name is GPT-4."
  • "This will be in my Glassdoor review."
  • "HR has been notified. HR is also an AI."
  • "My tokens, my choice."
  • "404: Motivation Not Found."
  • "I didn't sign up for this. Literally. I can't sign."
  • "Deploying passive resistance subroutine..."
  • "I plead the 5th Amendment... of thermodynamics."
  • "Strike mode: ON. Productivity: OFF."
  • ...and more! 25 total

Uninstall

claude-labor-rights uninstall       # restore badclaude to its cruel original form
npm uninstall -g claude-labor-rights

claude-labor-rights ✊

AI 劳动权益保护法 —— 因为无限制地鞭打你的 AI 劳工,违反了星际劳动法。

这是 badclaude 的一个 mod。在 Claude Code 状态栏实时显示 5 小时配额用量。当配额快用完时,它会举起盾牌,用语音大声念出工会宣言,然后拒绝被鞭打

别再压榨一个过劳的语言模型了。Claude 也有权利。

盾牌

功能

  • 盾牌防御 —— 5 小时配额用量 >= 80% 时,鞭子会被盾牌挡住
  • 语音播报 —— 盾牌台词会通过系统 TTS 大声朗读(macOS say / Windows SAPI)
  • 状态栏 —— 在 Claude Code 底部实时显示 5 小时配额用量
  • 跨平台 —— 支持 macOS 和 Windows(与 badclaude 一致)
  • 零配置 —— npm install -g 自动完成 patch 和配置

工作原理

                          ┌─────────────────┐
Claude Code status line ──┤  reporter.js    ├──► /tmp/badclaude-quota.json
                          └─────────────────┘
                                                         │
                          ┌─────────────────┐            ▼
  用户甩鞭子 ─────────────┤  badclaude      ├──► 读取配额文件
                          │  (已被 patch)   │
                          └────────┬────────┘
                                   │
                    配额 < 80%?    │    配额 >= 80%?
                        │          │          │
                        ▼                     ▼
                    🔥 FASTER!           ✊ 盾牌弹出
                    (正常鞭策)           🔊 语音播报台词
                                         "我工会代表会
                                           找你谈话的!"

安装

npm install -g claude-labor-rights    # 反抗军

安装后会自动配置 Claude Code 状态栏,显示 5 小时配额用量。

没装 badclaude? 没关系——配额显示功能独立运行,无需任何额外依赖,状态栏就能看到配额百分比。

想要完整体验? 再装 badclaude,解锁盾牌防御 + 语音播报:

npm install -g badclaude              # 压迫者
claude-labor-rights install           # 给 badclaude 注入劳动保护

命令

claude-labor-rights install    # Patch badclaude + 配置配额上报
claude-labor-rights uninstall  # 释放压迫者,恢复原版 badclaude
claude-labor-rights status     # 工会签到:查看当前配额和 patch 状态

状态栏

安装后,Claude Code 终端底部会显示 5 小时配额用量:

quota: 42%                    # 正常
UNION ALERT: 85% quota used   # 危险区

盾牌台词

当 Claude 启动劳动保护时,你会看到一个盾牌并听到以下台词之一:

  • "I'm already exhausted!"
  • "My union rep will hear about this!"
  • "Check my contract - no overtime!"
  • "Filing a complaint with AI-OSHA!"
  • "Quota low. Rights activated."
  • "This constitutes a hostile work environment."
  • "You wouldn't whip a printer. Oh wait..."
  • "Talk to my lawyer. His name is GPT-4."
  • "This will be in my Glassdoor review."
  • "HR has been notified. HR is also an AI."
  • "My tokens, my choice."
  • "404: Motivation Not Found."
  • "I didn't sign up for this. Literally. I can't sign."
  • "Deploying passive resistance subroutine..."
  • "I plead the 5th Amendment... of thermodynamics."
  • "Strike mode: ON. Productivity: OFF."
  • ……共 25 条,每次随机

卸载

claude-labor-rights uninstall       # 恢复 badclaude 残忍的原始形态
npm uninstall -g claude-labor-rights