qmetrics.net

Units.NET

Strongly typed units and measures library for .NET

Frameworks & PlatformsDesktop/CLI app
Units.NET screenshot

Units.NET adds typed quantities and unit conversions to C# projects via NuGet. It reduces magic constants by binding values to unit enums and supporting parse, format, and arithmetic.

Overview

Units.NET is a .NET library that represents physical quantities as strongly typed structures instead of raw doubles with ambiguous units. Developers construct values with unit-specific factories or enums, convert with properties or helpers, and pass quantity types through APIs to avoid mixing incompatible measures.

Operator overloads allow arithmetic and derived quantities such as speed from length and time. Localization follows thread culture for abbreviations and number formatting, with parse and try-parse helpers for user-facing input. Runtime classes including Quantity, UnitConverter, UnitParser, and related info types support dynamic unit pickers and converters in applications.

Custom units can be registered at runtime for domain-specific measures while reusing parsing and conversion infrastructure. Serialization to JSON, XML, and other formats is documented on the project wiki. Precision is intentionally oriented toward convenience: conversions route through per-quantity base units with documented acceptable error bounds for most units.

The package ships on NuGet for modern .NET and .NET Standard targets, with optional extension packages for number syntax on newer C# versions. Parallel implementations exist for other languages based on the same unit definitions. Sample WPF projects demonstrate dynamic unit converter UIs and binding converters.

Key features

  • Strongly typed quantity structs
  • Large built-in unit catalog
  • Parse and try-parse from strings
  • Culture-aware abbreviations
  • Operator overloads for physics math
  • Runtime quantity and unit metadata
  • Custom unit extension support
  • JSON and XML serialization guides

Use cases

  • Engineering apps with unit-safe math
  • Dynamic unit converter desktop tools
  • APIs accepting localized unit strings
  • Sensor data with mixed measures
  • Avoiding ambiguous unit constants

Tags

Similar software

ECC

Open-source agent engineering toolkit for coding harnesses

ECC adds planning, verification, review, memory, skills, and security scanning to coding agents such as Claude Code, Codex, and Cursor. It installs as plugins, packages, and managed adapters across multiple harnesses.

★ 311.7k⟳ 8 days agoMIT
Frameworks & PlatformsDesktop/CLI app

React

JavaScript library for web and native user interfaces

React helps developers build interfaces from reusable components that manage their own state. Views update declaratively when underlying data changes.

★ 253k⟳ 2 days agoMIT
Frameworks & PlatformsDesktop/CLI app

Flutter

Open-source UI framework for multi-platform apps from one codebase

Flutter is an SDK for building user experiences for mobile, web, and desktop from a single codebase. It uses the Dart language and compiles to native machine code or web targets.

★ 181.5k⟳ todayBSD-3-Clause
Open Source Alternative to:Ionic Enterprise

Bootstrap

Responsive HTML, CSS, and JavaScript front-end toolkit

Bootstrap supplies CSS, JavaScript, and Sass-based styles for building responsive, mobile-first sites. It ships prebuilt grid layouts, UI components, and optional JavaScript plugins.

★ 175.1k⟳ 2 days agoMIT

Langflow

Visual low-code builder for AI agents and workflows

Langflow is a visual builder for AI agents and workflows. Flows can be customized in Python and deployed as an API or as an MCP server, with support for major LLMs and vector databases.

★ 157k⟳ todayMIT
Open Source Alternative to:Relevance AIVoiceflow

LangChain

Framework for agents and LLM-powered applications

LangChain helps developers chain interoperable components and integrations to build agents and LLM-powered applications. It offers a standard interface for models, embeddings, vector stores, and related pieces.

★ 150.1k⟳ 2 days agoMIT