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-stoic

v0.2.1

Published

Render Stoic philosophy quotes in the Claude Code status line.

Readme

claude-stoic

npm version npm downloads license

Puts a Stoic quote in your Claude Code status line. One quote per session, picked at startup, stable until you restart.

npx claude-stoic

claude-stoic example

Install

Interactive (picks scope + emoji prefix):

npx claude-stoic

Non-interactive:

npx claude-stoic --global --yes --icon "🏛️"
npx claude-stoic --project --source aurelius,seneca --yes

Then restart Claude Code.

What it touches

Writes two things:

  1. ~/.claude/claude-stoic/ (or ./.claude/claude-stoic/ with --project) — statusline.js + quotes.json.
  2. ~/.claude/settings.json — sets statusLine to run the script.
{
  "statusLine": {
    "type": "command",
    "command": "node \"/Users/you/.claude/claude-stoic/statusline.js\" --icon \"🏛️\""
  }
}

If you already have a statusLine set, you'll be asked before it's overwritten.

Uninstall

npx claude-stoic --remove --global
# or
npx claude-stoic --remove --project

Deletes the statusLine entry and the install dir. Leaves the rest of settings.json alone.

Flags

| Flag | Default | Notes | | ---------------- | ----------- | -------------------------------------------------- | | --global | yes | Install into ~/.claude/ | | --project | | Install into ./.claude/ | | --source <csv> | all | Pick from a subset, e.g. aurelius,seneca | | --icon <text> | | Raw prefix, no brackets (e.g. 🏛️) | | --label <text> | STOIC | Bracketed prefix ([STOIC]). Ignored if --icon. | | --remove | | Uninstall | | --dry-run | | Print what would change | | --list | | List sources + counts | | --yes, -y | | Skip prompts | | --help, -h | | | | --version,-v | | |

Sources

npx claude-stoic --list

| Key | Author | | ------------ | --------------------------------------------------- | | aurelius | Marcus Aurelius | | seneca | Seneca | | epictetus | Epictetus | | zeno | Zeno of Citium (via Diogenes Laertius, Stobaeus) | | cleanthes | Cleanthes | | chrysippus | Chrysippus (via Diogenes Laertius) | | musonius | Musonius Rufus | | cato | Cato (via Plutarch) | | hecato | Hecato of Rhodes (via Seneca) | | general | Mixed maxims, Latin tags (memento mori, amor fati) |

How the per-session lock works

Claude Code re-runs the status-line command on every render (mode toggles, keypresses, etc). To avoid flicker, the script caches the chosen quote keyed by session_id (read from the JSON Claude Code pipes to stdin). Cache lives at $TMPDIR/claude-stoic-cache/. New session, new quote.

Want a new quote without restarting? Delete that dir:

rm -rf "$TMPDIR/claude-stoic-cache"

Custom quotes

Edit the installed quotes.json directly, or point statusLine.command at your own script. The bundle only ships Stoics on purpose.

Requirements

  • Node 18+
  • settings.json must be plain JSON (no // or /* */ comments)

Contributing

PRs for new quotes welcome. Keep them short — one status-line row. Cite the primary source if you have it (Meditations, 5.20 beats "attributed").

License

MIT © Anton Mendelson