Empowering developers with modular components for modern application development, centered around Domain-Driven Design principles.
The bITdevKit provides modular building blocks for modern .NET applications. It is centered around
clean architecture, Domain-Driven Design, modular vertical slices and reusable infrastructure for
real-world application concerns such as requests, messaging, queueing, storage, scheduling and
presentation.
This repository contains the full source code, supporting docs and several example applications in
./examples that show how the framework can be composed in practice. The components are published as
NuGet packages.
For the latest updates and release notes, please refer to the CHANGELOG.
The documentation site is available at bridgingit-gmbh.github.io/bITdevKit.
The best entry point into the current documentation set is the Documentation and Introduction to DDD in bITdevKit.
Common Extensions
Common Utilities
Common Serialization
Common Options Builders
Common Mapping
Common Caching
Common Observability Tracing
Metrics
Application Caching: Advanced collection caching, bounded source coalescing, and complete in-memory, EF, and native filesystem providers. Use Common Caching for basic cache access and Key/Value Storage for application-owned state.
Domain
Domain Events
Event Sourcing
Domain Repositories
- Includes the preview Domain-owned entity bulk-insert capability, explicit decorators, and transaction/outbox guidance.
Domain Specifications
ActiveEntity
Domain Policies
Rules
Results
Application Commands and Queries
Application Events
DataPorter
Requester and Notifier
Messaging
Queueing
Broadcasting
Notifications
Modules
Pipelines
Filtering
Extensions
Presentation Host
Presentation Configuration
Presentation Logging
Presentation Correlation IDs
Presentation Endpoints
DevKit CLI
DevKit MCP
Console Commands
CORS Configuration
Exception Handling
AppState
StartupTasks
Jobs
JobScheduling (legacy Quartz-backed feature)
DocumentStorage - typed documents with concurrency, integrity, transforms, expiration/retention, and managed provider resources
FileStorage
Storage Monitoring
Log Entries
- Xunit
- EnsureThat
- Mapster
- FluentValidation
- FluentAssertions
- Humanizer
- Microsoft.Extensions.Resilience (Polly)
- Scrutor
- Serilog
- Quartz
- Shouldly
- Testcontainer
- EntityFramework
- Azure Storage
- Azure ServiceBus
- Azure CosmosDb
- RabbitMQ
The bITDevKit includes a dedicated benchmark project using BenchmarkDotNet to measure the performance of core components such as the Requester (CQRS/MediatR alternative).
How to run benchmarks:
dotnet run -c Release --project benchmarks/Common.Benchmarks/Common.Benchmarks.csproj- This will execute all benchmarks and generate detailed reports in the
BenchmarkDotNet.Artifacts/results/directory (HTML, Markdown, CSV). - The default benchmark covers the baseline request/response pipeline. You can extend the benchmarks to cover additional scenarios and compare different configurations.
Why benchmarks?
- Ensure high performance and low allocations for core infrastructure.
- Detect regressions and compare with other libraries (e.g., MediatR).
- Guide optimization and architectural decisions.
For more details, see the Common.Benchmarks project in the benchmarks/ folder.
Builds, tests and releases run on GitHub Actions. Details for each pipeline are in the workflows README.
| Workflow | Runs | Purpose |
|---|---|---|
| CI | every push | calculates the version with MinVer, builds, runs the unit tests, and on main and releases/dotnet9 can pack and push the NuGet packages |
| Pages | push to main |
builds and publishes the documentation site, see GitHub Pages |
| CodeQL | push and pull requests to main, daily |
code scanning |
Dependency updates are configured in dependabot.yml.
Recurring, repetitive repository chores are handled by agentic workflows, an approach GitHub Next calls
Continuous AI: AI automation for collaboration, next to
CI/CD and not a replacement for it. The workflows are written in Markdown, compiled with the
GitHub Agentic Workflows CLI (gh aw compile) into regular Actions
workflows, and run Copilot in a sandbox.
Agentic workflows and their maintenance jobs run only on non-github.com hosts. On github.com, their jobs are skipped. CI and documentation publishing keep their existing behavior.
| Workflow | Runs | Result |
|---|---|---|
| Weekly Repo Status | Mondays | status report issue for maintainers |
| Weekly Package Update | Mondays | draft PR that applies the update-packages skill, only when build and unit tests are green |
| CI Fault Analysis | failed CI on main or releases/* |
issue with the likely root cause |
| Continuous Docs | Wednesdays | draft PR with fixes that keep docs/ and the mkdocs site in line with the code |
| Continuous Test Improvement | Tuesdays and Fridays | draft PR with a few new unit tests for one under-covered class |
| Issue Triage | new issue | type and area labels, completeness check, next step |
| Issue Plan | label ai-plan |
draft [plan] PR with an implementation plan in plan/, revised on request |
| Issue Implementation | label ai-implement on the plan PR |
implementation pushed to the same PR, only when build and unit tests are green |
| Issue Review | after an implementation, or label ai-review |
comment-only review of the PR against its plan, the architecture rules and code quality |
The four issue workflows form one pipeline with two human gates: a maintainer applies ai-plan to an issue
after triage, reviews the plan in the draft PR, and applies ai-implement to sign it off. The implementation
is then pushed and reviewed against the plan, and if the review finds blocking issues it iterates again, at most
three times on its own. Everything stays in one draft PR that a person reviews and merges. See
Getting started for the one-time setup and the step by step flow.
Guardrails:
- Agents run read-only. Issues and pull requests are created through safe outputs, and pull requests are drafts that a human reviews and merges.
- Each run is capped in AI credits and time. Usage is billed to the organization Copilot plan, see cost management and check spend with
gh aw logs. - The Markdown file is the source. Edit it, run
gh aw compile, then runpwsh -File .github/aw/Set-AgenticWorkflowHostGuards.ps1. Commit the generated workflows with the sources. See the regeneration instructions.
Further reading: Automate repository tasks with GitHub Agentic Workflows.
The repository includes a MkDocs-based GitHub Pages site with:
- a landing page under
docs/site/ - curated technical docs synced from
./docs
Public site: https://bridgingit-gmbh.github.io/bITdevKit/
docs/site/- the site-specific source pages such as the landing page, getting started pages, templates page, styling, and helper scripts
docs/- the framework documentation source that is selectively imported into the public site
.github/pages/- the generated static MkDocs output
The sync step currently imports these files from ./docs into the public site:
INDEX.mdintroduction-ddd-guide.mdcommon-*.mdfeatures-*.mdtesting-*.md
The following are intentionally excluded from GitHub Pages:
docs/adr/docs/presentations/docs/specs/src/**
For a new Markdown page from ./docs to appear in GitHub Pages:
- Add or update the Markdown file under
./docs. - Make sure its filename matches one of the currently imported patterns above.
- If it should appear in navigation, add it to mkdocs.yml under the appropriate section.
- Regenerate the site locally or push to
mainso GitHub Actions publishes it.
MkDocs is run through Docker. You do not need a local Python or MkDocs installation; you only need Docker Desktop or another Docker engine.
Preview the full site locally:
pwsh -File ./docs/site/scripts/serve-pages.ps1The preview script synchronizes the public docs into docs/site/reference/, then starts the squidfunk/mkdocs-material:9 container and serves the site at http://localhost:8000.
Build the full static site locally:
pwsh -File ./docs/site/scripts/build-pages.ps1That build command performs these steps:
- Synchronize the selected public docs from
./docsintodocs/site/reference/ - Build the MkDocs site in Docker with
squidfunk/mkdocs-material:9 - Write the generated static site to
./.github/pages/
For troubleshooting, the build script is equivalent to:
pwsh -File ./docs/site/scripts/sync-docs.ps1
docker run --rm -v "${PWD}:/docs" squidfunk/mkdocs-material:9 build --cleanSuccessful output should include Documentation built and generate ./.github/pages/index.html. Docker may print informational warnings from Material for MkDocs; link warnings should be treated as documentation issues and fixed before publishing.
The Pages workflow is defined in pages.yml.
On each push to main, it:
- checks out the repository
- runs
./docs/site/scripts/build-pages.ps1 - verifies that
./.github/pages/index.htmlwas generated - publishes the generated site to the
gh-pagesbranch
Typical documentation workflow:
- Edit or add Markdown under
./docs - If needed, update mkdocs.yml so the page is reachable in navigation
- Run
pwsh -File ./docs/site/scripts/serve-pages.ps1to preview the result - Run
pwsh -File ./docs/site/scripts/build-pages.ps1to generate the final static output - Commit and push to
mainto publish via GitHub Actions
Simply create a pull request with your ideas or contact us. Please refer to the Contribution Guide for more information.
To keep history clear and searchable, contributions should use semantic commit messages based on the Conventional Commits specification.
Format:
<type>[optional scope]: <description>
Examples:
feat(modules): add startup task registrationfix(jobs): prevent duplicate scheduling on startupdocs(readme): clarify contribution workflow
Policy:
- Use the Conventional Commits format for all repository contributions
- Keep the description in imperative mood and under 72 characters
- Prefer one logical change per commit
- Review
git diff --stagedbefore committing, orgit diffif nothing is staged - Check
git status --porcelainto confirm the exact files included - Never commit secrets or credentials
This project is licensed under the MIT License - see the LICENSE file for details.
