Peanut Butter AND JAM
Peanut Butter AND JAM

Friendliest JAM implementation

A welcoming, Gray Paper–aligned stack: type-safe consensus, PVM, and tooling in TypeScript. Run on Node, Bun, or in the browser—one codebase, shared with your apps, built to get you shipping.

Why PBNJ

Gray Paper–aligned building blocks that are easy to integrate and verify.

Safrole

Battle-tested consensus: ticket generation, sealing, and epoch markers with fallback sealing so your chain keeps going when it matters.

PVM

Gray Paper–compliant PVM that runs the same everywhere—host functions, RAM, and refinement invocations with no spec surprises.

JAMNP-S

Modern networking over QUIC and TLS 1.3: block announcement, work packages, ticket distribution, and audits without the protocol headaches.

Codec & types

One type system and serialization story: blob and program decoding, extrinsic hashing, and shared types that stay in sync with the spec.

Erasure & assurance

Data availability you can verify: erasure coding and assurance tooling that match the Gray Paper so you can trust the data.

RPC & tooling

Production-ready JIP-2 RPC, WebSocket subscriptions, and node services for validators, guarantors, and builders—integrate and go.

We follow the Gray Paper as the authoritative spec and prove it with official jamtestvectors—so you get compliance without the guesswork.