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

@bandf/fs

v2.0.0

Published

Application-level virtual filesystem over local, S3, and mirror storage.

Readme

@bandf/fs

@bandf/fs is an application-level virtual filesystem for Node.js. One filesystem instance exposes a logical namespace of mount:relative/path addresses. Each mount binds a virtual root to a local directory, an S3 prefix, or a local-and-S3 mirror.

| Virtual address | Mounted backend root | | --- | --- | | work:notes/plan.md | /srv/work/notes/plan.md | | archive:notes/plan.md | s3://documents/archive/notes/plan.md | | durable:state.json | Local and S3 copies under one address |

Filesystem operations use virtual addresses, so the same read, write, stat, ls, remove, copy, and move API works across backends. copy and move can cross mount boundaries.

This is a library-level VFS. It does not mount an operating-system filesystem and is not a drop-in replacement for node:fs. The package ships as ESM with no CommonJS build and requires Node.js 24 or newer.

Install

npm install @bandf/fs

Quick start

import { createFs } from '@bandf/fs';

const fs = await createFs({
    s3: { region: `us-east-1` },
    mounts: {
        work: {
            type: `local`,
            path: `/absolute/existing/path`,
            mode: `rw`
        },
        archive: {
            type: `s3`,
            bucket: `my-bucket`,
            prefix: `documents`,
            mode: `rw`
        }
    }
});

await fs.write({ address: `work:notes/plan.md`, value: `# Plan` });

const file = await fs.read({ address: `work:notes/plan.md` });
file.value = `# Revised plan`;
await fs.write({ file }); // guarded by the revision captured by read()

await fs.copy({
    from: `work:notes/plan.md`,
    to: `archive:notes/plan.md`
});

Use createFs() for an explicit in-memory mount table. Use openFs() to load and update the persisted table at fsConfigPath().

Operational contract

| Area | Contract | | --- | --- | | Namespace | Named virtual roots backed by local, S3, or mirror storage | | Addresses | Lowercase mount name plus normalized relative path: docs:notes/a.md | | Modes | Mounts default to ro; mutations require rw | | Reads | Return a VFile with byte revision and mount provenance in file.data.fs | | Local writes | Stage a sibling file and atomically rename it while holding a per-target interprocess lock | | S3 writes | Use PutObject; guarded writes use IfMatch or IfNoneMatch | | Mirror reads | Use the local side only; there is no S3 fallback or background reconciliation | | Mirror writes | Mutate S3, then local, and restore the S3 snapshot if either step fails; this is not a distributed transaction | | Removal | Can recursively remove a local directory or S3 prefix; mount roots are always refused | | Move | Copy, then remove; it is not atomic and may leave the destination if removal fails | | Enumeration | Hides dot-led names and never follows symlinks |

Documentation

License

AGPL-3.0-or-later. See LICENSE.