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

@xemahq/storage-driver

v0.3.1

Published

Every Xema StorageDriver adapter in one package — Kubernetes CSI (Longhorn, NFS, EFS, Filestore, Azure Files), Docker local, Docker Swarm CSI and host-path — plus the per-backing native-semantics table and the conformance suite a new driver is held to.

Readme

@xemahq/storage-driver

Workspace storage adapters, one per backing, with their real semantics

Overview

Every adapter that provisions a workspace storage pool, behind one StorageDriver interface: Kubernetes CSI ReadWriteMany volumes (Longhorn, NFS, AWS EFS, GCP Filestore, Azure Files), a Docker named volume, a Docker Swarm cluster volume, and a host directory for local development. Each adapter is its own subpath, so a deployment loads only what it composes.

The interface is deliberately uniform and the backings are not, so the package also publishes what each one actually does — whether a capacity request is a quota, whether two nodes can hold a pool at once, who creates the per-allocation directory, and how the bytes are reclaimed. A conformance suite ships alongside it and holds every adapter to those declared semantics, so a driver cannot quietly normalise its backing away.

When to use it

  • Compose a driver in a service that owns storage pools, choosing the subpath that matches the backing the deployment runs on.
  • Read a backing's declared semantics before assuming a capacity number is a limit or that a directory exists once ensureSubPath resolves.
  • Run the conformance suite against your own StorageDriver implementation when you add a backing this package does not ship.
  • Reach for @xemahq/blob-storage instead for object storage — key/value blobs are a different plane, not a filesystem, and the two must not grow toward each other.

Installation

pnpm add @xemahq/storage-driver

Usage

import { storageBackendProfileFor } from '@xemahq/storage-driver';
import { createK8sCsiStorageDriver } from '@xemahq/storage-driver/k8s-csi';
import { StorageDriverKind } from '@xemahq/kernel-contracts/workspace-storage';

const driver = createK8sCsiStorageDriver({ kind: StorageDriverKind.EFS, k8s });

const pool = await driver.ensurePool({
  slug: 'workspaces-eu',
  driverKind: StorageDriverKind.EFS,
  driverConfig: {},
  capacityBytes: 100n * 1024n ** 3n,
  region: 'eu-west-1',
});

// Whether that number is a quota depends on the backing — ask, do not assume.
storageBackendProfileFor(StorageDriverKind.EFS).capacity.policy; // 'not-enforced'

Peer requirements

  • @xemahq/kernel-contracts >=34.3.0 — owns the StorageDriver interface, StorageDriverKind, and the pool/allocation types every adapter speaks.

License

Apache-2.0 © Xema — xema.dev