Wayfinder.Engine
0.29.2
See the version list below for details.
dotnet add package Wayfinder.Engine --version 0.29.2
NuGet\Install-Package Wayfinder.Engine -Version 0.29.2
<PackageReference Include="Wayfinder.Engine" Version="0.29.2" />
<PackageVersion Include="Wayfinder.Engine" Version="0.29.2" />
<PackageReference Include="Wayfinder.Engine" />
paket add Wayfinder.Engine --version 0.29.2
#r "nuget: Wayfinder.Engine, 0.29.2"
#:package Wayfinder.Engine@0.29.2
#addin nuget:?package=Wayfinder.Engine&version=0.29.2
#tool nuget:?package=Wayfinder.Engine&version=0.29.2
<picture> <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/jonnymuir/Wayfinder/main/assets/wordmark-dark.png"> <img src="https://raw.githubusercontent.com/jonnymuir/Wayfinder/main/assets/wordmark-light.png" alt="Wayfinder" height="56"> </picture>
A service blueprint / service-design engine: domain model, calculation engine, state-machine engine, and a compiled visual editor web component. Framework-agnostic, with no Umbraco, no ASP.NET Core MVC, and no hosting assumptions baked in.
The domain model is the service blueprint as the Nielsen Norman Group defines it: a user journey laid out across customer actions, frontstage, backstage, and support processes, divided by the lines of interaction, visibility, and internal interaction. Wayfinder makes that model executable, and delivers journeys to GDS Service Standard practice with the real GOV.UK Design System.
Wayfinder was extracted from Umbraco Prism,
which is now a consumer of these packages rather than their owner. A host application,
Umbraco-based or otherwise, layers its own tenancy, auth, and rendering opinions on top.
Wayfinder.Umbraco is the Umbraco-hosted
implementation Prism itself uses.
How it fits together
graph LR
PRISM["Umbraco Prism<br/>multi-tenant OIDC, branding, mobile"] -- "reference site installs" --> WFU["Wayfinder.Umbraco<br/>Umbraco host"]
WFU -- "depends on" --> WF["Wayfinder<br/>framework-agnostic engine<br/>(this repo)"]
Each arrow points from a project to the one it builds on.
Wayfinder(this repo) is the framework-agnostic core: the domain model, the calculation engine, the state-machine engine, GOV.UK rendering and the visual editor. No Umbraco, no hosting assumptions.Wayfinder.Umbracois the Umbraco host: a database-backed blueprint store, Block Grid blocks, and the backoffice authoring UI.- Umbraco Prism adds multi-tenancy, branding
and mobile to Umbraco.
UmbracoPrism.Corehas no Wayfinder dependency; only its reference site installsWayfinder.Umbraco, the way any other site would.
Quickstart
dotnet add package Wayfinder.Engine
Seed a blueprint (a YAML file; see the reference contract for the full schema):
# blueprints/apply-for-a-licence.yaml
definitionKey: apply-for-a-licence
displayName: Apply for a licence
version: 1
initialStage: start
requestPolicy: single
queues:
- key: citizen
displayName: Citizen
actor: citizen
stages:
- stageKey: start
displayName: Your details
queueKey: citizen
components:
- type: text
fieldKey: fullName
label: Full name
required: true
routes:
- id: start--submit--to-done
target: to-done
trigger: submit
- stageKey: done
displayName: Application submitted
queueKey: citizen
components:
- type: panel
heading: Application complete
gateways:
- key: to-done
displayName: Submit the application
gatewayType: Split
queueKey: citizen
routes:
- id: to-done--continue--done
target: done
trigger: continue
A stage's routes always target a gateway, never another stage directly, so even a one-step journey has a pass-through gateway. That uniform shape is what lets a gateway grow branching or join logic later without restructuring the stages around it.
Register the engine, plus the HTML sanitizer every host supplies for content authored in a blueprint:
using Wayfinder.Engine.Extensions;
using Wayfinder.Services.Sanitization;
builder.Services.AddProcessManager("blueprints"); // folder containing the YAML above
// Passthrough is only safe for developer-authored seed files like this one. A host rendering
// content written by real authors registers an HTML allowlist sanitizer instead.
builder.Services.AddSingleton<IServiceContentSanitizer, PassthroughContentSanitizer>();
Then resolve IProcessManager and round-trip an instance:
using Wayfinder.Engine.Abstractions;
using Wayfinder.Models.ServiceDesign;
var processManager = app.Services.GetRequiredService<IProcessManager>();
var envelope = processManager.GetCurrent(
blueprintKey: "apply-for-a-licence", tenantId: "default", userId: "user-1",
accessProfile: ActorProfile.UnrestrictedOwner);
// envelope.ResponseState == "render" — envelope.Render.Components has the "Your details" fields
var advanced = processManager.Advance(
instanceId: envelope.InstanceId, tenantId: "default", userId: "user-1",
accessProfile: ActorProfile.UnrestrictedOwner, action: "submit", expectedStateVersion: envelope.StateVersion,
fieldValues: new Dictionary<string, object?> { ["fullName"] = "Ada Lovelace" });
// advanced.ResponseState == "complete", advanced.Render.StateDisplayName == "Application submitted"
ActorProfile.UnrestrictedOwner lets this single-user example act on every queue. A real host
resolves a profile per signed-in user, which is what limits each person to their own queues.
That's the whole engine surface a host needs: GetCurrent to render the current step, Advance
to submit it. Wayfinder.Umbraco wraps exactly
these two calls behind a Block Grid block; see its own README for the CMS-hosted version.
ReadmeQuickstartTests runs this quickstart as written, so it stays correct.
See it running
Wayfinder.AppHost + Wayfinder.ReferenceApp is a small, self-contained .NET Aspire host in
this repo, with every package wired together, real GOV.UK Design System rendering, a demo login,
and a seeded "apply for a licence to hold a juggling event" journey. It's the fastest way to
see what a working Wayfinder host actually looks like, and exactly how little wiring a real
host (like Wayfinder.Umbraco) collapses into. Run it with
dotnet run --project Wayfinder.AppHost, or the "C#: Aspire (Full Stack)" launch config in
VS Code. See the reference app guide for what it
implements, how the demo blueprint is seeded from YAML and only saved in memory, and what a
real host does differently.
Packages
Core
| Package | Purpose |
|---|---|
Wayfinder |
Core domain models (ServiceBlueprint, ServiceRequestResponseEnvelope, etc.), the declarative calculation engine, and the sanitizer interface. Zero framework dependency. |
Wayfinder.Engine |
The service blueprint state-machine engine: queue routing, gateway evaluation, request persistence, support-systems, bulk data. |
Surfaces — HTTP glue a host maps into its own pipeline
| Package | Purpose |
|---|---|
Wayfinder.Engine.Api |
REST toolkit (MapServiceBlueprintAuthoringApi()) exposing service blueprint authoring (list/read/validate/save/simulate) over HTTP for any ASP.NET Core host. |
Wayfinder.Engine.Mcp |
MCP-over-HTTP toolkit (MapServiceBlueprintAuthoringMcp()): the same authoring surface as MCP tools for AI agents. |
Wayfinder.Engine.Http |
Stage file-upload HTTP glue (StageFileUploads) and the inbound webhook support-system callback (MapWebhookSupportSystemCallbacks). |
Wayfinder.Engine.Journey |
The single-actor citizen journey surface — a minimal host wraps GetCurrent/Advance behind real routes with almost no code of its own. |
Wayfinder.Engine.Worklist |
The caseworker worklist surface — pickup/putback/paging over IProcessManager.GetQueueWorkItems, as HTTP endpoints. |
Rendering & Editor
| Package | Purpose |
|---|---|
Wayfinder.Rendering.GovUk |
Real GOV.UK Design System rendering (vendored govuk-frontend), the built-in component/field catalog, and calculation-driven live components. |
Wayfinder.Editor |
The compiled visual service-blueprint editor web component, ready to embed in a host's own admin UI. |
Wayfinder.Editor.Http |
The editor's host-side REST glue (load/save a blueprint from the editor's own UI). |
Versions. Wayfinder, Wayfinder.Engine, Wayfinder.Engine.Api and Wayfinder.Engine.Mcp
release in lockstep and always share a version number. The other packages version
independently, so use the latest of each: every release tag publishes any package whose
version has changed. All packages target .NET 10 and are published to nuget.org only.
The service blueprint model
Wayfinder implements the
Nielsen Norman Group service blueprint
(Sarah Gibbons, 2017) as a runnable artefact. In that model a user's journey is laid out across
horizontal lanes, divided by the lines of interaction, visibility, and internal interaction.
Those lanes are a blueprint's queues, one for each team or system that does the work. A
stage is a step in the journey. Every stage sits in a queue, and the queue is what places it
in a lane, so a stage is a stage whether it happens frontstage or backstage. A gateway is the
route from one stage to the next, from any lane to any lane. Alongside the route a gateway
carries the declarative rules for it: whether to split or join, waiting information, and the
conditions that choose a path. Support Systems is NN/g's support-processes lane made
first-class.
The model is the Nielsen Norman Group service blueprint (Sarah Gibbons, 2017). See the article for Gibbons' own worked example.
A ServiceBlueprint describes a journey as queues (named work queues), stages (each
owning its own routes), and gateways (first-class Split/Join routing nodes that a stage's
routes always target, never another stage directly). See the
reference contract
for the full authoring schema, and
the calculation language guide for the
declarative expression language used in calculations and showWhen. The
glossary maps NN/g's terms
onto Wayfinder's.
AI-ready authoring
Building with an AI agent? Point it at Building a service with Wayfinder before it writes anything. The rule it teaches: forms, steps, rules, calculations, staff queues and calls to other systems are a blueprint, not host code; only editorial pages stay as host content. Agents connected over MCP are told the same at connection time.
Service blueprint authoring is exposed to AI agents (Claude Code or any MCP client) the
same way it's exposed to a human editor: as a toolkit a host app wires into its own
pipeline. Wayfinder.Engine.Api and Wayfinder.Engine.Mcp map the same
list/read/validate/save/simulate operations as REST and MCP-over-HTTP respectively, both
calling straight into a host's live Wayfinder.Engine in-process. The MCP endpoint also
serves the authoring guides as resources and three ready-made prompts (design-a-service,
convert-an-existing-design, work-through-design-notes). See
the AI authoring guide.
Documentation
The guides index lists
every guide by what you're trying to do: host the engine, author a blueprint, run caseworker
queues, or connect other systems. docs/examples/
holds the example blueprints the guides teach from, and the
glossary defines the terms.
Changes are listed in the changelog.
Building
You need the .NET 11 SDK (pinned in global.json), the .NET 10 runtime the packages target, and Node 20+. The editor
bundles are packed as static web assets, so build them before dotnet build:
cd Wayfinder.Editor.Client && npm ci && npm run build && cd ..
dotnet build Wayfinder.slnx -c Release
dotnet test Wayfinder.slnx -c Release --no-build
dotnet pack Wayfinder.slnx -c Release --no-build -o ./artifacts
Contributing and security
Changes reach main through pull requests with Conventional Commits
titles; CLAUDE.md holds the full conventions (testing, size budgets, security rules). To report a
vulnerability, use GitHub's private reporting,
as described in SECURITY.md, not a
public issue.
License
MIT. See LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- CsvHelper (>= 34.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.14)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.14)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.14)
- Microsoft.Extensions.Http (>= 10.0.14)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.14)
- Wayfinder (>= 0.29.2)
NuGet packages (7)
Showing the top 5 NuGet packages that depend on Wayfinder.Engine:
| Package | Downloads |
|---|---|
|
Wayfinder.Umbraco
Umbraco-hosted implementation of Wayfinder service design: a DB-backed, uSync-portable service blueprint store, a backoffice authoring API, and two Block Grid-composable building blocks (a citizen-facing stage journey and a caseworker-facing worklist) for any Umbraco v17+ site. An authoritative in-process engine, real multi-queue support, no multi-tenancy or auth opinions of its own; a host wires its own identity/tenant resolution on top. |
|
|
Wayfinder.Engine.Mcp
ASP.NET Core MCP-over-HTTP endpoint mapping that exposes Wayfinder service blueprint authoring (list/read/validate/save/simulate) as MCP tools, with the authoring guides as resources and ready-made prompts — a single MapServiceBlueprintAuthoringMcp() call any host adds to its own pipeline, alongside MapServiceBlueprintAuthoringApi(), inheriting its own auth. |
|
|
Wayfinder.Engine.Http
The engine's own HTTP-request-processing glue a host otherwise hand-copies per route — currently just file-upload handling (validating a posted file against a field's own declared MaxSizeBytes/AcceptedFileTypes, saving it via IServiceRequestFileStorage, and writing the resulting reference into fieldValues). Plain functions, no routing of its own — a host calls these from inside its own minimal-API handlers, the same way Wayfinder.Rendering.GovUk's GovUkStageJourney functions are called. |
|
|
Wayfinder.Engine.Api
ASP.NET Core minimal-API endpoint mapping that exposes Wayfinder service blueprint authoring (list/read/validate/save/simulate) as HTTP endpoints — a single MapServiceBlueprintAuthoringApi() call any host adds to its own pipeline, inheriting its own auth. |
|
|
Wayfinder.Engine.Worklist
A default, optional caseworker worklist surface — server-rendered GOV.UK markup for the filter/sort/search/paginated list (see docs/guides/queue-worklist-filtering.md), an item review page, advance, and per-cursor pickup/putback (see docs/guides/work-allocation.md). A host wires it up with AddWorklist()/MapWorklist(prefix), supplying only tenant/actor resolution and its own page chrome — or, for a host whose own routing model doesn't fit a mounted route group, calls WorklistRenderer's rendering functions directly and supplies its own routes. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.29.4 | 0 | 12/6/2026 |
| 0.29.3 | 0 | 12/6/2026 |
| 0.29.2 | 0 | 12/6/2026 |
| 0.29.1 | 0 | 12/6/2026 |
| 0.29.0 | 0 | 12/6/2026 |
| 0.28.0 | 290 | 11/17/2026 |
| 0.27.1 | 1,240 | 11/15/2026 |
| 0.27.0 | 710 | 10/31/2026 |
| 0.26.0 | 1,841 | 10/31/2026 |
| 0.25.0 | 656 | 10/24/2026 |
| 0.24.2 | 130 | 10/24/2026 |
| 0.24.1 | 118 | 10/24/2026 |
| 0.24.0 | 464 | 10/22/2026 |
| 0.23.0 | 353 | 10/19/2026 |
| 0.22.0 | 198 | 10/18/2026 |
| 0.21.0 | 140 | 10/18/2026 |
| 0.20.0 | 483 | 10/16/2026 |
| 0.19.1 | 131 | 10/16/2026 |
| 0.19.0 | 608 | 10/6/2026 |
| 0.18.0 | 170 | 10/6/2026 |