Building AI-powered applications in .NET shouldn’t require weeks of setup, glue code, and configuration nightmares. That’s exactly why Hazina exists – a comprehensive .NET framework that takes care of the infrastructure so you can focus on building features.
What is Hazina?
Hazina is an open-source .NET framework designed for developers who want to integrate AI capabilities into their applications without reinventing the wheel. Whether you need a simple chatbot, a document search engine with RAG (Retrieval-Augmented Generation), or a fully autonomous agent system – Hazina provides the building blocks.
Core Philosophy
The framework follows three guiding principles:
- Convention over configuration – sensible defaults that work out of the box
- Modular architecture – use only what you need
- Production-ready – built-in multi-tenancy, observability, and security
What You’ll Learn in This Series
Over the next 19 posts, we’ll walk through every major feature of Hazina:
- Getting started in 5 minutes
- Making your first AI call
- Building zero-boilerplate APIs
- Implementing document search with RAG
- Creating dynamic plugins at runtime
- Multi-tenant applications
- Agent orchestration
- And much more
Who Is This For?
If you’re a .NET developer (C#) who wants to add AI to your applications – or if you’re building a SaaS product and need a solid foundation – this series is for you. We assume basic knowledge of .NET 9 and C#, but each post is self-contained and includes working code examples.
Architecture at a Glance
Hazina is organized into layers:
Hazina/
â"œâ"€â"€ Core/ # AI engine, configuration, base abstractions
â"‚ â"œâ"€â"€ AI/ # FluentAPI, orchestration, providers
â"‚ â"œâ"€â"€ API/ # Generic CRUD framework
â"‚ â - â"€â"€ Plugins/ # Dynamic runtime plugin system
â"œâ"€â"€ Tools/ # Services, social providers, document store
â"œâ"€â"€ Production/ # Monitoring, health checks, observability
â - â"€â"€ Apps/ # Demo applications and showcases
Each layer builds on the previous one, but you can pick and choose. Need just the AI calls? Use Hazina.AI.FluentAPI. Need a full API with multi-tenancy? Add Hazina.API.Generic. It’s your call.
In the next post, we’ll get Hazina running on your machine in under 5 minutes. No really – 5 minutes.
Frequently Asked Questions
Hazina is an open-source .NET framework designed to help developers integrate AI capabilities into their applications easily. It eliminates the complexities of setup and configuration, allowing you to focus on building features instead of managing infrastructure.
Hazina is ideal for .NET developers, especially those familiar with C#, who want to incorporate AI functionalities into their applications. It’s also suitable for building SaaS products that require a robust foundation for AI integration.
Hazina is built on three core principles: Convention over configuration, ensuring sensible defaults; a modular architecture that allows you to use only what you need; and production readiness with features like multi-tenancy, observability, and security.
You can get Hazina running on your machine in under 5 minutes. The upcoming blog series will guide you through every major feature, making it easy to start building your first AI-powered application immediately.