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

@synoi/verify

v0.2.0

Published

Offline Ed25519 verifier for SynOI Decision Receipts. CLI + programmatic API. No network call required if you have the receipt JSON + the gateway's public key.

Downloads

47

Readme

@synoi/verify

Offline Ed25519 verifier for SynOI Decision Receipts.

Anyone with a receipt ID — your auditor, your counterparty, your regulator — can cryptographically prove the decision was real, was made by the gateway they think it was, and hasn't been tampered with. Without contacting SynOI.

npx @synoi/verify rcpt_abc_123
  Gateway     : https://gateway.synoi.systems
  Receipt ID  : rcpt_abc_123
  Algorithm   : Ed25519
  Signer key  : key_2026_05_18
  Canonical   : {"action_class":"B","decision":"allow","oid_hex":"...","receipt_id":"rcpt_abc_123","recorded_at":1747584000000,"risk_level":"low","tenant_id":"founder"}

  ✓ VERIFIED — signature is valid; receipt has not been tampered with.

Exit code is 0 on a verified signature, 1 if invalid, 2 on usage / network errors.

Verify a remote gateway

npx @synoi/verify rcpt_abc_123 --gateway https://gateway.synoi.systems

Programmatic use

import { fetchAndVerify } from '@synoi/verify'

const result = await fetchAndVerify('rcpt_abc_123', 'https://gateway.synoi.systems')
if (!result.valid) {
  throw new Error(`Receipt rejected: ${result.reason}`)
}
console.log(result.canonical_payload)

For fully offline use (no fetch), import the pure verifier:

import { verifyReceiptSignature } from '@synoi/verify'

const result = verifyReceiptSignature(receiptJson, signatureHex, publicKeyPem)

What's being verified

The signature covers exactly seven canonical fields, alphabetically sorted, JSON-stringified with default separators:

action_class, decision, oid_hex, receipt_id, recorded_at, risk_level, tenant_id

Any other fields on the receipt (latency_ms, intent_id, action_type, etc.) are operational metadata and not part of the signature. Tampering with them won't fail verification — by design.

Algorithm: Ed25519 · Signature encoding: 128 hex chars (64 raw bytes) · Public key: PEM SPKI, available at GET <gateway>/verify/pubkey.

Why offline matters

The promise of the SynOI Decision Receipt is "verifiable by anyone, without SynOI infrastructure." This package is the proof artifact: once you have the receipt + the gateway's public key (which the gateway publishes openly), no further contact with SynOI or the gateway is needed. You can verify a receipt from five years ago on an airplane.

If the gateway disappears tomorrow, every receipt that has ever been issued is still cryptographically verifiable — as long as someone preserved the public key.