# kiarashminoo/thunderpropagator.formatserializers architecture

> Architecture diagram of the GitHub repository kiarashminoo/thunderpropagator.formatserializers, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kiarashminoo/thunderpropagator.formatserializers
- Repository: https://github.com/kiarashminoo/thunderpropagator.formatserializers

## Overview

ThunderPropagator.FormatSerializers is a set of pluggable .NET serializers and deserializers for MessagePack, NetJSON, Protobuf, Toon, XML, and YAML. An integrating application registers a format adapter, then calls its string- or byte-based serialization and deserialization methods; string encodings are Base64 for MessagePack, Protobuf, and Toon. The adapters delegate format-specific work to helper APIs. YAML additionally supports configurable serializer settings, custom type converters, and node deserializers. The README documents all six formats; helper call edges follow the adapter excerpts, while deeper helper internals were not sampled.

Main entry points: [`src/ThunderPropagator.FormatSerializers.Yaml/YamlHelper.cs`](https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.Yaml/YamlHelper.cs) (YAML helpers), [`src/ThunderPropagator.FormatSerializers.MessagePack/MessagePackFormatSerializer.cs`](https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.MessagePack/MessagePackFormatSerializer.cs) (MessagePack adapter), [`src/ThunderPropagator.FormatSerializers.Protobuf/ProtobufFormatSerializer.cs`](https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.Protobuf/ProtobufFormatSerializer.cs) (Protobuf adapter), [`src/ThunderPropagator.FormatSerializers.NetJson/NetJsonFormatSerializer.cs`](https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.NetJson/NetJsonFormatSerializer.cs) (NetJSON adapter)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_binary["Binary formats"]
  node_msgpack["MessagePack adapter"]
  node_msgpack_helper["MessagePack helpers"]
  node_protobuf["Protobuf adapter"]
  node_protobuf_helper["Protobuf helpers<br/>[ProtobufHelper.cs]"]
end

subgraph group_text["Text formats"]
  node_netjson["NetJSON adapter"]
  node_netjson_helper["NetJSON helpers<br/>[NetJsonHelper.cs]"]
  node_toon["Toon adapter"]
  node_toon_helper["Toon helpers<br/>[ToonHelper.cs]"]
  node_xml["XML adapter"]
  node_xml_helper["XML helpers<br/>[XmlHelper.cs]"]
end

subgraph group_yaml["YAML extensions"]
  node_yaml["YAML adapter"]
  node_yaml_helper["YAML helpers<br/>[YamlHelper.cs]"]
  node_yaml_settings["YAML settings"]
  node_yaml_converter["Custom converters"]
  node_yaml_converter_attribute["Converter attribute"]
  node_yaml_node_attribute["Node deserializer attribute"]
end

node_application(("Integrating application"))

node_application -.->|"uses adapter"| node_msgpack
node_application -.->|"uses adapter"| node_protobuf
node_application -.->|"uses adapter"| node_netjson
node_application -.->|"uses adapter"| node_toon
node_application -.->|"uses adapter"| node_xml
node_application -.->|"uses adapter"| node_yaml
node_msgpack -->|"delegates encoding"| node_msgpack_helper
node_protobuf -->|"delegates encoding"| node_protobuf_helper
node_netjson -->|"delegates encoding"| node_netjson_helper
node_toon -->|"delegates encoding"| node_toon_helper
node_xml -->|"delegates encoding"| node_xml_helper
node_yaml -->|"delegates encoding"| node_yaml_helper
node_yaml_helper -->|"reads settings"| node_yaml_settings
node_yaml_helper -->|"reads attribute"| node_yaml_converter_attribute
node_yaml_helper -->|"reads attribute"| node_yaml_node_attribute
node_yaml_converter -->|"reads attribute"| node_yaml_converter_attribute

