riok/mapperly
A .NET source generator for generating object mappings. No runtime reflection. observed · 2026-08-28
Health v2 · maintenance only
82/100
- Activity 98
- Release rhythm 50
- Longevity 100
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: 44.0
- age_days: 1661
- days_rel: 254
- days_push: 16
- n_releases_24m: 7
Adoption not part of the score
4153 stars · 227 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Mapperly is a .NET source generator that automatically implements object-to-object mapping methods declared as partial methods, generating readable mapping code at build time. It uses no runtime reflection, making generated mappings fast, trimming-safe, and AOT-friendly.
Use cases
- generate object mapping code in .NET without runtime reflection
- map entities to DTOs in a layered application
- replace hand-written boilerplate mapping code in C#
- get compile-time warnings for unmapped properties
- create AOT and trimming-safe mappers for .NET
- map between enums and nested objects automatically
- project queryable objects for optimized ORM queries
When to choose
- you want fast, readable, debuggable mapping code generated at build time
- your app uses trimming or Native AOT and reflection-based mappers fail
- you want compile-time diagnostics for unmapped or ignored members
- you want zero runtime dependencies for mapping
When to avoid
- you need runtime-configurable or dynamic mappings decided at execution time
- you're not on .NET 5+ / C# 9+ with Roslyn 4.0+
- you prefer convention-based runtime mappers like AutoMapper with runtime configuration
Facets
library · maturity active
serialization build-tool developer-tools developer-tools backend web-development apis dotnet cross-platform source-generator roslyn object-mapping dto-mapping aot-friendly trimming-safe csharp no-reflection
7 sources
- readme: https://github.com/riok/mapperly · fetched 2026-08-28 · 99c71ed75b37
- homepage: https://mapperly.riok.app · fetched 2026-08-29 · a57450083bfa
- site_page: https://mapperly.riok.app/docs/intro · fetched 2026-08-29 · 5aebe45d0367
- site_page: https://mapperly.riok.app/docs/category/api · fetched 2026-08-29 · 08409167e209
- site_page: https://mapperly.riok.app/docs/contributing · fetched 2026-08-29 · da19bc1fbff8
- site_page: https://mapperly.riok.app/docs/getting-started/installation · fetched 2026-08-29 · 6af426f45b25
- site_page: https://mapperly.riok.app/docs/category/usage-and-configuration · fetched 2026-08-29 · 01c30e2c264c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| riok/mapperly | main | 82 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem