Examples

Examples

Eight complete example domains from the library's own test suite, each with annotated tests.

The easiest way to choose a pattern is to see it in a scenario that resembles your own. These examples cover eight small domains in tests/Zeeq.Biome.Tests, each with a seed, blueprints, scenario chains, and tests that run in CI.

Start with the domain closest to your app. Each page highlights the choices that matter and compares the setup with a hand-written version, so you can see what moves into the blueprints.

Code reviews

Repository → pull request → review → lock. Re-anchoring, ancestors, PR numbering, transients, time.

Membership

Users and aliases (fan-out per parent), invitations with derived expiry, and an organization aggregate.

Board

Board → columns → cards with a string rank sequence scoped per parent.

Custom seed

A plain record seed, an interface default, save hooks, frozen options and parallel safety.

Commerce

Five levels, mixed scopes (per customer, per order), transient request inputs.

Project management

Six levels, three rank scopes, workspace-wide tickets and sibling branches.

Learning

School → course → section → enrollment → assignment → submission, with a deadline and a shared clock.

Docs ingest

Library → document → section → chunk, plus an ingest aggregate and a transient preview.

DomainSeedShows
CodeReviewsorg + ownerre-anchoring, ctx.Ancestor, .Per<T> sequence, helper, time
Membershipownerfan-out per parent, fill-only Derive, InputBlueprint
Boarda string.PerParent rank sequence, .Under siblings
CustomSeedplain recordDefault<TBase,…>, hooks, freeze, parallel
Commercestore namemixed scopes, AsTransient, deep tree
ProjectManagementownerthree rank scopes, workspace tickets
Learningdistrictroster across sections, shared fake clock
DocsIngestownerper-library versions, aggregate, transient
The same layout works in your app: one folder per area, with Blueprints.cs (annotated with [BiomeGraft]), optional Traits.cs, ContextExtensions.cs for repeated context overloads, and ScenarioHelpers.cs for named multi-step chains. See Generated grafts and scenario helpers.