# Releasing Typemaid on NPM Turning your mermaid diagrams into AI workflows

> Source: <https://news.ycombinator.com/item?id=50561703>
> Published: 2026-11-19 15:52:29+00:00

**Key takeaway:** TypeMaid lets developers define executable AI workflows as Typed DAGs in Mermaid diagrams instead of writing the orchestration entirely in TypeScript code.

I've been privately building a TypeScript SDK called TypeMaid and using it for my own projects over the past month.

It's based on Typed DAGs, with Mermaid diagrams to define and visualize AI workflows. I've found this approach surprisingly simple to understand and work with, especially compared to writing workflows entirely in code.

I recently open-sourced it and am now working on durability, retries, and persistent execution.

I'm curious what others think about using Mermaid to define executable AI workflows. Does this approach make sense, or am I missing something?

Would really appreciate any feedback, suggestions, or contributions! Star on github https://github.com/typemaid/typemaid

Comments URL: [https://news.ycombinator.com/item?id=50561703](https://news.ycombinator.com/item?id=50561703)

Points: 1

# Comments: 0
