Huml.Net

A full-featured HUML v0.1/v0.2 parser, serialiser, and deserialiser for .NET — with a System.Text.Json-style API and zero runtime dependencies.

dotnet add package Huml.Net
using Huml.Net;

var config = HumlSerializer.Deserialize<ServerConfig>("""
    %HUML v0.2.0
    Host: "localhost"
    Port: 8080
    """);

Where to next

Why Huml.Net

  • Familiar API — if you know JsonSerializer, you know HumlSerializer.
  • Spec-compliant — validated against the shared huml-lang/tests fixture suite for HUML v0.1 and v0.2.
  • No dependencies — nothing pulled into your app's dependency graph.
  • Multi-targetnetstandard2.1, .NET 8, .NET 9, .NET 10.
  • AOT/trim-aware — annotated for trimming, with a source-generator seam for reflection-free metadata.