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

@luncgoblins/tiny-keystore

v1.0.3

Published

A tiny bit more secure than .env files

Readme

A Teeny-Tiny Keystore

A tiny project to store/retrieve encrypted secrets with minimal user interaction.

While carrying out my crypto projects in which I made heavy use of JavaScript and node.js. I ended up storing clear text passwords in .env files all over the place. I started to worry about my security. This is why I made this teeny-tiny project, which wraps around linux-keyutils and the keyctl command.

It allows you to store and retrieve secrets in a secure (?) fashion, storing secrets in an encrypted keyring on disk. In the background it wraps around keyctl. You "unlock" your keyring by storing the decryption password for your secrets in the kernel keyring. Then other processes owned by your linux account have interactionless acess to your secrets by using the keystore lib shipped with this repository.

This way it is possible to run bots that don't require user interaction while exposing their encrypted passwords to the file system. There is a little caveat. After reboot of the OS the kernel keyring is cleared (because it's in-memory). This requires the user to interact and unlock the tiny-keystore keyring once after reboot.

Installation

Install the npm package in your project

cd /your/awesome/project
npm i @luncgoblins/tiny-keystore

Install the necessary OS dependencies:

sudo apt install keyutils

Using It (As CLI)

From within your awesome project directory execute:

  1. (re-) Initialize your keystore: npx tksc init
  2. lock your keystore npx tksc lock
  3. unlock your keystore npx tksc unlock
  4. store a key npx tksc add <key-name>

Using It (In Your Projects)

  1. Import: import {Keystore} from 'tiny-keystore'
  2. Retrieve a keyring: const ks = Keystore.decrypt()
  3. Retrieve a secret: const secret = ks.getValue(<key-name>)
  4. Store a secret: ks.addKeyValuePair(<key-name>, <secret>)
  5. Writeback to disk: ks.encrypt()

Disclaimer

Use this project only for your hot wallets that contain a workable amount of funds that you can afford to lose. Try to store as few secrets as possible. This project does not claim to be super-dooper-enterprise-millions-of-dollars secure. It is just a tiny layer of security that goes beyond "storing passwords on disk and in clear text"