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

life-clock

v1.0.3

Published

CLI tool that visualizes the progress of your life based on your birthdate with a clean progress bar and motivational insights

Readme

life-clock

⏳ "See how far you've come. And how far to go."

life-clock is a simple CLI tool that visualizes the progress of your life based on your birthdate — with a clean progress bar and motivational insights. It's a fun and reflective way to stay mindful of time.

Whether you're planning your next big project or just need a gentle reminder to live intentionally, life-clock turns your terminal into a philosophical time tracker.

Ouput

🎉 You're 29 years old
🧬 Estimated lifespan: 79 years
📊 Progress: 36.7% of life lived

███████████░░░░░░░░░░░░░░░░░░  36.7%

💡 Make it count. Start something today.

Why This Exists

Time is our most valuable asset — and most of us forget how little we have. life-clock is a gentle, visual nudge to make every day matter. Inspired by Tim Urban's "Life in Weeks" and the Stoic idea of memento mori.

✨ Features

  • 🔢 Calculates exact age in years
  • 🟦 Displays life progress bar (customizable width)
  • 📅 Assumes average life expectancy (default 79 years, override with flag)
  • 💡 Shows random motivational quote (with support for custom quotes)
  • 🔄 Option to show only once per day (perfect for .bashrc or .zshrc)

📦 Installation

# Install globally
npm install -g life-clock

# Or run directly with npx
npx life-clock

🚀 Usage

# Basic usage (will prompt for birthdate)
life-clock

# Provide birthdate directly (two equivalent options)
life-clock --birthdate 1990-01-01
life-clock --dob 1990-01-01

# Customize life expectancy (default: 79)
life-clock --dob 1990-01-01 --expectancy 85

# Customize progress bar width (default: 30)
life-clock --dob 1990-01-01 --width 40

# Change progress bar position to top
life-clock --dob 1990-01-01 --bar-position top

# Show only once per day (great for .bashrc or .zshrc)
life-clock --dob 1990-01-01 --daily

# Add a custom motivational quote
life-clock --add-quote "Every day is a new opportunity to change your life."

# List all your saved quotes
life-clock --list-quotes

🔧 Options

-b, --birthdate <date>       Your birthdate in YYYY-MM-DD format
-d, --dob <date>             Your date of birth in YYYY-MM-DD format (alias for --birthdate)
-e, --expectancy <years>     Life expectancy in years (default: 79)
-w, --width <characters>     Width of the progress bar (default: 30)
--daily                      Show only once per day (great for .bashrc or .zshrc)
--add-quote <quote>          Add a custom motivational quote to your collection
--list-quotes                List all quotes in your collection
--reset-quotes               Reset quotes collection to default quotes
--bar-position <position>    Position of the progress bar (top or default; default: default)
-V, --version                Output the version number
-h, --help                   Display help for command

🔄 Daily Reminder

Add to your shell profile for a daily reminder of life's progress:

# Add to your .bashrc, .zshrc, or equivalent
life-clock --dob 1997-03-14 --daily

💬 Custom Quotes

You can add your own motivational quotes to personalize your experience:

# Add a custom quote
life-clock --add-quote "Your time is limited, don't waste it living someone else's life."

# View all your quotes
life-clock --list-quotes

# Reset to default quotes
life-clock --reset-quotes

Your quotes are stored in ~/.life-clock/quotes.json and will be randomly displayed each time you run the tool. If you don't add any custom quotes, the tool will use its built-in collection of motivational quotes.

🤝 Contributing

Contributions, issues, and feature requests are welcome!