@manabrew/protocol
v2.0.0
Published
TypeScript types for the Manabrew wire protocol — the engine↔client message contract for the Manabrew Magic: The Gathering client.
Readme
@manabrew/protocol
TypeScript types for the Manabrew wire protocol — the engine↔client message contract used by the Manabrew Magic: The Gathering client.
The types are generated from the Rust source of truth
(manabrew-protocol) and published
in lockstep with it, so both sides of the wire always agree.
- Protocol reference: https://docs.manabrew.app/protocol/
- Repository: https://github.com/witchesofthehill/manabrew
Install
npm install @manabrew/protocolUsage
import type { Prompt, PromptInput, PromptOutput } from "@manabrew/protocol";
import { VERSION, PROTOCOL_VERSION } from "@manabrew/protocol";VERSION is the package version; PROTOCOL_VERSION is the integer wire version
a client must match to interoperate.
