Products for .NET Built for Precision
A suite of general-purpose, production-ready libraries for modern .NET, with a strong emphasis on correctness, composability and value semantics. They fit as cleanly into a small utility as into a large system, without imposing an architecture or locking you into a framework.
OnixLabs.Core
The primitive types that the BCL left out
Everyday code rests on quiet assumptions: that a value is there, that an operation succeeded, that a string holds what it should. When those assumptions live only in someone's head, bugs slip through the gaps.
Core gives them a place in the code itself. Small, dependable types make absence, failure and intent explicit, so the compiler and the next developer can see what you meant, and a rule written once can be reused anywhere.
OnixLabs.Numerics
Advanced number types for when precision matters
The built-in number types are fine until they aren't. Values outgrow their range, precision quietly runs out, and even whether 1.20 equals 1.2 depends on what you're doing.
Numerics extends .NET's own generic math with wider and more precise numbers, so your code reads the same however demanding the calculation, and you decide what equality means.
OnixLabs.Security
Security and cryptography you can reason about
Security code fails quietly. A key used for the wrong job, a value compared the wrong way or a secret left readable in memory all look like working code, until an attacker finds the vulnerability it left behind.
The security packages give keys, signatures, hashes, secrets and tokens types of their own, so it's always clear what you're holding and what you can do with it, and the safe choice is the easy one.
OnixLabs.ElementFramework
Graph databases the Entity Framework way
Graph databases are a natural fit for connected data, but each speaks its own query language, and working with one often means writing queries by hand and tying your code to a single database.
Element Framework lets you model your domain in plain C# and work with it the way Entity Framework works with relational data, through one model that runs on several graph databases and an in-memory store for tests.
OnixLabs.DependencyInjection
Cleaner registration for the container you already use
As an application grows, so does the code that wires it together: long, repetitive registrations, with decisions like a service's lifetime hard-coded into them.
DependencyInjection trims that setup down without replacing the container you already use, and lets configuration make the decisions that code shouldn't.