@blackevin/protocol
v0.1.0
Published
The Blackevin wire format: opcodes and the frame codec.
Readme
@blackevin/protocol
The Blackevin wire format: opcodes and the frame codec.
Shared by the node and by @blackevin/client, so both ends encode and decode
identically. Zero dependencies and no Node built-ins — it has to bundle for a
browser.
import { encode, decode, Opcode } from "@blackevin/protocol";
const frame = decode(raw);
if (frame.op === Opcode.Message) { /* … */ }The codec is a compatibility surface: a deployed client and a deployed node can
be different versions of it at the same time. Adding an opcode is safe; changing
what an existing one means is not. See CLAUDE.md.
