Skip to main content

Deno Minecraft

Package link

A collection of modules that can be used to build Minecraft servers, clients, utilities and other tools. This library focuses solely on Minecraft Java Edition.

The emphasis is on usability, ease of use and on being well tested to improve reliability and correctness.

Modules

crypto/

Cryptographic primitives used for protocol encryption, signing, and signature verification.

auth/

Helper functions for authentication with Microsoft accounts and retrieving access tokens.

The module includes an OAuth client preconfigured with the client ID and OAuth endpoints of the official Minecraft launcher, and helper functions for obtaining the Minecraft access token via Xbox Live services.

chat/

Utilities for working with chat components. Work in progress.

io/

Helper classes and functions for writing and reading binary data used for network or file IO. These include the Writer and Reader classes.

nbt/

An implementation of Minecraft’s named binary tag (NBT) format. Including:

  • An encoder / decoder
  • A parser for the SNBT, short for stringified NBT
  • Ergonomic types for tags

network/

Primitives for building clients and servers. This includes a Connection class which handles the framing of packets, and can be used in combination with a Protocol definition for the automatic encoding/decoding of packets.

Only handshake and status protocols are included out-of-the-box.