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

@forwardimpact/libstorage

v0.1.89

Published

Pluggable file storage — local, S3, or Supabase behind a single interface.

Downloads

7,394

Readme

libstorage

Pluggable file storage — local, S3, or Supabase behind a single interface.

Getting Started

import { createStorage } from '@forwardimpact/libstorage';

const storage = createStorage('mybucket');
await storage.put('key.json', { hello: 'world' });
const data = await storage.get('key.json');

fit-storage is an internal operator CLI

The library's published surface is the createStorage factory and the StorageInterface it returns. The fit-storage CLI (upload, download, list, create-bucket, wait) is an internal deployment tool that syncs a local data/ directory to and from a remote bucket. It has no launcher package, so it is not a public npx fit-* CLI, and the three-artifact linking rule (libraries/CLAUDE.md § CLIs and progressive documentation) does not apply to it — there is deliberately no SKILL.md and no documentation array. The library itself is documented as the persistence substrate in the Ground Agents in Context guide.

Atomicity

put(key, data) is a same-target atomic file-replace on the local backend: a process termination at any point during the call leaves the target file at either its prior content or the new content — never an intermediate prefix. The mechanism is a same-directory tmp sibling plus POSIX rename(2) — see LocalStorage.put in src/local.js. The S3 and Supabase backends inherit the same shape from their service PutObject semantics.

Reserved infix: .libstorage-tmp. — consumers must not produce keys containing this literal. The local backend uses <target>.libstorage-tmp.<nonce> as the per-call tmp sibling and list / findByPrefix / findByExtension filter the sentinel out of their results so a process-killed tmp survivor is invisible to in-process consumers.

Covered:

  • Same-target atomicity for LocalStorage.put (POSIX rename(2)).
  • Concurrent same-key put calls — each uses a unique tmp; last rename wins, matching the prior last-writer-wins outcome.
  • In-process listings exclude tmp survivors (no consumer needs to know about the sentinel).

Not covered:

  • fsync durability — a power loss after the kernel acknowledged the rename but before the page cache flushed may still lose the write.
  • Cross-process concurrent-writer correctness — two processes racing on the same key still produce a last-writer-wins outcome.
  • Operator-owned disk reclamation of orphan tmp files left by a process kill mid-put — the filter hides them from the API; on-disk bytes remain until removed by the owning operator.