mirror of
https://github.com/luxfi/zap.git
synced 2026-10-30 15:04:16 +00:00
The browser half of one protocol. A TypeScript port of the ZAP wire codec (zap.go + builder.go) byte-identical to Go — proven by golden vectors emitted from golden_test.go (12/12 encode+decode) — plus a zapweb WebSocket client mirroring client.go (opcode stamp, [reqID][flag] correlation), validated by a live TS-client to Go-echoserver round-trip (cmd/echoserver). procedureOpcode matches Go FNV-1a. Zero runtime deps: browser-global WebSocket, Node native type-stripping for tests.