Ross ROSS = Recommend OSS · open-source software intelligence for agents

martinothamar/Mediator

A high performance implementation of Mediator pattern in .NET using source generators. observed · 2026-08-28

github.com/martinothamar/Mediator · C# · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

68/100

  • Activity 73
  • Release rhythm 43
  • 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: 229
  • age_days: 1981
  • days_rel: 164
  • days_push: 164
  • n_releases_24m: 2

Full methodology

Adoption not part of the score

3697 stars · 181 forks observed · 2026-08-28

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

Member repositories

RepositoryRoleHealth v2
martinothamar/Mediatormain68

For agents

markdown · JSON · MCP: product_card(name="martinothamar/Mediator")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem