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

@parmanasystems/crypto

v1.42.0

Published

Signing and verification primitives for deterministic governance infrastructure.

Downloads

499

Readme

@parmanasystems/crypto

Ed25519 key management, signing, and verification primitives for the parmanasystems governance runtime.

npm

Overview

@parmanasystems/crypto provides the low-level cryptographic primitives used throughout parmanasystems:

  • Loading Ed25519 keys from disk or environment variables
  • Signing canonical payloads (returns base64)
  • Verifying Ed25519 signatures
  • Signing and verifying bundle manifests

All operations use Node.js's built-in crypto module — no external cryptographic dependencies.

Installation

npm install @parmanasystems/crypto

API

Key loading

import { loadPrivateKey, loadPublicKey } from "@parmanasystems/crypto";

// Load from file (relative path or absolute)
const privateKey = loadPrivateKey();  // reads ./dev-keys/bundle_signing_key
const publicKey  = loadPublicKey();   // reads ./dev-keys/bundle_signing_key.pub

Signing

import { signManifest } from "@parmanasystems/crypto";

// Sign a bundle.manifest.json file
const signature = await signManifest("./policies/claims-approval/v1/bundle.manifest.json");
// Returns base64-encoded Ed25519 signature

Verification

import { verifySignature, verifyPayloadSignature } from "@parmanasystems/crypto";

// Verify a manifest signature
const ok = await verifySignature(manifestPath, signature);

// Verify an arbitrary payload
const ok = verifyPayloadSignature(payload, signature, publicKey);
// Returns boolean

Key persistence

import { persistKeys } from "@parmanasystems/crypto";

await persistKeys(privateKey, publicKey, "./dev-keys");
// Writes bundle_signing_key and bundle_signing_key.pub

Algorithm

All signatures use Ed25519 via Node.js crypto.sign / crypto.verify.

  • Private keys: PKCS8 DER format
  • Public keys: SPKI DER format
  • Signatures: base64-encoded

For AWS KMS HSM-backed signing, use AwsKmsSigner in @parmanasystems/execution.

Dev key location

The default dev key path is ./dev-keys/bundle_signing_key{,.pub} relative to the current working directory. The server and CI scripts fall back to environment variables Parmana_PRIVATE_KEY / Parmana_PUBLIC_KEY (base64 DER) if these files are absent.

License

Apache-2.0