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

claudefix

v2.7.4

Published

Fixes screen glitching, blocky colors, AND MEMORY LEAKS in Claude Code CLI on Linux and macOS. All features optional via env vars. Shows config options on install. Developed by Hardwick Software Services @ https://justcalljon.pro

Readme

Developed by Hardwick Software Services


The Problem

Claude Code uses Ink (React for terminals) and ships as a compiled binary. On Linux, VTE-based terminals render ANSI background colors on top of text instead of behind it. Long sessions bloat scrollback until your terminal crawls. Resize events from tmux/screen fire so fast they crash the renderer.

Anthropic hasn't fixed any of this. Been months. So here we are.

How It Works

We spawn Claude inside a PTY (pseudo-terminal) and filter its output in real time:

  1. Strip background colors from ANSI escape sequences that cause VTE rendering bugs
  2. Clear scrollback every 500 renders or 60 seconds (\x1b[3J - the sequence Anthropic should be using)
  3. Debounce resize events so tmux/screen users don't get cooked by SIGWINCH spam

Works with both the npm-installed Claude CLI and the native self-updating binary at ~/.local/share/claude/versions/. Detects which one you have and patches accordingly.


Install

No root required:

npm install -g claudefix
claude-fixed

With root (patches claude directly):

sudo npm install -g claudefix
claude  # just works, fixes applied automatically

Don't want root? Use the wrapper. Want it seamless? Use root. It's that easy.

No sudo at all?

mkdir -p ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
npm install -g claudefix
claude-fixed

Competitors

None. Literally nobody else has shipped a fix for this. tmux and screen don't solve the VTE color bug - they just add their own layer of rendering problems on top. The scrollback bloat and resize thrashing are Claude Code specific. I didn't see anyone else patch it, and if someone did, they'd do it the same way: PTY wrapper, strip the codes, clear the buffer. You're welcome.


"Is This Safe?"

Wild that a package which strips ANSI codes from terminal output gets more safety scrutiny than tools that expose your machine to the open internet. But sure, let's address it:

  • MIT licensed. Every line of source is right here. Read it.
  • No network calls. Zero. None. No telemetry, no analytics, no phoning home.
  • One dependency: node-pty - the standard Node.js pseudo-terminal binding. That's the entire dependency tree.
  • Root is optional. If sudo npm install -g scares you, run npm install -g claudefix without sudo and use claude-fixed instead. Same fixes, zero system modifications.

The root install patches Claude's loader to run through the PTY wrapper automatically. The non-root install gives you a separate claude-fixed binary. Pick whichever you're comfortable with.

Config

| Env Var | What It Does | Default | |---------|-------------|---------| | CLAUDEFIX_DISABLED | Set to 1 to bypass all fixes | off | | CLAUDEFIX_DEBUG | Set to 1 for debug output | off | | CLAUDEFIX_NO_FOOTER | Set to 1 to hide the status footer | off | | CLAUDEFIX_NO_DARKMODE | Set to 1 to skip dark mode detection | off | | CLAUDEFIX_MEM_PERCENT | V8 heap limit as % of system RAM | 35 | | CLAUDEFIX_CPU_PERCENT | CPU throttle percent (0 = disabled) | 0 | | CLAUDEFIX_NUCLEAR | Set to 1 to force max ANSI stripping | off | | CLAUDE_STRIP_BG_COLORS | Set to 0 to keep background colors | on |

claudefix also reads standard terminal env vars (VTE_VERSION, TERM_PROGRAM, TERM, etc.) to detect your terminal emulator and apply the right fixes. For the full list of Claude Code's internal runtime variables and hook system, see the MCP Runtime Guide.

For Anthropic / Claude Devs

This is MIT licensed on purpose. If you want to take this fix and put it directly into Claude Code, go ahead. The core fix is straightforward:

  1. Add \x1b[3J to your terminal clear sequence
  2. Strip ANSI background colors on Linux VTE terminals
  3. Debounce SIGWINCH events

Three changes. Would take maybe an afternoon to integrate. The Linux terminal bugs have been reported by users for months. Happy to help if you want to chat about it.

Links

License

MIT - do whatever you want with it.