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

@obrioxia/client-decryptor

v1.0.0

Published

Decrypt Obrioxia export bundles locally using your RSA private key. No Python required. Zero dependencies.

Readme

@obrioxia/client-decryptor

Decrypt Obrioxia export bundles locally using your RSA private key. No Python required. Zero external dependencies. Node 18+.

Install

npm i @obrioxia/client-decryptor

CLI

After install, the obrioxia-decrypt command is available:

obrioxia-decrypt --bundle export.json --private-key private.pem

Or run directly without installing:

npx @obrioxia/client-decryptor --bundle export.json --private-key private.pem

Exit codes:

| Code | Meaning | |------|---------| | 0 | At least one field decrypted successfully | | 2 | Bundle processed, but no fields were decryptable | | 1 | Fatal error (bad args, file not found) |

Programmatic Usage

import { readFileSync } from 'node:fs';
import { decryptExportBundle } from '@obrioxia/client-decryptor';

const result = await decryptExportBundle({
  privateKeyPem: readFileSync('private.pem', 'utf-8'),
  bundleJson: JSON.parse(readFileSync('export.json', 'utf-8')),
});

console.log(result.decrypted_fields);     // { name: "Alice", email: "alice@..." }
console.log(result.undecryptable_fields); // [] or [{ field, reason }]
console.log(result.bundle_fingerprint);   // SHA-256 hex
console.log(result.metadata);            // { decision_id, key_epoch, ... }
console.log(result.verification);        // { is_shredded, ... }

How to Get an Export Bundle

curl -H "x-api-key: YOUR_KEY" \
  https://api.obrioxia.com/api/incidents/DECISION_ID/export \
  -o export.json

Output Fields

| Field | Type | Description | |-------|------|-------------| | decrypted_fields | object | Map of field name → decrypted plaintext value | | undecryptable_fields | array | List of { field, reason, detail? } for fields that could not be decrypted | | bundle_fingerprint | string | SHA-256 hex digest of the canonical bundle | | metadata | object | decision_id, key_epoch, timestamp_utc | | verification | object | is_shredded, signature status if present |

undecryptable_fields Reasons

| Reason | Meaning | |--------|---------| | missing_wrapped_dek | The bundle has no _wrapped_dek — record may have been crypto-shredded | | unwrap_failed | RSA key unwrap failed — wrong private key or corrupted DEK | | shredded_or_missing | The ciphertext field is null or empty | | decrypt_failed | AES-GCM decryption failed — AAD mismatch or corrupted ciphertext |

Crypto Protocol

  • DEK wrapping: RSA-OAEP with SHA-256
  • Field encryption: AES-256-GCM per field
  • Field blob format: base64(nonce_12B || ciphertext || GCM_tag_16B)
  • AAD: decision_id::field_name (UTF-8)
  • The server never sees your private key

Tests

cd client_sdk/node
node --test