click node_msgpack "https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.MessagePack/MessagePackFormatSerializer.cs"
click node_msgpack_helper "https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.MessagePack/MessagePackHelper.cs"
click node_protobuf "https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.Protobuf/ProtobufFormatSerializer.cs"
click node_protobuf_helper "https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.Protobuf/ProtobufHelper.cs"
click node_netjson "https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.NetJson/NetJsonFormatSerializer.cs"
click node_netjson_helper "https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.NetJson/NetJsonHelper.cs"
click node_toon "https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.Toon/ToonFormatSerializer.cs"
click node_toon_helper "https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.Toon/ToonHelper.cs"
click node_xml "https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.Xml/XmlFormatSerializer.cs"
click node_xml_helper "https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.Xml/XmlHelper.cs"
click node_yaml "https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.Yaml/YamlFormatSerializer.cs"
click node_yaml_helper "https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.Yaml/YamlHelper.cs"
click node_yaml_settings "https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.Yaml/YamlSerializerSettings.cs"
click node_yaml_converter "https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.Yaml/YamlTypeConverter.cs"
click node_yaml_converter_attribute "https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.Yaml/YamlTypeConverterAttribute.cs"
click node_yaml_node_attribute "https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.Yaml/YamlNodeDeserializerAttribute.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_msgpack,node_msgpack_helper,node_protobuf,node_protobuf_helper toneBlue
class node_netjson,node_netjson_helper,node_toon,node_toon_helper,node_xml,node_xml_helper toneAmber
class node_yaml,node_yaml_helper,node_yaml_settings,node_yaml_converter,node_yaml_converter_attribute,node_yaml_node_attribute toneMint
class node_application toneIndigo
```

## Components

### Binary formats

- [MessagePack adapter](https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.MessagePack/MessagePackFormatSerializer.cs): `src/ThunderPropagator.FormatSerializers.MessagePack/MessagePackFormatSerializer.cs`
- [MessagePack helpers](https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.MessagePack/MessagePackHelper.cs): `src/ThunderPropagator.FormatSerializers.MessagePack/MessagePackHelper.cs`
- [Protobuf adapter](https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.Protobuf/ProtobufFormatSerializer.cs): `src/ThunderPropagator.FormatSerializers.Protobuf/ProtobufFormatSerializer.cs`
- [Protobuf helpers](https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.Protobuf/ProtobufHelper.cs): `src/ThunderPropagator.FormatSerializers.Protobuf/ProtobufHelper.cs`

### Text formats

- [NetJSON adapter](https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.NetJson/NetJsonFormatSerializer.cs): `src/ThunderPropagator.FormatSerializers.NetJson/NetJsonFormatSerializer.cs`
- [NetJSON helpers](https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.NetJson/NetJsonHelper.cs): `src/ThunderPropagator.FormatSerializers.NetJson/NetJsonHelper.cs`
- [Toon adapter](https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.Toon/ToonFormatSerializer.cs): `src/ThunderPropagator.FormatSerializers.Toon/ToonFormatSerializer.cs`
- [Toon helpers](https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.Toon/ToonHelper.cs): `src/ThunderPropagator.FormatSerializers.Toon/ToonHelper.cs`
- [XML adapter](https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.Xml/XmlFormatSerializer.cs): `src/ThunderPropagator.FormatSerializers.Xml/XmlFormatSerializer.cs`
- [XML helpers](https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.Xml/XmlHelper.cs): `src/ThunderPropagator.FormatSerializers.Xml/XmlHelper.cs`

### YAML extensions

- [YAML adapter](https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.Yaml/YamlFormatSerializer.cs): `src/ThunderPropagator.FormatSerializers.Yaml/YamlFormatSerializer.cs`
- [YAML helpers](https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.Yaml/YamlHelper.cs): `src/ThunderPropagator.FormatSerializers.Yaml/YamlHelper.cs`
- [YAML settings](https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.Yaml/YamlSerializerSettings.cs): `src/ThunderPropagator.FormatSerializers.Yaml/YamlSerializerSettings.cs`
- [Custom converters](https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.Yaml/YamlTypeConverter.cs): `src/ThunderPropagator.FormatSerializers.Yaml/YamlTypeConverter.cs`
- [Converter attribute](https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.Yaml/YamlTypeConverterAttribute.cs): `src/ThunderPropagator.FormatSerializers.Yaml/YamlTypeConverterAttribute.cs`
- [Node deserializer attribute](https://github.com/kiarashminoo/thunderpropagator.formatserializers/blob/develop/src/ThunderPropagator.FormatSerializers.Yaml/YamlNodeDeserializerAttribute.cs): `src/ThunderPropagator.FormatSerializers.Yaml/YamlNodeDeserializerAttribute.cs`

### Other components

- **Integrating application**

## Connections

- Integrating application → MessagePack adapter: uses adapter
- Integrating application → Protobuf adapter: uses adapter
- Integrating application → NetJSON adapter: uses adapter
- Integrating application → Toon adapter: uses adapter
- Integrating application → XML adapter: uses adapter
- Integrating application → YAML adapter: uses adapter
- MessagePack adapter → MessagePack helpers: delegates encoding (evidence: `src/ThunderPropagator.FormatSerializers.MessagePack/MessagePackFormatSerializer.cs`)
- Protobuf adapter → Protobuf helpers: delegates encoding (evidence: `src/ThunderPropagator.FormatSerializers.Protobuf/ProtobufFormatSerializer.cs`)
- NetJSON adapter → NetJSON helpers: delegates encoding (evidence: `src/ThunderPropagator.FormatSerializers.NetJson/NetJsonFormatSerializer.cs`)
- Toon adapter → Toon helpers: delegates encoding (evidence: `src/ThunderPropagator.FormatSerializers.Toon/ToonFormatSerializer.cs`)
- XML adapter → XML helpers: delegates encoding (evidence: `src/ThunderPropagator.FormatSerializers.Xml/XmlFormatSerializer.cs`)
- YAML adapter → YAML helpers: delegates encoding (evidence: `src/ThunderPropagator.FormatSerializers.Yaml/YamlFormatSerializer.cs`)
- YAML helpers → YAML settings: reads settings (evidence: `src/ThunderPropagator.FormatSerializers.Yaml/YamlHelper.cs`)
- YAML helpers → Converter attribute: reads attribute (evidence: `src/ThunderPropagator.FormatSerializers.Yaml/YamlHelper.cs`)
- YAML helpers → Node deserializer attribute: reads attribute (evidence: `src/ThunderPropagator.FormatSerializers.Yaml/YamlHelper.cs`)
- Custom converters → Converter attribute: reads attribute (evidence: `src/ThunderPropagator.FormatSerializers.Yaml/YamlTypeConverter.cs`)
