Tim-Maes/Facet
Generate DTOs, mappings, constructors and LINQ projections from your domain models. observed · 2026-08-28
Health v2 · maintenance only
78/100
- Activity 99
- Release rhythm 75
- Longevity 35
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0
- age_days: 498
- days_rel: 85
- days_push: 8
- n_releases_24m: 172
Adoption not part of the score
1204 stars · 52 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Facet is a C# source generator that eliminates DTO boilerplate by generating DTO types, constructors, LINQ projections, and reverse mappings from domain models at compile time. It supports classes, records, structs, nested mapping, custom mapping configurations, and preserves XML docs and validation attributes with zero runtime overhead.
Use cases
- generate DTOs from domain models without boilerplate
- create LINQ projections for efficient database queries
- map domain models to API response models
- exclude sensitive fields from public API models
- generate reverse mappings from DTOs back to domain models
- create admin and public views of the same entity
When to choose
- you write lots of manual DTO and mapping code in C#/.NET
- you want compile-time generation with zero runtime reflection overhead
- you need multiple projections of the same domain model for different audiences
- you use EF Core and want efficient query projections
When to avoid
- you are not on the .NET/C# ecosystem
- you prefer runtime mapping libraries like AutoMapper with dynamic configuration
- your project does not use source generators or Roslyn
Facets
library · maturity active
serialization developer-tools backend web-development developer-tools dotnet cross-platform source-generator dto object-mapping linq-projection compile-time csharp boilerplate-elimination
1 source
- readme: https://github.com/Tim-Maes/Facet · fetched 2026-08-28 · 5046e2f0d346
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Tim-Maes/Facet | main | 78 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem