Repository navigation
Welcome to AutoNormalize: Consistent Input Canonicalization for .NET (v1.0.0-preview.1) #1
SkyDevLab
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Welcome to AutoNormalize! 🎉
We are excited to introduce AutoNormalize — a lightweight, high-performance, and safe-by-default input normalization library for modern .NET applications (.NET 8 and .NET 9).
The Problem We Solved
Across .NET web APIs and microservices, developers frequently write repetitive, scattered boilerplate to canonicalize incoming user text:
.Trim()).null.public record User(string Name, string Email)) without reflection crashes.When handled manually or through naive global converters, subtle bugs emerge: duplicate database entries, corrupted dictionary hash codes, or mangled passwords and Base64 signatures.
What AutoNormalize Provides
AutoNormalize handles representation canonicalization seamlessly across all layers:
System.Text.JsonDeserialization: Normalizes string tokens before constructor binding via JSON type info contract modifiers, fully respecting immutable positional C# records.builder.Services.AddAutoNormalize().SaveChanges()to canonicalizeAddedandModifiedentity states while skipping unchanged entities.Password,Token,ApiKey,Secret,Signature,Hash,Salt) plus declarative[PreserveWhitespace]and[DoNotNormalize]attributes.Five Packages Now Live on NuGet.org
All packages are available on NuGet:
netstandard2.0,net8.0,net9.0).System.Text.Jsoncontract modifiers.ISaveChangesInterceptordatabase normalization.Quickstart Example
How to Get Involved
We would love your feedback on the public API, edge cases, and performance!
samples/folder.All reactions