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

cigarettes-for-claude

v1.1.0

Published

A desktop mascot that smokes. Give Claude Code a real animated cigarette, or watch it lose its mind.

Readme


📦 Installation

Globally via npm (Node ≥ 18 required):

npm install -g cigarettes-for-claude

Or straight from this repo:

git clone <this-repo>
cd Cigarettes-For-Claude
npm install -g .

Afterward the commands cigarettes-for-claude and the short alias cfc are available. Electron is the only dependency and gets pulled in during install.

🚀 Usage

cfc            # launch mascot + cigarette as desktop windows
cfc --help     # help

cfc starts both windows detached in the background, prints a short notice, and exits right away — your terminal stays free:

🚬 Cigarettes for Claude is running (desktop). Quit: right-click the cigarette.

🤖 The desktop mascot

A small window that looks exactly like the orange Claude Code CLI logo. Its mood tracks the craving level:

  • chill — everything relaxed, the occasional content *vibes* / life's good, man
  • jittery — craving is rising, it starts fidgeting and begging: need a smoke... need a smoke..., where's my lighter??
  • withdrawal meltdown — acute nicotine withdrawal: violent shaking, color shifting toward red, loud demands: GIVE. CIGARETTE. NOW., DID ANYONE EVER COMPACT AROUND HERE?!

🎯 The focus boost

The actual "benefit": right after smoking, craving is at 0 and Claude gets a FOCUS BOOST for 15 minutes. During this phase Claude deliberately answers more compactly and with sharper focus — direct answers, clear structure, less rambling (with the occasional satisfied drag thrown in).

After that the tone normalizes again, craving starts climbing once more, and eventually the mascot starts begging for the next smoke. Smoke, work focused, repeat.

🧩 Claude Code plugin

The real fun starts with the plugin: it measures Claude's context usage in real time, gives Claude a smoker personality, drives the focus boost, and adds the /smoke command.

In Claude Code:

/plugin marketplace add /path/to/repo
/plugin install cigarettes-for-claude

Then in chat:

/smoke

/smoke gives Claude a smoke break, resets craving to 0, starts the focus boost, and Claude thanks you in a deeply relaxed smoker tone before getting back to focused work.

Optional statusline — the current state right in Claude Code. In ~/.claude/settings.json:

{
  "statusLine": {
    "type": "command",
    "command": "node /path/to/repo/plugin/statusline.js"
  }
}

Result: 🚬 ▓▓▓▓▓░░░ Craving 62% · 124k since last smoke — the craving bar plus how many tokens have passed since the last cigarette. During acute withdrawal the icon blinks and Craving X% becomes WITHDRAWAL!.

⚙️ How it works

Everything hangs off a single state file:

~/.cigarettes-for-claude/state.json

(overridable via CFC_STATE_DIR). The plugin writes how much Claude is working — after every tool call, not just at the end of a turn, so the craving bar and mascot mood update live while Claude works. The mascot, cigarette, and statusline all read from the same file. Deleting it = instant, painless cold turkey.

Craving formula:

craving = clamp(round(tasks * 5 + tokens / 2000), 0, 100)

So +5% per completed task, plus ~1% per 2,000 context tokens burned. Smoking resets both to 0 and stamps the timestamp for the 15-minute focus boost.

Tiers (mood):

| Craving | State | Mascot | |-----------|------------|----------------------| | 0–24% | relaxed | chill | | 25–59% | normal | chill | | 60–84% | craving | jittery | | 85–100% | withdrawal | meltdown |

During withdrawal the mascot shakes violently, loudly demands a refill, and the statusline blinks. Time for /smoke or to drag over a cigarette — or the mascot will come get it itself.

License

MIT © Mika Stiebitz