Skip to content

Type-safe binary serialization for TypeScript with bit-level encoding, schema-driven IDE hints, and ultra-compact output for game networking.

License

Notifications You must be signed in to change notification settings

nasselk/BinarySchema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BinarySchema

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

Overview

Coming Soon

Table of contents

Features

Coming Soon

Quick example

Coming Soon

API highlights

Coming Soon

Building / running locally

Requirements: Node.js (v20+ recommended) and npm.

  1. Install dev dependencies (optional, for formatting/type checks):
npm install
  1. Type-check or compile (TypeScript):
npx tsc --project tsconfig.json
  1. Run examples directly with Node (if using ESM and TypeScript is compiled to JS), or run with ts-node / bun if you prefer.

Notes

The inline documentation (JSDoc comments) and portions of this README were partially written with AI assistance.

License

This project is released under the MIT License — see the included LICENSE file for details.

About

Type-safe binary serialization for TypeScript with bit-level encoding, schema-driven IDE hints, and ultra-compact output for game networking.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published