ResultKit is a lightweight, strongly-typed result abstraction for .NET projects. It enables safe and explicit handling of operation outcomes—success, failure, validation errors, and exceptions—while improving your API and service design. ResultKit provides a unified way to represent operation results, eliminating ambiguous return codes and ad-hoc error handling.
Install via NuGet:
dotnet add package ResultKitsrc/
└── ResultKit # Core result implementation (library source)
samples/
└── ResultKit.SampleApi # Example ASP.NET Core Web API usageResultKit was created to enforce clear, consistent outcomes across your application:
- 🔒 Type-Safety for All Result Flows: No more sentinel values or exception-based control flow—return structured Result objects for both success and failure.
- 🔁 Cleaner APIs, Predictable Errors: Service and API methods return a single, explicit result type, making intent and error handling obvious.
- 🧩 Frontend-Friendly: Easily create unified, predictable HTTP responses for API clients and frontend apps.
- 🧪 Seamless Integration: Supports ASP.NET Core with helpers for direct conversion to HTTP responses.
See src/ResultKit/README.md for usage, API details, and integration examples.
Contributions and suggestions are welcome!
MIT © Ataberk Kaya
