Idea/Fortui - the Form TUI Markup Language
Fortui
- While brainstorming better mechanisms for indicating AI agent workflows, I was thinking that it would be nice if I could really quickly select between predefined workflows for individual agents.
- What if there was a concise Markup Language that, like Markdown, both described and visually resembled a Web/Form you wanted to see and fill out, and thereby implied and expressed the underlying Schema of the form?
- Mermaid Diagrams and similar syntax-based diagrams don't tend to be that human-readable or writeable. They feel like programming; there are too many pointers for it to be casually written and read without very detailed practice.
- There are also schema languages like JSON Schema and Pydantic, but again, those are for a very strict subset of users, and I'm not sure they are the best way to casually represent what amounts to user queries.
- But if there was a Markup Language like Markdown which could represent a human-readable schema of a Web/Form, disassociated from its presentation, such that I could open up a TUI preview in nvim where I could get fuzzy autocomplete on the select drop-downs and quickly be able to fill in text boxes where I had a full vim buffer, and it would end up producing a really nicely formatted document? AI/Agent/Harnesses could do generative TUI in a way that went beyond simple question answer. Of course, one could just use HTML for this, too. That's probably the simpler idea. But I love my CLIs and TUIs, and CLIs and TUIs can go places that HTML can't, but the opposite is true as well. If there was an intermediate markup language that could render to multiple formats and was also quite readable and writeable by hand, that could be quite useful.