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

@stim-cli/core

v1.6.0

Published

Shared internal cache and runtime primitives for Stim packages.

Readme

@stim-cli/core

Shared internal contracts for Stim and its cache packages.

The package contains runtime-path resolution, cache-key generation, cache registration, filesystem artifact storage, and identity-aware ownership claims. It is not a user-facing API.

withDirLock runs short synchronous, reentrant transactions with a bounded wait for a live holder. It shares the claim protocol in @stim-cli/core/ownership-claim and the identity checks in @stim-cli/core/process-identity; the CLI re-exports those modules. Core depends on unique-pid, so standalone Metro and Expo cache consumers receive the same process identity implementation without installing Stim.

The shared claim lives beside the visible lock directory at <lock>.claims. While holding its exclusive claim, the short-lock adapter takes the visible directory and adds a .stim-claim-<claimId> compatibility marker. Older callers still see an occupied directory. Publication staging stays in the claim store, so a losing publisher cannot prevent the visible directory's release. Only the holder of the exclusive claim can recover a recognized compatibility marker; release removes its own marker before removing the empty visible directory. This preserves ordinary legacy mkdir contention; an older caller that deletes occupied locks based on their age can still violate mutual exclusion.

A complete claim left by a proven-dead owner can be recovered immediately. Age never expires a live claim. Unknown owner or child identities refuse; legacy directories and visible directories left empty before marker publication or after marker removal remain blocked because there is no record proving that they are free. Verify the holder before manually removing the named claim or legacy directory. Long operations that spawn native children use an explicit claim and record the child's identity.

The npm scope remains @stim-cli until the @stim scope is available.