BinarySchema is a TypeScript type-safe binary serialization library using declarative schemas. It delivers full IDE autocompletion, bit-level encoding for minimal output sizes, and support for arrays and various types—perfect for game networking and real-time data transmission.
⚠️ Warning: Pre-release Status
This library is not yet published to npm. It aims to become an npm package in the future, but for now:
- No versioning: You'll need to manually check the repository for updates and copy the source files
- TypeScript source only: The library is distributed as TypeScript files, so it's not directly suitable for JavaScript environments without a transpiler/build step
- Manual integration: You'll need to copy the
src/files into your project or reference them directly
Coming Soon
Coming Soon
Coming Soon
Coming Soon
Requirements: Node.js (v20+ recommended) and npm.
- Install dev dependencies (optional, for formatting/type checks):
npm install- Type-check or compile (TypeScript):
npx tsc --project tsconfig.json- Run examples directly with Node (if using ESM and TypeScript is compiled to JS), or run with ts-node / bun if you prefer.
The inline documentation (JSDoc comments) and portions of this README were partially written with AI assistance.
This project is released under the MIT License — see the included LICENSE file for details.