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 🙏

© 2025 – Pkg Stats / Ryan Hefner

shadowvault

v1.0.1

Published

A robust tool designed for efficient management of environment variables across distributed teams.

Downloads

3

Readme

ShadowVault 🌐

ShadowVault is an efficient and secure CLI tool designed to manage and synchronize environment files on cloud storage. Share environment configurations across your team without hassle, all while ensuring your data is safely encrypted.

Table of Contents

Features 🚀

  • Unified Environment Management: Keep all your environment configurations in one place.
  • Team Synchronization: Share the same environment settings across your team.
  • Secure: All environment data are encrypted and safely stored in the cloud.
  • Intuitive Commands: Simple and easy-to-use commands for upload and download operations.

Installation 💽

To install ShadowVault globally, run the following command:

npm install -g shadowvault

AWS S3 Setup Guide ☁️

To utilize ShadowVault with AWS S3, set up a dedicated S3 bucket and IAM user:

Creating an S3 Bucket

  1. Create an AWS S3 bucket named shadowvault. This is the default in ~/.shadowvault/config.json.
  • Note: If you choose a different name, ensure it matches your configuration.

Setting Up an IAM User

  1. Navigate to IAM in the AWS Console.
  2. Select Users.
  3. Click Add User.
  4. Name your user.
  5. For permissions, select Attach existing policies directly.
  6. Click Create Policy and switch to the JSON tab.
  • Paste the required policy, adjusting shadowvault if you used a different bucket name.
  {
    "Version": "2012-10-17",
    "Statement": [
    {
      "Sid": "ListBuckets",
      "Effect": "Allow",
      "Action": "s3:ListBucket",
      "Resource": "arn:aws:s3:::shadowvault"
    },
    {
      "Sid": "AllObjectActions",
      "Effect": "Allow",
      "Action": "s3:*Object",
      "Resource": "arn:aws:s3:::shadowvault/*"
      }
    ]
  }
  1. Name your policy, e.g., ShadowVaultS3BucketPolicy.
  2. Click Create Policy.
  3. Return to the user creation, refresh to see your policy, select it, and proceed.
  4. Finalize by clicking Create User.

Retrieving AWS Credentials for ShadowVault

  1. In IAM, click your user.
  2. Under Security credentials, scroll down and click Create access key.
  3. Press the local code option and proceed to create the access key.
  4. Copy the displayed Access key ID and Secret access key.

Creating ShadowVault Configuration

To configure ShadowVault to connect with your AWS S3 storage, create the necessary configuration file.

Create a file at the following path:

~/.shadowvault/config.json

Populate the file with the following content:

{
  "aws": {
    "accessKeyId": "YOUR_ACCESS_KEY_ID",
    "secretAccessKey": "YOUR_SECRET_ACCESS_KEY",
    "region": "YOUR_AWS_REGION",
    "bucket": "YOUR_BUCKET_NAME"
  }  
}

Replace the placeholders:

  1. YOUR_ACCESS_KEY_ID: Your AWS access key ID.
  2. YOUR_SECRET_ACCESS_KEY: Your AWS secret access key.
  3. YOUR_AWS_REGION: The AWS region for your S3 bucket (e.g., eu-west-2, eu-west-1).
  4. YOUR_BUCKET_NAME: The name of your S3 bucket. We recommend using shadowvault as the bucket name for consistency.

Ensure that your configuration is accurate to ensure seamless communication with your AWS resources.

Usage 🛠

ShadowVault provides two main commands: upload and download.

When executed within a project directory that contains a package.json, the project name will automatically be extracted, making the -n or --name option optional. However, you can still specify the -n option if you wish to override the extracted name.

ShadowVault Commands 📜

1. Upload

Description:
Safely upload environment files to cloud storage.

Usage:

shadowvault upload [options] [files...]

Arguments:

  • files: List of .env files you wish to upload (e.g., .env.production, .env.staging).

Options:

  • -A, --all:
    Use this option to upload all .env files from the directory.
    Example:

    shadowvault upload -A
  • -n, --name <projectName>:
    Specify the name of the project associated with the environment files. If executed within a directory with a package.json, this option becomes optional.
    Example:

    shadowvault upload -n myAwesomeProject .env.production
  • -s, --stage <stage>:
    Indicate the deployment stage of the environment files (like dev, prod, staging). If you don't specify this option, it defaults to "default".
    Example:

    shadowvault upload -s prod .env.production
  • -p, --provider <type>:
    Choose the storage provider. Currently supported options are s3. Default is s3.
    Example:

    shadowvault upload -p s3 .env.dev
  • -h, --help:
    Display the help guide for the command.

2. Download

Description:
Retrieve and save environment files from cloud storage to your local machine.

Usage:

shadowvault download [options] [files...]

Arguments:

  • files: List of .env files you wish to download (e.g., .env.production, .env.staging).

Options:

  • -A, --all:
    Use this option to download all .env files from the storage.
    Example:

    shadowvault download -A
  • -n, --name <projectName>:
    Specify the name of the project associated with the environment files. If executed within a directory with a package.json, this option becomes optional.
    Example:

    shadowvault download -n myAwesomeProject .env.production
  • -s, --stage <stage>:
    Indicate the deployment stage of the environment files (like dev, prod, staging). If you don't specify this option, it defaults to "default".
    Example:

    shadowvault download -s prod .env.production
  • -p, --provider <type>:
    Choose the storage provider. Currently supported options are only s3. Default is s3.
    Example:

    shadowvault download -p s3 .env.dev
  • -h, --help:
    Display the help guide for the command.

Contributing 🤝

Contributions are welcome! Please see the CONTRIBUTING.md for details.

Support & Feedback 💌

For support or feedback, please raise an issue on our GitHub repository.

License 📄

This project is licensed under the MIT License. See the LICENSE file for details.