Skip to content

About

A deterministic, transport-neutral serialization library

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Chronicler

Chronicler Icon

Deterministic state transfer and simulation timing for .NET runtimes that own their objects and their schemas.

build-and-test Coverage NuGet License API Discord

Chronicler helps .NET games and simulations save, restore, and verify state. You define what goes into a snapshot in C# and load it back into the objects your application already owns.

  • Keep one schema in code. Use it for JSON, MemoryPack, and deterministic hashes that help spot replay divergence.
  • Restore an existing world. Populate owned objects in place and reconnect references through stable IDs.
  • Keep simulation time exact. Advance a recordable clock and resume it from a snapshot.

Get started

dotnet add package Chronicler.Core
using System;
using Chronicler;
using Chronicler.Serialization;

PlayerSnapshot player = new() { Health = 72 };
string snapshot = JsonRecordSerializer.Serialize(player);
player.Health = 10;
JsonRecordSerializer.Populate(player, snapshot);
Console.WriteLine(player.Health); // 72

sealed class PlayerSnapshot : IRecordable
{
    public int Health = 100;

    public void RecordData(IChronicler chronicler)
        => RecordValues.Look(chronicler, ref Health, "health", 100);
}

Restore a snapshot with nested state · Browse the guides · API reference

Packages

The packages target netstandard2.1 and net10.0. Choose from the package family for JSON and MemoryPack, a JSON-only Lean build, standalone diagnostics, or MemoryPack compatibility attributes for Lean assemblies.

Migration guide · Get help · Contributing · MIT License

About

A deterministic, transport-neutral serialization library

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Sponsor this project

Contributors

Languages