{"id":37057770,"url":"https://github.com/feature23/kernel","last_synced_at":"2026-01-14T06:31:59.098Z","repository":{"id":284825309,"uuid":"905468991","full_name":"feature23/kernel","owner":"feature23","description":null,"archived":false,"fork":false,"pushed_at":"2025-12-01T22:52:18.000Z","size":77,"stargazers_count":1,"open_issues_count":4,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-01-09T10:00:50.112Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/feature23.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"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":"2024-12-18T22:24:34.000Z","updated_at":"2025-12-01T22:42:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"8075f855-682f-4628-a10d-3a1d50f3924e","html_url":"https://github.com/feature23/kernel","commit_stats":null,"previous_names":["feature23/kernel"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/feature23/kernel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feature23%2Fkernel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feature23%2Fkernel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feature23%2Fkernel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feature23%2Fkernel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feature23","download_url":"https://codeload.github.com/feature23/kernel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feature23%2Fkernel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28412211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-14T06:31:58.597Z","updated_at":"2026-01-14T06:31:59.086Z","avatar_url":"https://github.com/feature23.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# feature[23] Shared Kernel\n\n[![build](https://github.com/feature23/kernel/actions/workflows/ci_build.yml/badge.svg)](https://github.com/feature23/kernel/actions/workflows/ci_build.yml)\n\nA library of reusable types for implementing Clean Architecture in .NET and ASP.NET Core applications, based heavily on the work of [Steve Smith](https://github.com/ardalis) in the following open-source projects:\n- [ASP.NET Core Template](https://github.com/ardalis/CleanArchitecture)\n- [Shared Kernel](https://github.com/ardalis/Ardalis.SharedKernel)\n\nFor the core functionality, only the `F23.Kernel` library is needed. This library provides types for events, results, query and command handlers, validation, and messaging. For smoother integration with ASP.NET Core, the `F23.Kernel.AspNetCore` library can be used for easily mapping between core result types and ASP.NET Core `IActionResult` and model state.\n\n\u003e **WARNING:** This library is currently in a pre-release state, and breaking changes may occur before reaching version 1.0.\n\u003e\n---\n\n**What if your day job was contributing to open-source projects and custom AI solutions \u0026mdash; and you got paid for it?**\u003cbr /\u003e\nWe're hiring remote engineers to contribute to cutting-edge AI and custom software projects. 100% remote, 100% real impact. https://www.feature23.com/careers\n\n\n## NuGet Installation\n### Core Package\n```powershell\ndotnet add package F23.Kernel\n```\n\n### ASP.NET Core Helper Package\n```powershell\ndotnet add package F23.Kernel.AspNetCore\n```\n\n## Examples\n\n### Query Handler\n```csharp\nclass GetWeatherForecastQueryResult\n{\n    public required IReadOnlyList\u003cWeatherForecast\u003e Forecast { get; init; }\n}\n\nclass GetWeatherForecastQuery : IQuery\u003cGetWeatherForecastQueryResult\u003e\n{\n    public int DaysIntoTheFuture { get; init; } = 5;\n}\n\nrecord WeatherForecast(DateOnly Date, int TemperatureC, string? Summary)\n{\n    public int TemperatureF =\u003e 32 + (int)(TemperatureC / 0.5556);\n}\n\nclass GetWeatherForecastQueryHandler(IValidator\u003cGetWeatherForecastQuery\u003e validator, IWeatherForecastRepository repository)\n    : IQueryHandler\u003cGetWeatherForecastQuery, GetWeatherForecastQueryResult\u003e\n{\n    public async Task\u003cResult\u003cGetWeatherForecastQueryResult\u003e\u003e Handle(GetWeatherForecastQuery query, CancellationToken cancellationToken = default)\n    {\n        if (await validator.Validate(query, cancellationToken) is ValidationFailedResult failed)\n        {\n            return Result\u003cGetWeatherForecastQueryResult\u003e.ValidationFailed(failed.Errors);\n        }\n\n        var forecast = await repository.GetForecast(query.DaysIntoTheFuture, cancellationToken);\n\n        var result = new GetWeatherForecastQueryResult\n        {\n            Forecast = forecast\n        };\n\n        return Result\u003cGetWeatherForecastQueryResult\u003e.Success(result);\n    }\n}\n```\n\n#### Program.cs\n```csharp\nbuilder.Services.RegisterQueryHandler\u003cGetWeatherForecastQuery, GetWeatherForecastQueryResult, GetWeatherForecastQueryHandler\u003e();\n\n// Other code omitted for brevity\n\napp.MapGet(\"/weatherforecast\", async (IQueryHandler\u003cGetWeatherForecastQuery, GetWeatherForecastQueryResult\u003e queryHandler) =\u003e\n    {\n        var result = await queryHandler.Handle(new GetWeatherForecastQuery());\n\n        return result.ToMinimalApiResult();\n    })\n    .WithName(\"GetWeatherForecast\")\n    .WithOpenApi();\n```\n\n### Command Handler\n\u003e TODO\n\n### Event Sourcing\n\u003e TODO\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeature23%2Fkernel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeature23%2Fkernel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeature23%2Fkernel/lists"}