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

@memora-hq/memora-protocol

v0.1.0-rc.2

Published

Memora protocol primitives: canonical types, canonicalization, crypto, signing envelopes, Merkle batch proofs, and TEE attestation verification (public tier)

Readme

@memora-hq/memora-protocol

The signing and verification primitives behind Memora — canonical record types, deterministic JSON canonicalization, the signing digests that get ecrecover'd on-chain, Merkle batch proofs, and TEE attestation quote handling.

This package answers one question precisely: given a signed Memora record, how do you check it's real? It contains no network calls, no storage, no service logic — just the schema and the math. Everything needed to produce or verify a record lives here; everything needed to operate the hosted service does not.

Most people never install this directly — it arrives automatically as a dependency of @memora-hq/memora-core (the SDK) or memora-local (the desktop app). Install it yourself only if you're writing your own verifier or tooling directly against the schema:

npm install @memora-hq/memora-protocol

What's in here

| Module | Purpose | |---|---| | types.ts | Canonical record shapes (MemoryCommit, MemoryPayload, and related types) | | canonicalize.ts | Deterministic JSON serialization — the same data always hashes the same way | | crypto.ts | Hashing and signing primitives | | envelope.ts | Computes the operator and agent signing digests — the exact bytes signed and ecrecover'd | | merkle.ts | Builds and verifies Merkle proofs for batched records | | tee.ts | TEE attestation quote handling (verification of quote content — anchoring the quote hash on-chain is a separate, consuming concern) | | phaseTimer.ts | Small timing utility used by verifiers |

Who uses this

  • memora-sdk — the client library and CLI, which sign and verify records using these primitives.
  • memora-local — the desktop app and evidence engine, which produces .memora bundles built on this schema.
  • Memora Cloud (hosted, closed-source) — the indexer, key broker, and console consume the exact same package, from the exact same published version, as everything above. There is no private fork of this code.

The spec

EVIDENCE_BUNDLE_SPEC.md is the normative format description for the .memora evidence bundle this package's types and digests underpin. If you're writing a verifier in another language, start there — the conformance vectors in vectors/ are the executable version of the same guarantee: signed records, their expected digests, and expected verification outcomes, covering every signing domain (memora:event:v1, memora:agent:v1, memora:agent:tee:v1) and the Merkle leaf format.

Versioning

Strict semver, with one rule stricter than it looks: any change to a signing digest domain, wire format, or Merkle proof structure is a major version, even if the TypeScript type change looks additive — because it requires a new domain separator string (memora:event:v1memora:event:v2) so old and new digests never collide. Records signed under an old domain stay verifiable forever; this package only ever grows.

Every tagged release is gated on the conformance vectors passing.

License

Apache-2.0