
mapperly
A .NET source generator for generating object mappings. No runtime reflection.
The Lens
By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.
Updated Sep 2026
Mapperly writes your .NET object mapping code at compile time. Moving data from a database entity to an API response object means a pile of tedious property assignments, and AutoMapper handled that for years using runtime reflection. Mapperly does the same job as a Roslyn source generator: declare a partial class with a Mapper attribute and the method signatures, and the implementation lands in your build. Apache 2.0, free, on NuGet.
The wins are speed and debuggability. No reflection at runtime means mapping costs the same as hand-written assignments, and the generated code is plain C# you can step through and read in a diff. Mistakes become compile errors instead of production exceptions. AutoMapper's newer versions moved to commercial licensing, which sent a lot of .NET teams looking for exactly this.
One package reference. Nothing to host, nothing to configure at runtime, no ops burden at any team size.
The catch is that compile-time generation costs you runtime flexibility. Mapping shapes you only learn from data at request time is not what this is for, and complex custom conversions take more attribute wiring than the equivalent AutoMapper profile. You trade flexibility for a build that fails loudly instead of a request that fails quietly.
Free vs Self-Hosted vs Paid
fully freeFree tier: All of it. Apache 2.0 on NuGet with no paid edition and no gated attributes. Every mapping feature, analyzer, and diagnostic is in the free package.
Self-hosted: Not applicable. Mapperly is a build-time NuGet package, so it runs inside your existing compile step. There is no runtime dependency shipped to production, which also means no extra assembly to patch when a CVE lands.
Paid: No tiers. The maintainers at riok offer optional GitHub Sponsors for priority support, and sell separate consulting for enterprise support, architecture review, and custom development through direct contact. That is services revenue, not a locked feature.
Free and complete. You would only pay for a human, never for a feature.
What to do by team size
- Solo
- free
- Small team
- free
- Medium team
- free
- Large team
- free; sponsor if you need priority support
Get tools like this every Wednesday
One featured tool, three on the radar. No fluff.
A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores
Trust Signals
License: Apache License 2.0
Use freely. Patent grant included.
Commercial use: ✓ Yes
About
- Owner
- riok (Organization)
- Stars
- 4,160
Also by riok
Explore Further
More tools in the directory
notesnook
A fully open source & end-to-end encrypted note taking alternative to Evernote.
14.5k ★quicktype
Generate types and converters from JSON, Schema, and GraphQL
13.9k ★agent-framework
A framework for building, orchestrating and deploying AI agents and multi-agent workflows with support for Python and .NET.
13.3k ★