MapStruct
An annotation processor for generating type-safe bean mappers observed · 2026-10-21
Health v2 · maintenance only
68/100
- Activity 100
- Release rhythm 8
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5258
- days_rel: 710
- days_push: 5
- n_releases_24m: 1
Adoption not part of the score
7698 stars · 1059 forks observed · 2026-10-21
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
MapStruct is a Java annotation processor that generates type-safe, high-performance bean mapping code at compile time, supporting beans, records, and complex object hierarchies. Generated mappers use plain method invocations instead of reflection, producing self-contained code with no runtime dependencies.
Use cases
- map jpa entities to dtos in java
- generate bean mapper code without reflection
- convert between java records and pojos
- avoid manual getter/setter mapping code
- compile-time type-safe object mapping for android
- map between different object models in layered architecture
When to choose
- you want fast mapping with no runtime overhead or reflection
- you need compile-time errors for incomplete or incorrect mappings
- you want debuggable, hand-editable generated code
- you target Android or other environments where runtime dependencies are costly
When to avoid
- you need dynamic runtime mapping of arbitrary objects
- your mappings change frequently at runtime based on configuration
- you're not on the JVM
Facets
library · maturity stable
serialization developer-tools build-tool developer-tools backend web-development jvm bean-mapping annotation-processor code-generation dto-mapping compile-time no-reflection java-records lombok-compatible android
5 sources
- readme: https://github.com/mapstruct/mapstruct · fetched 2026-10-21 · ff8254d5b57a
- homepage: https://mapstruct.org/ · fetched 2026-08-29 · 152d952019e5
- site_page: https://mapstruct.org/documentation/installation · fetched 2026-08-29 · e7f140311263
- site_page: https://mapstruct.org/documentation/reference-guide · fetched 2026-08-29 · 1c01cf0af42d
- site_page: https://mapstruct.org/faq · fetched 2026-08-29 · d9db83a7953b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mapstruct/mapstruct | main | 68 |
| mapstruct/mapstruct-examples | examples | 75 |
| mapstruct/mapstruct-idea | plugin | 70 |
For agents
markdown · JSON · MCP: product_card(name="mapstruct/mapstruct")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem