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

coffee-time

v1.2.0-beta.9

Published

Lightweight CLI to schedule coffee breaks at a fixed interval.

Readme

coffee-time ☕

A lightweight CLI that schedules recurring coffee breaks while you code.

Why

Long uninterrupted work sessions hurt focus. coffee-time keeps a reliable, low-noise loop that nudges you to step away at predictable intervals.


Install

Global install (recommended)

npm install -g coffee-time

Run without installing (try it instantly)

npx coffee-time start --interval 45

After a global install, the coffee-time command is available anywhere.


Usage

Start a continuous break loop with a required interval (minutes):

coffee-time start --interval 45

Add a lightweight countdown ping every minute:

coffee-time start --interval 45 --status

What happens

  • Prints a single startup line: Coffee breaks scheduled every 45 minutes. Press Ctrl+C to stop.
  • Optional status flag (--status) prints a countdown update every minute: ⏰ Next break in 44 minutes
  • Waits 45 minutes, then triggers a break notification.
  • After each break, countdown updates continue when --status is enabled.
  • Immediately schedules the next interval and repeats until you stop it (Ctrl+C).

Interval rules

  • Integer minutes only.

  • Must be ≥ 1.

  • Invalid values:

    • print a clear error to stderr
    • exit with code 2

Notifications

  • Always prints a console message on each break: ☕ Time for a coffee break! (45 min interval)

  • Attempts a desktop notification where available:

    • macOS: osascript -e 'display notification …'
    • Linux: notify-send (if installed)
    • Windows: PowerShell toast (best-effort)
  • Missing notification tools never crash the app — console output is the fallback.


Stopping

Press Ctrl+C to stop cleanly.

  • Exit code: 0
  • Message: Stopped. Stay fresh ☕

Exit codes

  • 0 — normal exit (including Ctrl+C)
  • 2 — usage / argument error
  • >0 — unexpected runtime error

Development / contributing

For local development only (not for end users):

git clone <your-repo-url>
cd coffee-time
npm install
npm link

Run locally:

coffee-time start --interval 45

Unlink when done:

npm unlink -g coffee-time