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

sec-term

v1.1.0

Published

High-fidelity terminal secrets manager for AWS SSM Parameter Store & local zero-cloud encrypted vaults supporting instant .env export, multi-target drift diffing, and zero-disk in-memory secret injection.

Readme

🔐 sec-term (secx)

High-Fidelity Terminal Secrets Manager for AWS SSM Parameter Store & Zero-Cloud Local Encrypted Vaults. Instant .env export, cross-environment drift diffing, zero-disk in-memory secret execution, and AES-256-GCM local vault management.

npm version License: MIT


⚡ Highlights

  • 🌐 AWS SSM Parameter Store & LocalStack: Recursively query and export parameters with automatic KMS decryption.
  • 💻 Zero-Cloud & Offline Ready: Works completely without AWS! Diff local .env files (.env.local vs .env.prod) and run applications with local files safely.
  • 🔒 Zero-Cloud Encrypted Vaults (.secx.vault): Encrypt production .env files with AES-256-GCM authenticated encryption (PBKDF2 100k iterations).
  • 🔍 Visual Drift Diffing: High-fidelity Unicode tables comparing variables between staging/production or local .env files.
  • 🚀 Zero-Disk In-Memory Execution: Pull secrets from SSM or encrypted vaults directly into memory child processes without writing plaintext credentials to disk.

📦 Installation

Install globally or run instantly via npx:

# Run instantly with zero install
npx sec-term --help
npx secx --help

# Or install globally
npm install -g sec-term

🚀 Usage Guide

1. Zero-Cloud / Offline Mode (No AWS Required)

🔍 Compare Drift Between Two Local .env Files

Spot missing keys or differences between staging and production configs before deploying:

secx diff .env.staging .env.production

🔒 Encrypt a .env File into an Encrypted Vault

secx vault encrypt .env.production -o secrets.vault --passphrase "my-secure-passphrase"

🔓 Decrypt a Vault File

# Print to terminal
secx vault decrypt secrets.vault --passphrase "my-secure-passphrase"

# Or write back to .env
secx vault decrypt secrets.vault -o .env.production --passphrase "my-secure-passphrase"

🚀 Execute with Zero-Disk Injected Secrets (Local Vault)

Run your application with secrets loaded in-memory directly from the encrypted vault:

secx exec secrets.vault --passphrase "my-secure-passphrase" -- npm start

2. AWS Mode (SSM Parameter Store & LocalStack)

📤 Export AWS Hierarchy to .env, JSON, or YAML

# Export /prod/api/ hierarchy to .env format
secx export /prod/api/

# Export to a file directly
secx export /prod/api/ -f env -w .env.production

# Export to JSON or YAML
secx export /prod/api/ -f json
secx export /prod/api/ -f yaml

# LocalStack support (offline mock)
secx export /dev/api/ --endpoint http://localhost:4566

🔍 Cross-Environment Drift Diffing

# Compare staging vs prod parameters on AWS
secx diff /staging/api/ /prod/api/

# Reveal raw values
secx diff /staging/api/ /prod/api/ --show-values

🚀 Run App with Zero Plaintext on Disk

secx exec /prod/api/ -- npm start
secx exec /prod/api/ -- python main.py

📥 Import .env into AWS Parameter Store

# Preview what would be uploaded
secx import /prod/api/ .env.production --dry-run

# Upload as KMS SecureString
secx import /prod/api/ .env.production --secure

🌲 Visual Hierarchy Tree

secx tree /prod/

🛡️ License

MIT © authoritydmc