Live data from Hacker News

I turned Markdown into a protocol for generative UI

fabian-kuebler.com

1–10 of 72 posts

I turned Markdown into a protocol for generative UI

#1
There's a lot of work happening around both generative UI and code execution for AI agents. I kept wondering: how do you bring them together into a fully featured architecture? I built a prototype:

- Markdown as protocol — one stream carrying text, executable code, and data

- Streaming execution — code fences execute statement by statement as they stream in

- A mount() primitive — the agent creates React UIs with full data flow between client, server, and LLM

Let me know what you think!

I turned Markdown into a protocol for generative UI
fabian-kuebler.com

Re: I turned Markdown into a protocol for generative UI

#5
post #4

If you're still looking for a name let me suggest "hyper text". It embodies the whole idea of having data, code and presentation at the same place. If you're open for contributions I already have an idea for cascading styles system in mind.

Every turn of the wheel someone wants to make a new one.

Maybe one day someone will invent a rounder wheel.

Re: I turned Markdown into a protocol for generative UI

#7
There’s definitely a lot of merit to this idea, and the gifs in the article look impressive. My strong opinion is that there’s a lot more to (good) UIs than what an LLM will ever be able to bring (happy to be proven wrong in a few years…), but for utilitarian and on-the-fly UIs there’s definitely a lot of promise

Re: I turned Markdown into a protocol for generative UI

#9

There seems to be a lot of movement in this direction, how do you feel about Markdown UI? https://markdown-ui.com/

Markdown UI and my approach share the "markdown as the medium" insight, but they're fundamentally different bets:

Markdown UI is declarative — you embed predefined widget types in markdown. The LLM picks from a catalog. It's clean and safe, but limited to what the catalog supports.

My approach is code-based — the LLM writes executable TypeScript in markdown code fences, which runs on the server and can render any React UI. It also has server-side state, so the UI can do forms, callbacks, and streaming data — not just display widgets.

Re: I turned Markdown into a protocol for generative UI

#10
OpenUI and JSON-render are some other players in this space.

I’m building an agentic commerce chat that uses MCP-UI and want to start using these new implementations instead of MCP-UI but can’t wrap my head around how button on click and actions work? MCP-UI allows onClick events to work since you’re “hard coding” the UI from the get-go vs relying on AI generating undertemistic JSON and turning that into UI that might be different on every use.

Post reply on HN