Skip to content
KsiProgrammingPublic

About

Open-source, production-grade core banking implementing BIAN v14 with DDD and hexagonal architecture in .NET

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

92 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RimBank

ci codeql OpenSSF Scorecard License: MIT .NET 10 BIAN v14 PRs welcome

RimBank is an open-source, production-grade core banking platform built in .NET that implements the BIAN Service Landscape v14 using Domain-Driven Design and hexagonal architecture.

The code is meant to read like the business it serves. Every BIAN service domain becomes a bounded context, and its names, flows and capabilities come from BIAN and banking, not from frameworks. Every capability is available both as a BIAN HTTP API and as an MCP tool for AI agents, over the same core and with the same business rules.

Status: early development. Stage 0 (Foundations) and Stage 1 (Party Reference Data Directory) are done; Stage 2 (Product Directory) is next. See the roadmap. RimBank is not a licensed bank and provides no regulatory certification.

Highlights

  • BIAN v14, faithfully: service domains, Control Records, Behavior Qualifiers and operations mapped one-to-one, checked by a BIAN conformance harness against the official OpenAPI and AsyncAPI files.
  • Event-sourced DDD core: pure decisions, append-only events in PostgreSQL (Marten), read models rebuilt from each context's own event store, and optimistic concurrency and idempotency keys on every command.
  • HTTP and MCP, the same rules: every BIAN operation is a REST endpoint and a Model Context Protocol tool for AI agents, with parity tests, per-operation OAuth scopes and RFC 9457 Problem Details on both.
  • Modular monolith, loosely coupled: contexts integrate only through published integration events (Wolverine outbox), and architecture tests enforce the boundaries.
  • Production habits from day one: .NET Aspire, OpenTelemetry, Testcontainers, warnings as errors, locked restore, SHA-pinned CI, CodeQL and OpenSSF Scorecard.

How BIAN maps to the code

BIAN concept DDD / code concept Example
Service domain Bounded context (a folder and namespace of the one RimBank.Core project, plus its own adapters) RimBank.Party.PartyReferenceDataDirectory
Control Record Aggregate root (event-sourced) PartyReferenceDataDirectoryEntry
Behavior Qualifier Entity inside the aggregate (or its own aggregate, by ADR) Demographics, Reference
Operation (Register, Initiate, Update, Control, Execute, …) Command with a pure decision, appending events RegisterParty
Retrieve operation Query over a read model (projection of events) RetrievePartyReferenceDataDirectoryEntry
AsyncAPI channel Integration event in .PublishedLanguage PartyReferenceDataDirectoryEntryCreated

Namespaces follow RimBank.<BusinessDomain>.<ServiceDomain>[.<Adapter>] (adapters: .Api, .Mcp, .Postgresql, .Subscriptions, …). Contexts never share read models; they integrate only through published integration events (see ADR 0003 and ADR 0004).

Repository layout

├─ RimBank.slnx               # solution
├─ global.json                # pinned .NET SDK
├─ Directory.Build.props      # shared build settings (nullable, warnings as errors, analyzers)
├─ Directory.Packages.props   # central package versions
├─ specs/                     # the constitution: mission, tech stack, roadmap, phase plans
├─ docs/adr/                  # architecture decision records
├─ doc-0/release14.0.0/       # BIAN v14 specifications (read-only input, Apache 2.0, see THIRD-PARTY-NOTICES.md)
├─ src/                       # production code: RimBank.Core (every context's domain and application logic) and each context's adapters
└─ tests/                     # test projects

Getting started

Prerequisite: the .NET SDK version pinned in global.json (.NET 10).

dotnet build RimBank.slnx
dotnet test RimBank.slnx
dotnet format RimBank.slnx --verify-no-changes

To run RimBank (Docker required): dotnet run --project src/RimBank.AppHost, then open the Aspire dashboard URL printed in the console. See CONTRIBUTING.

Documentation

Contributing

Contributions are welcome, from a typo fix to a whole BIAN service domain. Read CONTRIBUTING.md and the Code of Conduct, then pick a good first issue or a phase from the roadmap.

If RimBank helps you learn BIAN, DDD or event sourcing, a ⭐ helps others find it.

License

MIT © 2026 RimBank contributors. The BIAN specifications in doc-0/ are © BIAN under the Apache License 2.0. See THIRD-PARTY-NOTICES.md. RimBank is not affiliated with BIAN. To cite RimBank, see CITATION.cff.

About

Open-source, production-grade core banking implementing BIAN v14 with DDD and hexagonal architecture in .NET

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages