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

agent-hodl

v0.5.0

Published

Machine-wide local file lock daemon for lease-based coordination on macOS.

Readme

agent-hodl

agent-hodl is a machine-wide local daemon that coordinates lease-based file locks using canonical absolute paths. It is the single source of truth for acquire, renew, release, status, and event delivery.

How To Use

Start the daemon:

npx agent-hodl

Show command help:

npx agent-hodl help

Start the daemon with the terminal dashboard:

npx agent-hodl --dashboard

By default the dashboard is disabled. Without --dashboard, the daemon prints structured JSON on startup with the active Unix socket path.

Check connectivity from another terminal:

npx agent-hodl ctl health

Acquire a lease for a file before writing it:

npx agent-hodl ctl acquire \
  --path /absolute/path/to/file \
  --owner-type agent \
  --owner-id task \
  --session-id session-1

Renew the lease during long-running work:

npx agent-hodl ctl renew --token <token>

Release the lease as soon as the write is finished:

npx agent-hodl ctl release --token <token>

Inspect the current holder for a path:

npx agent-hodl ctl status --path /absolute/path/to/file

Subscribe to lock events for a file or path prefix:

npx agent-hodl ctl subscribe --path /absolute/path/to/file
npx agent-hodl ctl subscribe --prefix /absolute/path/prefix

Optional daemon flags:

  • --socket-path overrides the default socket path.
  • --dashboard starts the terminal dashboard.

VS Code Extension

hodl also has a VS Code extension published as senekapp.hodl-vscode-plugin in the Visual Studio Marketplace.

Install it from the Visual Studio Marketplace.

The extension integrates the editor with the daemon for file-backed documents:

  • It acquires a lease when a document becomes dirty.
  • It renews the lease automatically while you keep editing.
  • It releases the lease after save or when the document closes.
  • It shows errors and warnings when a file cannot be locked or a lease is lost.
  • It exposes blocked-file state in the status bar.

Configuration:

  • localFileLock.socketPath: optional override for the daemon Unix socket path.
  • localFileLock.ttlMs: requested lease TTL in milliseconds. The default is 30000.

The extension expects the hodl daemon to already be running locally.

Agent Instructions

Copy the AGENTS.md contents into agent system prompts when you need agents to comply with the lock daemon.

Protocol Notes

  • Locks are keyed by canonical absolute path.
  • Lease expiry is authoritative. Notifications are hints only.
  • The default socket path is /tmp/hodl-<uid>.sock.