Launching today

TypeMaid
Turn mermaid diagrams into typed ai automations
1 follower
Turn mermaid diagrams into typed ai automations
1 follower
"Diagram is the Program!" - Us TypeMaid runs AI workflows drawn as simple Mermaid flowcharts. Each box is a typed TypeScript step checked with Zod. Run agents with any model through the Vercel AI SDK, pause for human approval, retry steps, and resume saved runs. Leave a Star on Github if you like the Idea!




Free
Launch Team

CloudflareDeploy serverless functions globally in seconds
Promoted

Hi Product Hunt, I'm Hitesh, and I built TypeMaid.
You draw the flow in a Mermaid file, and each box in the diagram is a TypeScript function with a Zod schema. The diagram decides what runs next, so no model picks the next step.
What it does today:
Agent steps through the Vercel AI SDK, so you can use OpenAI, Anthropic, Gemini, Ollama, LiteLLM and others.
Human approval steps. A run pauses, is saved, and resumes later.
Branches, loops, parallel steps and retries, all written in the diagram.
Saved runs in SQLite, Postgres or libSQL, plus a local viewer.
The repo has a full AI example: a planner, two searches in parallel, an AI judge that loops until the draft scores well, and an editor approval step.
Docs and quickstart: https://typemaid.pages.dev
I'd like to hear what workflows you would build with it, and where the diagram format gets in your way.