Skip to content

ResultFlow

Auto-generate Mermaid pipeline diagrams for any fluent Result pipeline.

Add [ResultFlow] to a method. The diagram will be inserted as a comment with a click, paste it into any Mermaid renderer to instantly visualize the data flow.

dotnet add package REslava.ResultFlow
  • [ResultFlow] Attribute

    Annotate any fluent pipeline method. The source generator walks the chain and emits a Mermaid flowchart constant — no runtime cost, no maintenance.

  • Standalone Package

    [ResultFlow] is provided by the REslava.ResultFlow package — completely independent of REslava.Result. It works with any fluent Result library.

  • Convention Dictionary

    Built-in support for REslava.Result, ErrorOr, and LanguageExt — classify Ensure, Bind, Map, Tap, Match, Filter, Then, and more out of the box.

  • resultflow.json Configuration

    Escape hatch for custom or third-party libraries. Add a single JSON file and override any built-in classification with your own method names.

  • Code Action — Insert Diagram

    The companion analyzer detects missing diagram comments on [ResultFlow] methods. One click inserts the generated Mermaid diagram directly above the method body.