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

@objectwow/cloud-secret

v1.1.0

Published

A secure and efficient solution for managing sensitive data by dynamically loading secrets from cloud providers, eliminating the need for storing them in .env files.

Readme

@objectwow/cloud-secret

A secure and efficient solution for managing sensitive data by dynamically loading secrets from cloud providers, eliminating the need for storing them in .env files.

⭐️ Your star shines on us. Star us on GitHub!

Problem

Many teams choose to store sensitive data in .env files and push them to private repositories. While this approach makes it easier to share environment variables and manage changes across the team, it poses a significant security risk. Sensitive information can still be accidentally exposed due to human error, even when stored in a private repository.

Solution

The proposed solution is to split environment variables into two parts: insensitive data, such as configuration details, stored in the source code (e.g., .env or .env.backup), and sensitive data, such as access keys and database passwords, stored securely in the cloud and cached locally in an encrypted form.

Installation

npm i @objectwow/cloud-secret

Add .cloud-secret-cache to .gitignore

Usage

With Google Secret Manager

Step 1: Setup authentication

There are two ways to authentication with GCP

Solution 1: Setup gcloud CLI

  • Recommendation, because when someone leaves, you can delete their account to prevent further access.
  • Link: https://cloud.google.com/sdk/docs/install
  • After that, login: gcloud auth application-default login

Solution 2: Setup authentication by service account or keyFilename

  • Link: https://cloud.google.com/iam/docs/service-accounts-create#console

Step 2: Setup source code via sample

See sample at here

With AWS Secret Manager

Coming soon...

With Azure Key Vault

Coming soon...

With Hashicorp Vault

Coming soon...

Parameters

Provider

  • GoogleProvider
  • AWSProvider
  • AzureProvider
  • VaultProvider

Config

  • enable: Whether to enable the secret manager. On the server, if you inject all sensitive data via Deployment or Shell, you don’t need to use it, so you MUST set this to false. Default is true.
  • useCache: A boolean indicating whether to use file cache or not. Default is true.
  • cachePath: Path to store cloud secret cache. Default .cloud-secret-cache in root workdir
  • hashKey: A string indicating the hash key to encrypt and decrypt secret values. Leave it blank if you don't want to encrypt secret values.
  • debug: A boolean indicating whether to print debug message or not. Default is true.

Internal resources

Contact

If you have any questions, feel free to open an open an issue on GitHub or connect with me on Linkedin.

Thank you for using and supporting the project!