# LuckyPennySoftware/MediatR

Simple, unambitious mediator implementation in .NET

Repository: https://github.com/LuckyPennySoftware/MediatR
Canonical: https://ross.abutalabs.com/products/mediatr
Language: C#
License: NOASSERTION
License Family: other
Topics: hacktoberfest
Last push: 2026-07-02T13:51:06+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 90, release rhythm 67, longevity 100
- inputs: {"age_days": 4566, "days_push": 62, "days_rel": 62, "gap_med": 91, "n_releases_24m": 8}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 11858, forks 2185 (observed 2026-08-28T04:10:50.301355+00:00)

## What it is
MediatR is a simple, dependency-free mediator implementation for .NET that supports in-process messaging with request/response, commands, queries, notifications, and events. It integrates with Microsoft.Extensions.DependencyInjection and supports pipeline behaviors, pre/post processors, and stream requests.

## Use cases
- decouple controllers from business logic in ASP.NET Core apps
- implement CQRS-style command and query separation
- publish in-process notifications and events to multiple handlers
- add cross-cutting pipeline behaviors like validation and logging
- share request contracts across assemblies for API or gRPC projects

## When to choose
- building .NET applications that want a lightweight mediator pattern without external dependencies
- you need CQRS-style separation of commands, queries, and notifications
- you want pipeline behaviors for cross-cutting concerns
- you need DI integration with Microsoft.Extensions.DependencyInjection

## When to avoid
- you need distributed or cross-process messaging (use a message broker instead)
- your team prefers explicit direct dependencies between components
- you want a full-featured enterprise service bus

## Facets
- artifact type: library
- maturity: stable
- function: middleware, message-queue, web-framework
- domain: backend, developer-tools
- platform: dotnet, cross-platform
- tags: mediator-pattern, in-process-messaging, cqrs, request-response, notifications, pipeline-behaviors, dependency-injection, dotnet

## Member repositories
- LuckyPennySoftware/MediatR (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:50.301355+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:15:15.707619+00:00, confidence not recorded.
  - readme: https://github.com/LuckyPennySoftware/MediatR (fetched 2026-08-28T04:10:50.301355+00:00, sha 62d4c4561da8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
