Meadows – a small language for stock-and-flow diagrams that run
jjsalamon
29 points
3 comments
October 09, 2026
Related Discussions
Found 5 related stories in 100.0ms across 8,999 title embeddings via pgvector HNSW
- Nodd – Tiny, use-case-specific decision models that can run in browser yaszko · 21 pts · September 28, 2026 · 47% similar
- Show HN: Visimer – open-source visual editor for Mermaid diagrams engomez · 14 pts · August 17, 2026 · 46% similar
- Show HN: MeScript, music programming language inspired by Lisp vegnus · 25 pts · September 04, 2026 · 46% similar
- Ollaya – Ollama for open-source, Jev-style decision models Ardakilic · 394 pts · September 25, 2026 · 46% similar
- Show HN: Reladraw – A diagram language where you decide where to place things jpwalsh234 · 250 pts · September 26, 2026 · 46% similar
Discussion Highlights (2 comments)
jjsalamon
I was reading Donella Meadows' "Thinking in Systems" and wanted to play with its diagrams instead of just looking at them, so I wrote a small language for them. You type a model: | =>inflow [water in tub: 50] =>outflow: 5 | and get the stock-and-flow diagram, a chart of each stock over time, and an animation of the run on the diagram itself: stocks, and feedback loops pulse. Each example has notes in its source explaining what it shows. You can also build by clicking. It runs entirely in the browser, with no account and no backend. The whole model lives in the URL, so any diagram can be shared as a link. The compiler is PureScript (lexer, parser evaluator) and emits a graph as JSON; the front end is TypeScript and d3, with a force layout and a fixed-step Euler simulator. It's deliberately small: numbers are plain numbers with no units, and the simulator takes simple fixed steps. It's for learning and sketching, not a replacement for Vensim or Stella. Source (MIT): https://github.com/lorezzed/meadows I'd welcome feedback on the language itself
jamessb
The "Behaviour over time" graphs don't seem to render for the hunger/chicken & egg/burnout/predator & prey examples.