InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →
Top 23 C# csharp-sourcegenerator Projects
-
-
InfluxDB
InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
-
About a year and a half ago, I was architecting a modular monolith and obsessing over performance. I'd been using MediatR for years, but I wanted something faster. I discovered Mediator by Martin Othamar - a SourceGenerator-based implementation that promised better performance through compile-time code generation.
-
Vogen
A semi-opinionated library which is a source generator and a code analyser. It Source generates Value Objects
-
-
I think people who last looked at C# 10 years ago or haven't adapted to new language features seriously don't know how good C# is these days.
Switch expressions with pattern matching are absolutely killer[0] for its terseness.
Also, it is possible to use OneOf[1] and Dunet[2] to get access to DU
[0] https://timdeschryver.dev/blog/pattern-matching-examples-in-...
[1] https://github.com/mcintyre321/OneOf
[2] https://github.com/domn1995/dunet
-
-
-
Stream
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
-
SmallSharp
Create, edit and run multiple C# top-level programs in the same project by just selecting the startup program from the start button.
- Project mention: Show HN: NeatShift – Organize Windows Files with Symbolic Links | news.ycombinator.com | 2024-12-27
It's a WinForms application. However, it is indeed somewhat user-unfriendly to distribute (untrimmable) WinForms applications in a self-contained form.
It's usually much better to build them as runtime-dependent but single-file binaries.
E.g. 'dotnet publish -p:PublishSingleFile=true --no-self-contained' produces a 5.9 MB binary (but obviously needs a .NET desktop runtime installed, it helpfully offers to do so on launch if it's missing).
I assume modifying the solution to use https://github.com/kant2002/WinFormsComInterop + NativeAOT would result in ~30-40MB binary as it packages a GUI framework effectively. It could also help with just self-contained and getting trimming to work.
There is a bit of learning curve to all sorts of ways you can build an application with .NET but that's what you pay for having flexible choices over more limited options with Java or Go.
-
-
Enum.Source.Generator
A C# source generator to create an enumeration class from an enum type. With this package, you can work on enums very, very fast without using reflection.
-
-
PropertyChanged.SourceGenerator
Powerful INotifyPropertyChanged / INotifyPropertyChanging Source Generator, which generates INPC boilerplate for you as part of your build. Supports features such as automatic and manual dependencies between properties, notifications when specific properties change, and more.
-
DependencyPropertyGenerator
Dependency property, routed event and weak event source generator for WPF/UWP/WinUI/Uno/Avalonia/MAUI platforms.
-
GodotOnReady
A C# Source Generator that adds convenient onready-like features to your C# scripts in Godot Mono (3.x) without any reflection.
-
-
-
JsonByExampleGenerator
Generate classes based on example json files in your project. Uses a C# 9 source generator.
-
-
-
SmartAnnotations
A library for .NET that uses source generators to automatically generate data annotations for your models.
-
WrapperValueObject
A .NET source generator for creating simple value objects wrapping primitive types.
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
C# csharp-sourcegenerator discussion
C# csharp-sourcegenerator related posts
-
I created a new object mapper
-
Primitive obsession
-
Should I use AutoMapper for this?
-
Reflection -> Source Generated
-
Where to convert input to Value Object in Clean Architecture?
-
Is Automapper the most hated library?
-
When using the DTO pattern and rolling your own mappers, is there a shorter way to write the mapping functions?
- A note from our sponsor - InfluxDB www.influxdata.com | 23 Dec 2025
Index
What are some of the best open-source csharp-sourcegenerator projects in C#? This list will help you:
| # | Project | Stars |
|---|---|---|
| 1 | mapperly | 3,820 |
| 2 | Mediator | 3,192 |
| 3 | Vogen | 1,331 |
| 4 | stronginject | 866 |
| 5 | dunet | 822 |
| 6 | LinqGen | 313 |
| 7 | ZeroQL | 313 |
| 8 | SmallSharp | 309 |
| 9 | WinFormsComInterop | 276 |
| 10 | GodotSharp.SourceGenerators | 236 |
| 11 | Enum.Source.Generator | 194 |
| 12 | Immediate.Handlers | 170 |
| 13 | PropertyChanged.SourceGenerator | 159 |
| 14 | DependencyPropertyGenerator | 143 |
| 15 | GodotOnReady | 123 |
| 16 | net_automatic_interface | 109 |
| 17 | SimpleSIMD | 92 |
| 18 | JsonByExampleGenerator | 85 |
| 19 | MapDataReader | 73 |
| 20 | SqlMarshal | 65 |
| 21 | SmartAnnotations | 58 |
| 22 | WrapperValueObject | 52 |
| 23 | BuilderGenerator | 48 |