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-k8s-csi

v0.2.0

Published

Kubernetes CSI ReadWriteMany StorageDriver — one RWX PVC per pool with per-allocation sub-path mounts, for Longhorn, NFS, AWS EFS, GCP Filestore and Azure Files.

Readme

@xemahq/storage-driver-k8s-csi

Kubernetes CSI ReadWriteMany storage driver

Overview

A Kubernetes implementation of the workspace storage-driver contract, for every CSI backend that can issue a ReadWriteMany volume. Each storage pool maps onto one read-write-many persistent volume claim, and per-allocation isolation is a sub-path mount translated by the matched scheduler. The consuming service injects a Kubernetes client so this package stays free of a hard SDK dependency and respects the storage boundary.

One driver instance drives one backend, selected by kind. What differs between backends is a default StorageClass name and a capacity policy, and both are declared per kind rather than implemented per kind:

| kind | Provisioner | Default StorageClass | Capacity | | --- | --- | --- | --- | | longhorn | driver.longhorn.io | longhorn | enforced | | nfs | nfs.csi.k8s.io | nfs-csi | not enforced | | efs | efs.csi.aws.com | efs-sc | not enforced | | filestore | filestore.csi.storage.gke.io | standard-rwx | 1 TiB minimum | | azure_files | file.csi.azure.com | azurefile-csi | enforced |

A capacity that is not enforced is recorded on the claim because the Kubernetes API requires the field, and no quota is applied to it — the backend is elastic, or the volume is a directory on a share that limits nothing. A backend with a minimum refuses a smaller request rather than quietly provisioning something larger than the pool says it is. The policy is stamped on every pool claim as the xema.io/capacity-policy label, and the profile table is exported so callers can read it directly.

When to use it

  • Use it for Kubernetes clusters serving shared workspace storage over Longhorn, an NFS CSI export, Amazon EFS, Google Filestore or Azure Files.

Installation

pnpm add @xemahq/storage-driver-k8s-csi

Usage

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

const driver = createK8sCsiStorageDriver({
  kind: StorageDriverKind.Longhorn,
  k8s: myK8sClient,
  namespace: 'xema-storage',
});
await driver.ensurePool(poolSpec);

Both the driver-wide storageClass option and a pool's driverConfig.storageClassName override the profile default; the pool wins.

License

Apache-2.0 © Xema — xema.dev