Architecture Log

The typeDiagram Blog

Updates, deep dives, and release notes from the people building the DSL, parser, layout engine, and renderer.

The typeDiagram team

How Real Rust Tooling Uses typeDiagram as a Single Source of Truth: Inside Deslop and Basilisk

A case study in schema-driven development: two production Rust developer tools — Deslop, the live duplicate-code MCP/LSP server, and Basilisk, the Python type checker that scores 100% on the official typing conformance suite — generate their data models from typeDiagram .td schemas instead of hand-writing them. One model, generated algebraic data types in Rust and TypeScript, wired into cargo build, with hand-editing made structurally impossible.

Read post →
The typeDiagram team

typeDiagram 0.11: Native DateTime, Uuid and Decimal Scalars — Codegen That Refuses to Lie

typeDiagram 0.11 adds native DateTime, Uuid, and Decimal scalars that generate real datetime / UUID / decimal types in TypeScript, Python, Rust, Go, C#, F#, Dart, PHP, and Protobuf — plus strict code generation that fails on unknown type names instead of emitting code that won't compile. The fix for schema drift on timestamps and ids.

Read post →
The typeDiagram team

Class Diagrams for Modern Type Systems: Diagram-as-Code and Source Generation with typeDiagram

A practical guide to class diagrams for modern type systems, including records, discriminated unions, and tagged unions. Generate TypeScript, Rust, C#, F#, Go, Python, Dart, PHP, and Protobuf types from one diagram, render SVG via pluggable hooks, and embed in Markdown — all diagram-as-code, all open source.

Read post →