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

@qodalis/cli-server-plugin-filesystem

v1.0.0-beta.5

Published

Pluggable file storage plugin for Qodalis CLI server — provides in-memory and OS filesystem providers

Readme

@qodalis/cli-server-plugin-filesystem

Pluggable file storage plugin for Qodalis CLI Server (Node.js). Defines the IFileStorageProvider interface and ships two built-in providers: in-memory and OS filesystem.

Install

npm install @qodalis/cli-server-plugin-filesystem

Quick Start

import { createCliServer } from '@qodalis/cli-server-node';
import {
    FileSystemModule,
    InMemoryFileStorageProvider,
    OsFileStorageProvider,
} from '@qodalis/cli-server-plugin-filesystem';

const { app } = createCliServer({
    configure: (builder) => {
        builder.addModule(new FileSystemModule());

        // Use the in-memory provider (volatile, data lost on restart)
        builder.setFileStorageProvider(new InMemoryFileStorageProvider());

        // Or use the OS filesystem provider with path whitelisting
        builder.setFileStorageProvider(
            new OsFileStorageProvider({
                allowedPaths: ['/home/user/data'],
            }),
        );
    },
});

Providers

| Provider | Name | Persistence | Description | |---|---|---|---| | InMemoryFileStorageProvider | in-memory | None (volatile) | Tree structure held in memory; fast but lost on restart | | OsFileStorageProvider | os | Disk | Delegates to the host OS filesystem with path-traversal protection |

OS Provider Options

| Option | Type | Description | |---|---|---| | allowedPaths | string[] | Absolute directory paths the provider is allowed to access |

The OS provider validates every path against the allowlist using realpath resolution, preventing symlink-based path traversal attacks.

IFileStorageProvider Interface

All providers implement the IFileStorageProvider interface:

| Method | Description | |---|---| | list(path) | List entries in a directory | | readFile(path) | Read file contents as UTF-8 | | writeFile(path, content) | Create or overwrite a file | | stat(path) | Get file or directory metadata | | mkdir(path, recursive?) | Create a directory | | remove(path, recursive?) | Remove a file or directory | | copy(src, dest) | Copy a file or directory tree | | move(src, dest) | Move (rename) a file or directory | | exists(path) | Check whether a path exists | | getDownloadStream(path) | Get a readable stream for file download | | uploadFile(path, content) | Upload raw bytes to a file path |

Custom Providers

Implement IFileStorageProvider to create your own storage backend. See the companion packages for examples:

  • @qodalis/cli-server-plugin-filesystem-json -- JSON file persistence
  • @qodalis/cli-server-plugin-filesystem-s3 -- Amazon S3 storage
  • @qodalis/cli-server-plugin-filesystem-sqlite -- SQLite database storage

License

MIT