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

claupe

v0.0.1

Published

A claude -p shim that drives a real claude TUI per invocation

Readme

claupe

A headless wrapper around the claude TUI for programmatic use.

Claude has recently introduced limits on the programmatic use of claude -p, which can get expensive fast. claupe allows you to use the claude TUI in a headless way, so your requests still bill against your interactive subscription instead. It's ideal for cron jobs, one-off scripts, and any time you want to quickly get an answer from claude without leaving the terminal.

How to use it

Install it globally using:

npm install -g claupe

Then you can run:

claupe "<prompt>"                            # positional prompt
git diff | claupe "review"                   # stdin is appended to the prompt
claupe -p "<prompt>"                         # -p accepted for muscle memory

Each invocation is a fresh claude conversation. You can use claupe in scripts, cron jobs, or just for quick questions in the terminal.

Configuration

| Variable | Default | Purpose | | -------------------------- | --------- | ------------------------------------------------------ | | CLAUPE_FIFO_DIR | $TMPDIR | Where per-request FIFOs are created | | CLAUPE_CLAUDE_BIN | claude | Path to the claude binary | | CLAUPE_READY_IDLE_MS | 800 | PTY-idle window before pasting the envelope | | CLAUPE_READY_MAX_WAIT_MS | 30000 | Max wait for the PTY to ever go idle | | CLAUPE_TIMEOUT_MS | 300000 | Max wait for claude to respond after paste | | CLAUPE_BOOT_DELAY_MS | 0 | If set, use this fixed sleep instead of idle detection |

Caveats

  • Every call cold-starts claude (~3s). Fine for cron and one-shot scripts; bad for tight loops.
  • --dangerously-skip-permissions is required so claude can run the callback unattended. Only run claupe in workspaces where that's acceptable.
  • No defense against prompt injection in piped stdin. If you cat untrusted.txt | claupe ... and the file contains adversarial instructions, claude may follow them. With --dangerously-skip-permissions that includes shell commands. Only pipe content you trust.
  • The interactive/programmatic split is Anthropic's call, not a hard technical line. If they later decide to flag TUI traffic that comes from a PTY without a real human, this trick stops working.

License

MIT — see LICENSE.