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

noskv

v0.0.4

Published

A simple, encrypted, decentralized key-value store for the command line, powered by [Nostr](https://en.wikipedia.org/wiki/Nostr).

Readme

nkv

A simple, encrypted, decentralized key-value store for the command line, powered by Nostr.

Install | Use | Syncing | Tradeoffs

nkv demo video

Install

Download the nkv single-file executable:

wget https://github.com/chr15m/nkv/releases/latest/download/nkv
chmod +x ./nkv

# Optional: move to your path for easy access e.g.:
# mv ./nkv ~/bin

Usage

The first time you run nkv, it generates a new Nostr private key and a configuration file at ./.nkv. This file stores the private key and the list of Nostr relays used to sync the data. Using the same config on different machines gives access to the same kv store.

Set a value:

./nkv foo "hello world"

Get a value:

./nkv foo

Watch a key for changes:

./nkv foo --watch echo

This will run the command echo with the new value as an argument whenever foo is updated.

Note: output is sent to stderr, except for received values, so you can safely pipe get into files or shell commands.

Syncing Across Devices

To use the same key-value store on another machine, you can copy the configuration file to ./.nkv or ~/.nkv.

Alternatively, you can configure nkv using environment variables:

  • NKV_NSEC: Set this to the shared Nostr private key (nsec...).
  • NKV_RELAYS: A comma-separated list of relay URLs to use (e.g., wss://relay.one,wss://relay.two).

nkv loads its configuration with the following priority (highest first):

  1. Environment variables (NKV_NSEC, NKV_RELAYS)
  2. Configuration file (./.nkv is checked first, then ~/.nkv)
  3. Default values (a new key is generated and default relays are used)

Tradeoffs

nkv is built on the Nostr protocol and inherits its characteristics. It is best suited for eventually-consistent storage of small amounts of data.

  • Update Speed: Updates are limited to one per second and can take several seconds to propagate.
  • Data Size: The total size of all values should be kept small (e.g. well under 50kb) to avoid relay timeouts and throttling.
  • Rate Limiting: Relays may independently rate-limit frequent updates.
  • Relay Dependency: This depends on 3rd party relays, but values are encrypted, and you can run your own.