Nucleation is a high-performance Minecraft schematic engine written in Rust β with full support for Rust, WebAssembly/JavaScript, Python, and FFI-based integrations like PHP and C.
Built for performance, portability, and parity across ecosystems.
- β
Multi-format support:
.schematic,.litematic,.nbt, etc. - π§ Memory-safe Rust core with zero-copy deserialization
- π WASM module for browser + Node.js
- π Native Python bindings (
pip install nucleation) - βοΈ C-compatible FFI for PHP, C, Go, etc.
- π Feature parity across all interfaces
- π¦ Binary builds for Linux, macOS, Windows (x86_64 + ARM64)
- π§± Seamless integration with Cubane
cargo add nucleationnpm install nucleationpip install nucleationDownload prebuilt .so / .dylib / .dll from Releases
or build locally using:
./build-ffi.shuse nucleation::UniversalSchematic;
let bytes = std::fs::read("example.litematic")?;
let mut schematic = UniversalSchematic::new("my_schematic");
schematic.load_from_data(&bytes)?;
println!("{:?}", schematic.get_info());π β More in examples/rust.md
import { SchematicParser } from "nucleation";
const bytes = await fetch("example.litematic").then(r => r.arrayBuffer());
const parser = new SchematicParser();
await parser.fromData(new Uint8Array(bytes));
console.log(parser.getDimensions());π β More in examples/wasm.md
from nucleation import Schematic
with open("example.litematic", "rb") as f:
data = f.read()
schem = Schematic("my_schematic")
schem.load_from_bytes(data)
print(schem.get_info())π β More in examples/python.md
#include "nucleation.h"
SchematicHandle* handle = schematic_new("MySchem");
schematic_load_data(handle, data_ptr, data_len);
CSchematicInfo info;
schematic_get_info(handle, &info);
printf("Size: %dx%dx%d\n", info.width, info.height, info.depth);
schematic_free(handle);π β More in examples/ffi.md
# Build the Rust core
cargo build --release
# Build WASM module
./build-wasm.sh
# Build Python bindings locally
maturin develop --features python
# Build FFI libs
./build-ffi.shLicensed under the GNU AGPL-3.0-only.
See LICENSE for full terms.
Made by @Nano112 with β€οΈ