martinothamar/Mediator
Some data may be outdated — see provenance labels.
A high performance implementation of Mediator pattern in .NET using source generators. observed · 2026-09-21
Health v2 · maintenance only
74/100
- Activity 92
- Release rhythm 36
- Longevity 100
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: 229
- age_days: 2029
- days_rel: 212
- days_push: 49
- n_releases_24m: 2
Adoption not part of the score
3719 stars · 182 forks observed · 2026-09-21
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A high-performance .NET implementation of the Mediator pattern built with C# source generators, offering a MediatR-like API. It generates DI registration and monomorphized dispatch code at build time, enabling full Native AOT support without reflection.
Use cases
- decouple request handlers from controllers in ASP.NET Core apps
- replace MediatR for better performance and Native AOT support
- implement CQRS-style commands and queries in .NET
- avoid fat constructors with many injected services
- catch missing handler configuration at build time instead of runtime
- reduce cold start time in serverless and edge deployments
When to choose
- you use the Mediator pattern in .NET and want maximum performance
- you need Native AOT compatibility without reflection
- you want compile-time diagnostics for missing handlers
- you want a stable, semver-strict MediatR alternative
When to avoid
- you need MediatR's extensive ecosystem of pipeline behaviors and integrations
- your project does not use .NET or C#
- you rely on runtime-registered or dynamically discovered handlers
- you need notification/multicast publishing features beyond basic request/response
Facets
library · maturity stable
middleware developer-tools plugin-system developer-tools backend web-development dotnet cross-platform mediator-pattern source-generator mediatr-alternative native-aot dependency-injection cqrs in-process-messaging
1 source
- readme: https://github.com/martinothamar/Mediator · fetched 2026-09-21 · dd4e4a29ea0b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| martinothamar/Mediator | main | 74 |
For agents
markdown · JSON · MCP: product_card(name="martinothamar/Mediator")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem