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

myhacktimer

v1.0.6

Published

Smart CLI that tracks only real active coding time per project

Downloads

841

Readme

⏱️ HackTimer

I built the timer I use to time every hack. Hack #0. 😂

A CLI that tracks only real active coding time — not clock time. Auto-pauses when you go AFK. Logs LOC delta. Tamper-evident so "shipped in 7h" actually means something.

npx myhacktimer start .

Why

Clock time is a lie. You start a timer, make a coffee, scroll Twitter, come back — and now your "6 hour build" was really 2.5h of actual work.

HackTimer only counts time when files are changing. The moment you stop editing, the clock pauses. No fluff.


Install

npm install -g myhacktimer
# or just run directly
npx myhacktimer start .

Commands

hacktimer start <path> [-t 4h]   # start or resume session (default timeout: 12h)
hacktimer start <path> --daemon  # run in background, close terminal freely
hacktimer stop                    # pause session — resume anytime with start
hacktimer end                     # end session forever + final summary
hacktimer status                  # check live session from another terminal
hacktimer report [project] -p week  # day | week | month | year
hacktimer list                    # all tracked projects
hacktimer log [project]           # raw session history

Timeout format: 30m, 2h, 12h, 24h — whatever fits your session.

Sessions persist foreverstop just pauses, start always resumes. Only end closes a session for good.


How it works

  • Watches your folder with chokidar for add, change, unlink events
  • Resets a 10-minute inactivity timer on every file change
  • When the timer fires → pauses. Next file change → resumes
  • Snapshots LOC at start and stop, computes delta
  • Saves everything to ~/.hacktimer/sessions.json

Integrity

Two layers so "I shipped this in X hours" isn't just vibes:

  1. HMAC-SHA256 — the entire session file is hashed on every write and verified on every read. Mismatch = warning + reset.
  2. Read-only filechmod 444 after every write. Editing it manually requires a deliberate chmod, which feels intentional and leaves a trace.

Not unbreakable — it's a local tool. But it makes casual faking obvious. That's the point.


Example output

✅ HackTimer started for ./my-hack
   ⏱️  Timeout: 12h | Active time: 0h 0m
   👀  Watching for file changes...
   ⏸️  Pauses automatically after 10min of no edits

⏸️  Paused — my-hack
────────────────────────────────────────
⏱️  Active coding time:  2h 10m
────────────────────────────────────────
   Run hacktimer start . to resume anytime.

🏁 Session ended for my-hack
────────────────────────────────────────
⏱️  Active coding time:  6h 48m
📝 LOC delta:           +980 lines
💾 Timeout used:        57%  (6h 48m / 12h)
────────────────────────────────────────
✅ Saved. Great work! 🔥

Stack

Node.js + TypeScript. chokidar for watching. commander for CLI. chalk for colour. HMAC via built-in crypto. Zero database, zero cloud, zero telemetry.

Everything stays on your machine.


Agent Skill

Install the skill so any agent (Kiro, Claude Code, Copilot, etc.) knows how to use hacktimer:

curl -fsSL https://raw.githubusercontent.com/thejamesnick/hacktimer/main/skills/install.sh | bash

Or manually copy skills/hacktimer/SKILL.md into ~/.agent-skills/hacktimer/SKILL.md.


Part of the HACK Series (https://x.com/YukoNikumo) — building one thing a day, live. 🔥