____ _____ _ | _ \ ___ ___ | ___| | | ___ __ __ | | | | / _ \ / __| | |_ | | / _ \ \ \ /\ / / | |_| | | (_) | | (__ | _| | | | (_) | \ V V / |____/ \___/ \___| |_| |_| \___/ \_/\_/
DocFlow is an intelligent documentation and modeling toolkit. Snap a whiteboard photo, map OpenAPI specs to your domain model, and keep your diagrams in sync with your code — automatically.
Four core capabilities, one unified toolkit.
Snap a photo of your whiteboard sketch. Claude Vision extracts the diagram structure, and DocFlow's code generator produces idiomatic C# — records, entities, and all.
Parse C# to Mermaid class diagrams, or generate C# from Mermaid. Full DDD semantic preservation — aggregates, value objects, and relationships survive the round-trip.
Parse OpenAPI 3.x specifications, map fields to your Canonical Domain Model with confidence scoring, and generate typed DTOs, AutoMapper profiles, and HTTP clients.
Validate data freshness against SLA thresholds. Sample live endpoints, compare timestamps against expected durations, and get clear compliance verdicts.
Real terminal output from DocFlow commands.
Point DocFlow at a whiteboard photo. Claude Vision reads the sketch, extracts entities and relationships, and generates a full C# domain model.
Parse existing C# source into Mermaid, or generate C# records and entities from a diagram — with full DDD pattern preservation.
public class Order { public Guid Id { get; init; } public Guid CustomerId { get; set; } public List<OrderItem> Items { get; } = []; public decimal TotalAmount { get; set; } } public record OrderItem( Guid ProductId, int Quantity, decimal UnitPrice );
classDiagram class Order { +Guid Id +Guid CustomerId +List~OrderItem~ Items +decimal TotalAmount } class OrderItem { +Guid ProductId +int Quantity +decimal UnitPrice } Order *-- OrderItem
classDiagram class Customer { <<AggregateRoot>> +Guid Id +string Name +Email EmailAddress } class Email { <<ValueObject>> +string Value } Customer *-- Email
/// <summary>Customer aggregate root.</summary> public class Customer { public required Guid Id { get; init; } public required string Name { get; set; } public required Email EmailAddress { get; set; } } /// <summary>Email value object.</summary> public record Email( string Value );
Parse an OpenAPI spec, map its fields to your Canonical Domain Model, and generate production-ready integration code — all in two commands.
Everything flows through a Canonical Semantic Model.
Format-specific parsers (Roslyn for C#, custom for Mermaid, OpenAPI spec reader) convert source into a language-neutral semantic model capturing entities, relationships, and DDD patterns.
The IMS layer applies pattern recognition, CDM mapping, and confidence scoring. Claude Vision adds AI-powered diagram extraction from photos.
Generators produce idiomatic output: nullable-enabled C# 12, valid Mermaid syntax, AutoMapper profiles, FluentValidation validators, or typed HTTP clients.
One command to get started on any platform.
curl -sSL https://raw.githubusercontent.com/infinyte/docflow/main/install.sh | bash
Requires .NET 8 SDK. The script installs to ~/.dotnet/tools and adds it to your PATH.
irm https://raw.githubusercontent.com/infinyte/docflow/main/install.ps1 | iex
Run in an Administrator PowerShell session. Requires .NET 8 SDK.
git clone https://github.com/infinyte/docflow.git cd docflow dotnet build dotnet run --project src/DocFlow.CLI -- --help
Set ANTHROPIC_API_KEY in your environment to enable whiteboard scanning.
Everything you need to go deeper.
Complete reference for all commands, flags, and options. Diagram, codegen, scan, integrate.
Deep dive into the canonical semantic model, parser/generator pattern, and DDD classification system.
Version history, breaking changes, and what's coming in the roadmap for DocFlow v0.2.