Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Game Engine Development
  3. HxBit

HxBit

Haxe1.5.0

A Haxe library for fast binary serialization and network synchronization with versioning and RPC support.

GitHubGitHub
164 stars34 forks0 contributors

What is HxBit?

HxBit is a Haxe library for binary serialization and network synchronization, designed to efficiently serialize object graphs and replicate state across networked clients and servers. It solves the need for fast, type-safe data exchange in applications like multiplayer games or distributed systems, offering features like versioning and remote procedure calls.

Target Audience

Haxe developers building networked applications, such as multiplayer games, real-time collaborative tools, or any system requiring efficient object state synchronization over a network.

Value Proposition

Developers choose HxBit for its macro-generated serialization code that outperforms Haxe's standard runtime serialization, combined with built-in networking features like automatic change tracking and RPCs, reducing boilerplate and ensuring robust state management.

Overview

Haxe Binary serialization and network synchronization library

Use Cases

Best For

  • Building multiplayer games with synchronized object states
  • Creating networked applications requiring fast binary serialization
  • Implementing remote procedure calls (RPC) in Haxe projects
  • Handling schema evolution with versioned data formats
  • Synchronizing complex data structures across clients and servers
  • Developing real-time collaborative tools with Haxe

Not Ideal For

  • Projects requiring human-readable serialization formats like JSON for debugging or interoperability
  • Applications with only basic data persistence needs where Haxe's built-in haxe.Serializer suffices
  • Teams that avoid macro-based code generation due to build complexity or tooling issues
  • Real-time systems where incremental updates for mutable structures (e.g., arrays) are critical to minimize bandwidth

Pros & Cons

Pros

Fast Binary Serialization

Uses compile-time macros to generate strictly typed code, outperforming Haxe's runtime serialization for speed, as noted in the comparison with haxe.Serializer.

Integrated Network Synchronization

Provides automatic change tracking and delta updates for object states, enabling efficient multiplayer or collaborative apps without manual sync code, via enableReplication and host.sync().

Robust Versioning Support

Handles schema evolution by detecting added or removed fields during unserialization, ensuring backward compatibility with saved data or network states using beginSave/endSave.

Flexible RPC System

Supports annotated remote procedure calls with modes like all, server, and owner, including return values and asynchronous callbacks, simplifying networked logic.

Cons

Increased Code Size

Macro-generated serialization code adds to the final binary size, which can be a drawback for projects with strict memory or download constraints, as mentioned in the comparison section.

Proxy Inefficiency

Changes to mutable structures like arrays or maps trigger sending of the entire content over the network, not incremental updates, potentially wasting bandwidth in data-heavy apps.

Setup Complexity

Networking requires implementing a custom NetworkHost (e.g., SocketHost for Heaps) and managing object lifecycles, adding initial development overhead compared to drop-in solutions.

Limited Type Support

Unsupported types require custom implementation via customSerialize and customUnserialize methods, adding boilerplate and potential for errors.

Frequently Asked Questions

Quick Stats

Stars164
Forks34
Contributors0
Open Issues9
Last commit18 days ago
CreatedSince 2016

Tags

#multiplayer#data-serialization#haxe#binary-serialization#game-development#rpc#versioning#macro-based

Built With

H
Haxe

Included in

Game Engine Development1.3k
Auto-fetched 19 hours ago

Related Projects

LDtkLDtk

Modern, lightweight and efficient 2D level editor

Stars4,134
Forks257
Last commit12 days ago
HeapsHeaps

Heaps : Haxe Game Framework

Stars3,494
Forks372
Last commit1 day ago
Armory (Kha)Armory (Kha)

3D Engine with Blender Integration

Stars3,308
Forks350
Last commit8 days ago
HaxeFlixel (OpenFL)HaxeFlixel (OpenFL)

Free, cross-platform 2D game engine powered by Haxe and OpenFL

Stars2,194
Forks512
Last commit1 day ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub