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

llm-clock

v0.1.0

Published

Time awareness for AI coding tools

Readme

llm-clock

Time awareness for AI coding tools. LLMs have no built-in sense of the current date or time, which causes problems when working with logs, git history, deadlines, or any time-sensitive context. llm-clock fixes this by injecting the current timestamp into your AI tool's context automatically or by instructing the model to check the clock before time-sensitive work.

Install

npx llm-clock setup

The installer detects which supported tools are present on your system and configures each one. It copies a hook script to ~/.llm-clock/ and writes integration files for each detected tool.

Supported tools

| Tool | Support level | How it works | | --- | --- | --- | | Claude Code | Full | Registers a UserPromptSubmit hook that automatically injects the current time into every prompt | | Cursor | Best-effort | Adds a global rule (~/.cursor/rules/llm-clock.mdc) that tells the model to run date before time-sensitive tasks | | Codex CLI | Best-effort | Appends a section to AGENTS.md instructing the model to run date before time-sensitive tasks | | Antigravity | Coming soon | Not yet available |

Configuration

Configuration is stored at ~/.llm-clock/config.json. You can edit this file directly or run the interactive reconfigure command:

npx llm-clock setup --reconfigure

Options

| Option | Default | Description | | --- | --- | --- | | timezone | "auto" | IANA timezone string (e.g., "America/New_York") or "auto" to use system timezone | | format | "datetime" | Output format: "date" (date only), "datetime" (date and time), or "full" (date, time, and seconds) | | includeDay | true | Whether to include the day of the week in the output |

Example config

{
  "timezone": "America/New_York",
  "format": "datetime",
  "includeDay": true
}

This produces output like: Current time: 2026-03-25 14:30 EDT (Wednesday)

CLI flags

llm-clock setup                    Install for all detected tools
llm-clock setup --reconfigure      Re-run interactive configuration
llm-clock setup --uninstall        Remove llm-clock from all tools and delete config
llm-clock setup --tool <name>      Install for a specific tool only (claude-code, cursor, codex, antigravity)

How it works

For Claude Code (full support), llm-clock registers a hook in ~/.claude/settings.json under the UserPromptSubmit event. Every time you submit a prompt, Claude Code runs the hook script at ~/.llm-clock/hook.mjs, which reads the config, formats the current time using the Intl API, and writes it to stdout. Claude Code then prepends this to the model's context.

For Cursor and Codex CLI (best-effort), llm-clock writes a static rule or instruction file that tells the model to run the date command before doing time-sensitive work. This depends on the model choosing to follow the instruction.

Uninstall

npx llm-clock setup --uninstall

This removes all hook registrations, rule files, and the ~/.llm-clock/ directory.

License

MIT