Skip to content

Modular and lightweight Result pattern for .NET — strongly-typed, extensible, and API-ready. Includes functional helpers, error and validation contracts, and first-class ASP.NET Core integration for consistent, frontend-friendly responses.

License

Notifications You must be signed in to change notification settings

taberkkaya/ResultKit

Repository files navigation

ResultKit logo

ResultKit

A Modular & Extensible Result Pattern Library for .NET

✨ Overview

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.


📦 Installation

Install via NuGet:

dotnet add package ResultKit

📁 Folder Structure

src/
└── ResultKit             # Core result implementation (library source)
samples/
└── ResultKit.SampleApi   # Example ASP.NET Core Web API usage

💡 Motivation

ResultKit 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.

📎 Documentation:

See src/ResultKit/README.md for usage, API details, and integration examples.

🤝 Contributing

Contributions and suggestions are welcome!

📜 License

MIT © Ataberk Kaya

About

Modular and lightweight Result pattern for .NET — strongly-typed, extensible, and API-ready. Includes functional helpers, error and validation contracts, and first-class ASP.NET Core integration for consistent, frontend-friendly responses.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages