# axuno/SmartFormat

A lightweight text templating library written in C# which can be a drop-in replacement for string.Format

Repository: https://github.com/axuno/SmartFormat
Canonical: https://ross.abutalabs.com/products/smartformat
Language: C#
License: NOASSERTION
License Family: other
Topics: string-format, string-composition, smartformat, netstandard, netframework, formatter, pluralization, localization
Last push: 2026-08-01T08:26:56+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 35, longevity 100
- inputs: {"age_days": 5806, "days_push": 32, "days_rel": 354, "gap_med": 63.0, "n_releases_24m": 5}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1255, forks 103 (observed 2026-08-28T04:04:08.907948+00:00)

## What it is
SmartFormat is a lightweight C# text templating library that serves as a drop-in replacement for string.Format. It supports named placeholders, lists, localization, pluralization, and extensible custom formatting at runtime.

## Use cases
- replace string.Format with named placeholders
- format strings with pluralization rules
- localize templated text messages
- format lists of data into strings
- build high-performance string composition in .NET
- extend string formatting with custom formatters

## When to choose
- you need more powerful string formatting than string.Format offers
- you want pluralization and localization in templates
- you need low-memory, high-performance runtime formatting
- you want a drop-in string.Format replacement in .NET

## When to avoid
- you need full HTML/view templating like Razor
- your project is not on .NET Framework 4.6.2+ or .NET 6/8
- you only need simple string interpolation already available in C#

## Facets
- artifact type: library
- maturity: stable
- function: templating, internationalization, serialization
- domain: developer-tools, web-development
- platform: dotnet, cross-platform
- tags: string-format, pluralization, drop-in-replacement, csharp, nuget, localization

## Member repositories
- axuno/SmartFormat (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:08.907948+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:07:18.958299+00:00, confidence not recorded.
  - readme: https://github.com/axuno/SmartFormat (fetched 2026-08-28T04:04:08.907948+00:00, sha d67fc301da5e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
