Clean Architecture
Structured in layers (Domain, Application, Infrastructure, API) for maximum separation of concerns and testability.
Modular .NET foundation and optional packages for APIs and services.
Shared utilities, extensions, and guard clauses used across all packages.
FoundationLogging, audit, metrics and tracing abstractions, with an optional OpenTelemetry integration.
OperationsDDD 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: GrydBaseController, middlewares, and DI extensions.
Presentation LayerAuthentication, authorization, MFA, federation and tenant-aware access contracts.
SecurityAudit records and tenant-scoped query APIs with permission checks and sensitive data controls.
ObservabilityGeneric CRUD operations with automatic validation, filtering, pagination, and soft delete support.
CrudSynchronous generation, schedules, file-backed storage, download URLs and webhook delivery.
ReportsBackground processing and recurring schedules through the configured Hangfire storage.
JobsIn-app, email and push notification workflows with provider-specific integrations.
NotificationsFile metadata and lifecycle workflows with storage providers, optional scanning and retention.
FilesFrontend contract migration (V1): /frontend/v1-http-contract-migration
Frontend social login (federation): /frontend/federation-social-login
Frontend scope model migration (ADR 0011): /frontend/scope-redesign-migration
Install 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
dotnet add package Gryd.Observability
dotnet add package Gryd.Observability.OpenTelemetry
# Modules
dotnet add package GrydAuth
dotnet add package GrydAudit
dotnet add package GrydCrud
dotnet add package GrydReports
dotnet add package GrydJobs
dotnet add package GrydNotifications
dotnet add package GrydFilesFor a compiled setup, start from one of the maintained templates. Their generated source is linked from the template catalog; the template smoke flow packs version-substituted packages, generates and builds nine targets, and exercises bounded runtime hosts. Read the capability catalog before selecting optional modules.
| Feature | Gryd.IO | Manual Implementation |
|---|---|---|
| Setup Time | Reduced boilerplate | Manual wiring |
| 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 | Existing framework tests | Write application-specific tests |