{"id":50556990,"url":"https://github.com/marvindrude/beskar.codegeneration","last_synced_at":"2026-06-04T08:01:22.296Z","repository":{"id":348562060,"uuid":"1194060797","full_name":"MarvinDrude/Beskar.CodeGeneration","owner":"MarvinDrude","description":"Lightweight, performance-oriented C# library designed to simplify the creation of Source Generators. Also home of some generators that I use for my private projects. No AI slop invovled.","archived":false,"fork":false,"pushed_at":"2026-04-25T12:12:25.000Z","size":377,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-25T14:15:06.972Z","etag":null,"topics":["csharp","developer-tools","dotnet","high-performance","source-generator"],"latest_commit_sha":null,"homepage":"https://marvindrude.com","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MarvinDrude.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-27T21:56:40.000Z","updated_at":"2026-04-25T12:42:03.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/MarvinDrude/Beskar.CodeGeneration","commit_stats":null,"previous_names":["marvindrude/beskar.codegeneration"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MarvinDrude/Beskar.CodeGeneration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarvinDrude%2FBeskar.CodeGeneration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarvinDrude%2FBeskar.CodeGeneration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarvinDrude%2FBeskar.CodeGeneration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarvinDrude%2FBeskar.CodeGeneration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarvinDrude","download_url":"https://codeload.github.com/MarvinDrude/Beskar.CodeGeneration/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarvinDrude%2FBeskar.CodeGeneration/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33895175,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-04T02:00:06.755Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","developer-tools","dotnet","high-performance","source-generator"],"created_at":"2026-06-04T08:01:21.281Z","updated_at":"2026-06-04T08:01:22.288Z","avatar_url":"https://github.com/MarvinDrude.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Beskar.CodeGeneration\n\nMoved to: https://github.com/MarvinDrude/Beskar.Memory\n\nBeskar.CodeGeneration is a suite of tools designed to streamline the development of\n**C# Source Generators** for **.NET 10** and beyond. Leveraging the latest C# language\nfeatures, it provides a robust infrastructure for symbol analysis, metadata extraction,\nand type-safe code generation.\n\n\u003e **Note:** I use these mainly just for me and my private projects, but feel free to use them as well.\n\u003e Since I already build my generators with .NET 10, it will only work if your IDE supports it.\n\n## Introduction\n\nDeveloping Source Generators often involves repetitive tasks like manual attribute parsing,\nnavigating complex symbol trees, and managing diagnostic reporting. This project simplifies\nthat process by:\n\n* **Archetype-Based Modeling**: Decouples heavy Roslyn `ISymbol` objects into lightweight, comparable \"Archetypes\"\n  that are safe for use within the incremental generator pipeline.\n* **Fluent Metadata Access**: Provides high-level extension methods to easily extract\n  values from attributes, handle positional/named arguments, and resolve type information.\n* **Modern .NET Standards**: Built from the ground up for .NET 10, utilizing features\n  like `INumber\u003cT\u003e`, advanced spans, and the latest C# preview features.\n\n## Project Modules\n\n| Package                                      | NuGet                                                                                                                                                      | Documentation | Description                                                                                                       |\n|:---------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------| :--- |:------------------------------------------------------------------------------------------------------------------|\n| **Beskar.CodeGeneration.Extensions**         | [![NuGet](https://img.shields.io/nuget/v/Beskar.CodeGeneration.Extensions)](https://www.nuget.org/packages/Beskar.CodeGeneration.Extensions)               | [README](./Beskar.CodeGeneration.Extensions/README.md) | Core utilities, symbol transformers, and attribute helpers.                                                       |\n| **Beskar.CodeGeneration.TypeIdGenerator**    | [![NuGet](https://img.shields.io/nuget/v/Beskar.CodeGeneration.TypeIdGenerator)](https://www.nuget.org/packages/Beskar.CodeGeneration.TypeIdGenerator)     | [README](./Bundles/Beskar.CodeGeneration.TypeIdGenerator.Bundle/README.md) | A ready-to-use generator for creating type-safe identifiers (e.g., `UserId`).                                     |\n| **Beskar.CodeGeneration.LanguageGenerator**  | [![NuGet](https://img.shields.io/nuget/v/Beskar.CodeGeneration.LanguageGenerator)](https://www.nuget.org/packages/Beskar.CodeGeneration.LanguageGenerator) | [README](./Bundles/Beskar.CodeGeneration.LanguageGenerator.Bundle/README.md) | A ready-to-use generator that transforms simple enumerations into a robust, type-safe translation infrastructure. |\n| **Beskar.CodeGeneration.ObserveGenerator**   | [![NuGet](https://img.shields.io/nuget/v/Beskar.CodeGeneration.ObserveGenerator)](https://www.nuget.org/packages/Beskar.CodeGeneration.ObserveGenerator)  | [README](./Bundles/Beskar.CodeGeneration.ObserveGenerator.Bundle/README.md) | A ready-to-use generator that generates meters and activity sources - also simplifies registration.               |\n| **Beskar.CodeGeneration.PacketGenerator**    | [![NuGet](https://img.shields.io/nuget/v/Beskar.CodeGeneration.PacketGenerator)](https://www.nuget.org/packages/Beskar.CodeGeneration.PacketGenerator)  | [README](./Bundles/Beskar.CodeGeneration.PacketGenerator.Bundle/README.md) | A ready-to-use generator that generates fast packet routing with support of any serialization.                    |\n| **Beskar.CodeGeneration.ProcessorGenerator** | [![NuGet](https://img.shields.io/nuget/v/Beskar.CodeGeneration.ProcessorGenerator)](https://www.nuget.org/packages/Beskar.CodeGeneration.ProcessorGenerator)  | [README](./Bundles/Beskar.CodeGeneration.ProcessorGenerator.Bundle/README.md) | A ready-to-use generator that generates efficient, type-safe processing pipelines.                                |\n| **Beskar.CodeGeneration.EnumGenerator**      | [![NuGet](https://img.shields.io/nuget/v/Beskar.CodeGeneration.EnumGenerator)](https://www.nuget.org/packages/Beskar.CodeGeneration.EnumGenerator)  | [README](./Bundles/Beskar.CodeGeneration.EnumGenerator.Bundle/README.md) | A ready-to-use generator that generates nice-to-have performance extensions to enums.                                |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarvindrude%2Fbeskar.codegeneration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarvindrude%2Fbeskar.codegeneration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarvindrude%2Fbeskar.codegeneration/lists"}