Back to browse
GitHub Repository

Diagrams by Pikchr in Prolog

6 starsC

DiagramIDE – a Rust GUI to Compose Diagrams via Tcl, Prolog, and Pikchr

by xlii·Feb 27, 2026·6 points·0 comments

AI Analysis

MidBig BrainNiche Gem

Separates logic/data/rendering concerns, but Pikchr's adoption is tiny and alpha quality limits viability.

Strengths
  • Modular architecture decouples scripting from rendering, avoiding monolithic DSL bloat.
  • Rust + EGUI foundation is solid; wire-protocol approach means zero code changes to integrate components.
  • Prolog for relationships is an interesting constraint; native support for declarative linking is rare.
Weaknesses
  • Early alpha with acknowledged rough edges and unpredictable behavior—shipping incomplete.
  • Pikchr itself has minimal adoption; no clear advantage over Graphviz, Mermaid, or PlantUML in established workflows.
  • Tcl + Prolog stack is niche; steep learning curve vs. simpler DSLs limits addressable market.
Target Audience

Diagram creators, technical documentarians, developers who prefer code-driven diagramming

Similar To

Graphviz · Mermaid · PlantUML

Post Description

I built DiagramIDE because I wanted a more modular way to handle diagramming-as-code. It’s a Rust-based GUI (EGUI) where you can split logic, data, and rendering into separate windows. Instead of one giant DSL file, you can script components in Tcl, define relationships in Prolog, and pipe the results into Pikchr for the final render.

Fair warning: it’s an early alpha and still quite rough around the edges. I’ve been dogfooding it for my own work so it’s definitely functional but expect unexpected.

Shortest way to try it out is a compiled binary release: https://github.com/exlee/pikchr.pl/releases/tag/latest

Similar Projects