@wp2508/protodef
v1.19.3
Published
A simple yet powerful way to define binary protocols
Downloads
3,645
Readme
ProtoDef
Fork (wupengabc): adds Minecraft 26.3 (protocol 777) support. Published to npm as
@wp2508/protodef— install withnpm install @wp2508/protodefandrequire('@wp2508/protodef'). Upstream: ProtoDef-io/node-protodef.
This is a node.js module to simplify defining, reading and writing binary blobs, whether they be internet protocols or files.
Installing
npm install @wp2508/protodefUsage
See example
Documentation
See the language independent ProtoDef specification.
- api.md documents the exposed functions and classes
- compiler.md documents the ProtoDef Compiler
- datatypes.md documents the default datatypes provided by Protodef.
- newDatatypes.md explains how to create new datatypes for protodef
- history.md is the releases history
Projects Using ProtoDef
- minecraft-protocol defines a protocol.json by minecraft version and use ProtoDef to serialize and parse packets
- the protocol.json files are stored in minecraft-data
- and they can be visualized automatically in this doc
- prismarine-nbt defined a nbt.json to parse and serialize the NBT format
- mineflayer uses ProtoDef to parse plugin messages
- minecraft-protocol-forge parses and serialize forge plugin messages
- node-raknet describe the raknet protocol in a protocol.json and uses ProtoDef to read it
- minecraft-classic-protocol defines the classic minecraft protocol with ProtoDef
- pocket-minecraft-protocol defines the minecraft pocket edition protocol
- diablo2-protocol Diablo 2 network protocol
- dofus-protocol Network protocol for dofus : create client and servers for dofus 1.30
