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

virtual-system

v1.0.5

Published

An Emulated File System for Frontend Applications

Downloads

483

Readme

Virtual System

1 - Abstract

A virtual system is an artificial file system overlaid atop an existing file system or simulated in the absence of one.

2 - Contents

2.1 - Conventions

2.1.1 - Paths

A virtual system path (VSP) is a file path to a resource on a real or virtual file system. The elements of a path are strings which are separated and ordered into a list.

The first element of a VSP is the disk, specifying both the system the resource is located in and the conventions for retrieving or modifying it. Each disk itself operates as a folder, containing all resources nested within it. An empty path specifies a folder containing all available disks.

Each subsequent element specifies the name of a subfolder of the folder specified by the previous element, except in a file path, where the last element specifies the name of a file within the folder specified by the previous element.

A blank path may be rendered as an empty string. A path to a disk may be rendered as the name of the disk, followed by the string "://". A path to a non-disk element may be rendered as a string where the disk name is separated from the next element by the string "://", and each subsequent element is separated from the next by a single forward slash. Any separating or otherwise functional characters in element names may be escaped with a backslash.

Local paths may be specified using abridged versions of global paths and periods as in UNIX-style file path conventions.

VSPs are case insensitive unless there's a conflict between multiple resources.

2.1.1.1 - The Common Storage Convention

The common storage convention is for shared processes within a program to store shared state in a common global object, deriving what is referred to as the common state from all fields that are not present in said object by default.

In the case of a virtual system disk, it shall interpret each field in the common state as a file, if said field is a primitve value, or as a folder if not.

2.1.1.2 - Standard Disks
2.1.1.2.1 - Ghost Disk

The ghost disk ("Ghost://") is a disk corresponding to the volatile storage of the application running the virtual system, hence its contents will be erased when the application is terminated.

The ghost disk uses the common storage convention, using the window object in the browser and the global object in node.

2.1.1.2.2 - HTTP Disks

HTTP disks are disks representing the HTTP protocols as disks to make URLs into valid VSPs, being "http://" and "https://" respectively.

2.1.1.2.3 - Local Disks

Local disks are disks representing the actual disks on the local file system, sharing the aliases of the same ("C://", "D://", etc.).

2.1.1.2.4 - Storage Disk

The storage disk ("Storage://") is a disk corresponding to the non-volatile storage of the application running the virtual system.

The storage disk uses the common storage convention, using the localStorage object in the browser.

2.1.2 - Virtual System Format (VSF)

The virtual system format (VSF) is an APInt mask which allows "folders" to be used in place of "packages", and "files" to be used in place of "utilities".

VSF is the primary method for serializing virtual systems.

2.1.3 - Overlays

A virtual system overlay (VSO) is a file in a real or virtual file system which references virtual system content that is to be overlaid atop the folder in which it is located while the virtual system is active, but, by default, not to actually be written to disk.

VSO content can, however, be written to disk and permanently overlaid atop the folder content if the action is manually requested. Additionally, virtual system folders may be overlaid atop other folders manually, permanently or not, without the use of VSOs.

A VSO file shall have the ".vso" extension, and shall either contain a VSP to a VSF object containing the content to be overlaid, or shall itself contain the content of said VSF object.

2.1.4 - Hooks

A virtual system hook (VSH) is an event listener which triggers an event when a specific resource or set of resources within a virtual system is altered.