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

@koove/crypto

v0.1.0

Published

Koove zero-knowledge envelope encryption primitives (X25519 + AES-256-GCM + HKDF). Pure JS, auditable, shared by the SDK, CLI and control plane.

Readme

@koove/crypto

Zero-knowledge envelope-encryption primitives for Koove — the zero-knowledge secrets manager for developers. Pure JavaScript, auditable, no native linking. Shared by the Koove SDK, CLI and control plane.

This package is open source on purpose: it is the auditable proof of Koove's zero-knowledge model. The construction here is exactly what encrypts your secrets, so anyone can verify that the server never has what it needs to read them.

What it does

  • Envelope encryption. Each secret is encrypted once with a random Data Encryption Key (DEK) using AES-256-GCM. The DEK is sealed per recipient public key using X25519 (ECDH) + HKDF-SHA256 (a sealed-box construction). Adding a recipient or rotating keys is a re-seal of the DEK — never a re-encryption of the secret.
  • Attestation binding (computeAttestationBinding): the single shared commitment that binds an attestation challenge to a device's X25519 public key, identical on iOS, Android and the server.
  • Recovery codes (generateRecoveryCode / deriveRecoveryIdentity): BIP39 256-bit mnemonic → HKDF-SHA256 → X25519 identity, for break-glass recovery.

Primitives: @noble/curves (X25519), @noble/ciphers (AES-256-GCM), @noble/hashes (HKDF-SHA256) and @scure/bip39.

Install

npm install @koove/crypto

Usage

import {
  generateIdentityKeyPair,
  encryptSecret,
  decryptSecret,
  addRecipient,
} from '@koove/crypto';

// Each consumer (device / service) has an X25519 identity.
const device = generateIdentityKeyPair();

// Encrypt once, sealed for one or more recipients. The server only ever stores this.
const envelope = encryptSecret([device.publicKey], 'my-secret-value');

// Only a holder of the matching secret key can decrypt.
const value = decryptSecret(device, envelope); // 'my-secret-value'

// Authorize a new device without re-encrypting the secret (this is how the
// server never needs to see the plaintext — an authorized party re-seals the DEK).
const newDevice = generateIdentityKeyPair();
const updated = addRecipient(device, envelope, newDevice.publicKey);

Tests

The test suite pins the exact byte layout of every construction against independent reference implementations (node:crypto) and official BIP39 vectors, so the format can never silently drift.

npm test

License

MIT © Koove. See LICENSE.

Part of Koove — https://koove.io · https://github.com/kooveio