# SteveDunn/Vogen

A semi-opinionated library which is a source generator and a code analyser. It Source generates Value Objects

Repository: https://github.com/SteveDunn/Vogen
Canonical: https://ross.abutalabs.com/products/vogen
Language: C#
License: Apache-2.0
License Family: permissive
Topics: csharp-sourcegenerator, hacktoberfest, patterns, contributions-welcome, ddd, ddd-patterns, open-source
Last push: 2026-08-24T21:25:11+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 94, longevity 100
- inputs: {"age_days": 1738, "days_push": 9, "days_rel": 43, "gap_med": 21.0, "n_releases_24m": 21}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1492, forks 93 (observed 2026-08-28T04:04:52.572812+00:00)

## What it is
Vogen is a C# source generator and analyzer that converts primitives into strongly-typed value objects representing domain concepts. It emits compilation errors to prevent creation of invalid value objects, supporting domain-driven design patterns.

## Use cases
- generate value objects from primitives in C#
- cure primitive obsession in .NET domain models
- create strongly-typed IDs like CustomerId in C#
- enforce validation at compile time for domain concepts
- implement DDD value objects in .NET
- prevent mixing up int parameters in C# code

## When to choose
- You're building .NET/C# applications with domain-driven design
- You want compile-time safety against primitive obsession
- You need strongly-typed wrappers around ints, decimals, strings with minimal boilerplate

## When to avoid
- You're not on .NET/C#
- You prefer runtime validation over compile-time generation
- Your project doesn't use Roslyn source generators or has build constraints against them

## Facets
- artifact type: library
- maturity: active
- function: type-system, developer-tools, code-review
- domain: developer-tools, programming-languages, backend
- platform: dotnet, cross-platform
- tags: source-generator, value-objects, ddd, csharp, primitive-obsession, analyzer

## Member repositories
- SteveDunn/Vogen (main) score 97

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:52.572812+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-30T04:33:28.751819+00:00, confidence not recorded.
  - readme: https://github.com/SteveDunn/Vogen (fetched 2026-08-28T04:04:52.572812+00:00, sha 4989512adbf3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
