Backend (.NET)
Granit is a modular .NET 10 framework providing production-ready building blocks
for enterprise applications. Each module follows the same layered anatomy
(abstractions, EF Core, endpoints, providers) and wires into the
dependency injection system via [DependsOn].
Your Application bundles · endpoints · handlers · pages
AI Granit.AI.*
Business Features
API & Http
Infrastructure
Security & Compliance GDPR · ISO 27001
ASP.NET Core 10 Minimal API · DI · Middleware · EF Core
Module groups
Section titled “Module groups”| Group | Modules | Purpose |
|---|---|---|
| Core | Module System, Utilities, Analyzers | Foundation types, module lifecycle, Roslyn analyzers |
| Data | Persistence, Caching, Storage, Querying, Reference Data | EF Core interceptors, HybridCache, multi-provider storage |
| Security & Compliance | Authentication, Authorization, Security, Identity, Privacy, Vault & Encryption | JWT Bearer, RBAC, GDPR, key management |
| API | API & Web, Webhooks | Versioning, OpenAPI, idempotency, HMAC-signed webhooks |
| Infrastructure | Wolverine, Notifications, Background Jobs, Localization, Settings, Multi-Tenancy, Features | Message bus, 6-channel notifications, i18n (17 cultures), time zones, SaaS enablement |
| Observability | Observability & Diagnostics | Serilog, OpenTelemetry, health checks |
| Business Features | Workflow, Data Exchange, Templating, Timeline | FSM engine, import/export, PDF generation, activity stream |
Granit.AI adds provider-agnostic LLM capabilities (OpenAI, Azure, Anthropic, Ollama) via Microsoft.Extensions.AI. See the AI section for setup, NLQ, semantic search, document extraction, and more.
Architecture
Section titled “Architecture”- HTTP Conventions — status codes, Problem Details, DTO naming
- Dependency Graph — package relationships
- Tech Stack — third-party libraries and licenses
- Design Patterns — 43 patterns documented
- ADRs — architecture decision records
Reference
Section titled “Reference”- Configuration Keys — all appsettings sections and Options classes
- Cloud Providers — packages by cloud provider (AWS, Azure, Google Cloud)
- Provider Compatibility — database, cache, storage support matrix