🧬 Nucleation
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.
✨ Features
- ✅ 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
📦 Installation
🔧 Rust
🌐 JavaScript / TypeScript (WASM)
🐍 Python
🧩 C / PHP / FFI
Download prebuilt .so / .dylib / .dll from Releases
or build locally using:
🚀 Quick Examples
Rust
use UniversalSchematic;
let bytes = read?;
let mut schematic = new;
schematic.load_from_data?;
println!;
JavaScript (WASM)
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());
Python
=
=
📖 → More in examples/python.md
FFI (PHP/C)
SchematicHandle* handle = ;
;
CSchematicInfo info;
;
;
;
🔧 Development
# Build the Rust core
# Build WASM module
# Build Python bindings locally
# Build FFI libs
📚 Submodules & Bindings
Rust
JavaScript/TypeScript
Python
FFI (C/PHP)
⚖️ License
Licensed under the GNU AGPL-3.0-only.
See LICENSE for full terms.
Made by @Nano112 with ❤️