{"repo":"janispritzkau/mcproto","free":true,"listed":false,"github":"https://github.com/janispritzkau/mcproto","clone":"git clone https://github.com/janispritzkau/mcproto.git","description":"A lightweight implementation of the Minecraft protocol. Supports most newer versions of Minecraft","language":"TypeScript","stars":28,"topics":["minecraft","protocol","typescript","nodejs","server","client","proxy","network"],"license":null,"category":"networking-infra","readme_excerpt":"Minecraft Protocol mcproto is a small and lightweight implementation of the Minecraft protocol. It aims to be a low-level library that provides the foundations for building clients, servers, proxies and higher level abstractions. This implementation only decodes packets that are related to the connection state or login procedure. That makes it mostly version-independent since those packets usually don't change from version to version. Features - Compression - Encryption for client and server - Utility classes for writing / reading packets. - Asynchronous nextPacket method for reading the next packet (with id) . - VarLong and 64 bit data types using BigInts Examples Server list ping Client For online servers, you must specify an accessToken and profile ID: More examples can be found in the repository's examples folder. Events and errors mcproto uses it's own tiny event emitter class and provides different methods to handle packet, socket and error events. Since a lot of the API is promise based, errors that happen during the lifetime a promise will result in the promise being rejected. Errors that happen outside of async method calls should be handled with a error event handler on the connection instance. The server class does allow to return a Promise in the client handler and it will forward errors to the server's event emitter. For details about packets and general information about the protocol, https://wiki.vg/Protocol is a great reference. Related projects - mc-chat-form","default_branch":null,"files":null,"tree":[],"storefront":"/r/janispritzkau","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/janispritzkau/mcproto/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}