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

vault-local

v1.0.0

Published

A machine-locked secret management and code protection system for Node.js on Windows.

Readme

Vault-Local

A machine-locked secret management and code protection system for Node.js on Windows.

Overview

Vault-Local provides professional-grade security by tying sensitive data and executable code to specific hardware identifiers. It leverages a native C# module to derive a high-entropy 256-bit encryption key from the motherboard serial number, BIOS UUID, processor ID, and system disk signatures.

Features

  • Machine-Locked Secrets: Encrypts key-value pairs in a local store that is only accessible on the originating hardware.
  • Code Protection: Encrypts JavaScript source files into an encrypted format (.vlt) that cannot be read by unauthorized users.
  • Project Mirroring: Recursively encrypts entire directories into a dist/ folder, maintaining your project structure while protecting source code.
  • Modular Loaders: Intercepts require() calls to allow seamless loading of machine-locked sub-modules without ever exposing plain text on the disk.
  • Remote Authorization: Allows authorized execution on different hardware (e.g., Pterodactyl panels).

Installation

Ensure you have PowerShell and the .NET Framework installed on your Windows machine.

git clone <repository-url>
cd vault-local
npm link

Usage

Secret Management

Store and retrieve sensitive environment variables:

node cli.js set API_KEY "0123456789abcdef"
node cli.js get API_KEY

Full Project Protection

Protect an entire project directory:

# Encrypts the "./src" directory into "./dist"
node cli.js protect ./src ./dist

The system will:

  1. Mirror the original directory structure.
  2. Encrypt all .js files to .vlt files.
  3. Copy non-code assets (JSON, images, etc.) as-is.

Execution

Execute the entry point of your protected project:

# Vault-Local handles all internal module resolution automatically
node cli.js run ./dist/index.js.vlt

Remote Server Deployment

To deploy protected code specifically to a remote server's hardware:

  1. Obtain the remote server's Hardware ID:

    node cli.js hwid
  2. Encrypt the source code for that specific ID:

    node cli.js protect ./src ./dist <remote-hwid>

Security Disclosure

Vault-Local uses AES-256-GCM for all encryption and authentication. This ensures both confidentiality and integrity of the data. Source code is decrypted only in RAM using the Node.js vm module.

License

All rights reserved.