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

@syntaxerror-sys/water-print

v1.2.0

Published

AI water consumption tracker for Claude Code — turns tokens into liters

Readme

waterprint

AI water consumption tracker for Claude Code. Turns tokens into liters — and puts that number in perspective.

💧 25.0 mL 🥄 5.00 teaspoons  •  Total: 25.0 mL 🥄 5.00 teaspoons
💧 300.0 mL 🥛 1.20 glasses of water  •  Total: 1.2 L 🍷 1.60 wine bottles

Shows session water (current conversation) and lifetime total (accumulated across all sessions).

Water rates are model-aware, based on Li et al. 2023 — "Making AI Less Thirsty". Claude 4.x rates are linear extrapolations — treat as estimates.


Install

npm install -g @syntaxerror-sys/water-print

Claude Code setup

Option 1 — Use waterprint as your status line

{
  "statusLine": {
    "type": "command",
    "command": "waterprint"
  }
}

Option 2 — Combine with your existing status line

If you already use a status line tool (e.g. ccstatusline), create a personal wrapper:

#!/bin/bash
INPUT=$(cat)
echo "$INPUT" | your-existing-statusline
echo "$INPUT" | waterprint

Save it anywhere (e.g. ~/.claude/statusline.sh), make it executable, and point settings.json to it.

Option 3 — Just try it without touching your config

waterprint --preview 50000

CLI

# Preview any token count
waterprint --preview 50000
# 💧 25.0 mL 🥄 5.00 teaspoons

# With a specific model
waterprint --preview 600000 --model claude-opus-4-8
# 💧 480.0 mL 🥛 1.92 glasses of water

# Override model when piping JSON
echo '<status-json>' | waterprint --model claude-opus-4-8

# Show usage history
waterprint --stats
# waterprint stats
#   Today:          0.000 mL  💧 0.000 water drops
#   7 days:        25.3 mL  🥄 5.06 teaspoons
#   Lifetime:     414.6 L  🍷 552.8 wine bottles
#   Sessions:  42

# Reset all accumulated stats
waterprint --reset

waterprint --version
waterprint --help

Supported models

| Model | mL / 1k tokens | Source | |---|---|---| | claude-haiku-4-5 | 0.30 | extrapolated | | claude-sonnet-4-6 | 0.50 | extrapolated | | claude-opus-4-8 | 0.80 | extrapolated | | claude-3-5-haiku | 0.28 | Li et al. 2023 | | claude-3-5-sonnet | 0.48 | Li et al. 2023 | | claude-3-opus | 0.75 | Li et al. 2023 |

Unknown models fall back to 0.50 mL / 1k tokens.


Comparisons

drops · teaspoons · shot glasses · glasses · water bottles · wine bottles · gallons · bathtubs · jacuzzis · Olympic pools · small lakes · oceans


Data

Session and lifetime stats are stored locally in ~/.waterprint/stats.json. Nothing is sent anywhere.


License

MIT