Clean Architecture
Structured in layers (Domain, Application, Infrastructure, API) for maximum separation of concerns and testability.
Enterprise-grade framework following Clean Architecture, DDD, and CQRS patterns. Modular, testable, and production-ready.
Shared utilities, extensions, and guard clauses used across all packages.
FoundationDDD building blocks: Entity, AggregateRoot, ValueObject, and Domain Events.
Domain LayerCQRS pattern, Result types, validation behaviors, and service abstractions.
Application LayerRepository, Unit of Work, caching, and event dispatching abstractions.
Infrastructure LayerASP.NET Core components: BaseController, middlewares, and DI extensions.
Presentation LayerComplete authentication and authorization framework with JWT, OAuth2, multi-tenancy, and RBAC support.
SecurityGeneric CRUD operations with automatic validation, filtering, pagination, and soft delete support.
CrudInstall the packages you need:
# Core packages
dotnet add package Gryd.Core
dotnet add package Gryd.Domain
dotnet add package Gryd.Application
dotnet add package Gryd.Infrastructure
dotnet add package Gryd.API
# Modules
dotnet add package GrydAuthConfigure in your Program.cs:
using Gryd.API.Extensions;
var builder = WebApplication.CreateBuilder(args);
// Add Gryd.IO services
builder.Services.AddGrydCore(typeof(Program).Assembly);
var app = builder.Build();
// Use Gryd.IO middleware
app.UseGryd();
app.Run();| Feature | Gryd.IO | Manual Implementation |
|---|---|---|
| Setup Time | Minutes | Days/Weeks |
| Architecture | Clean Architecture built-in | You design it |
| Patterns | CQRS, Repository, Result, etc. | Implement yourself |
| Validation | FluentValidation pipeline | Manual integration |
| Multi-tenancy | First-class support | Complex to add |
| Testing | 100+ tests included | Write from scratch |