Live data from Hacker News

I turned Markdown into a protocol for generative UI

fabian-kuebler.com

51–60 of 72 posts

Re: I turned Markdown into a protocol for generative UI

#51
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.

In this timeline I suggest favouring a style semantics and specification language.

[given what CSS has incrementally and inevitably become, it's my ever-firmer belief that DSSSL would've been the right choice in the first place]

Re: I turned Markdown into a protocol for generative UI

#52
post #23

Very cool. I'm imagining using this with Claude Code, allowing it to wire this up to MCP or to CLI commands somehow and using that whole system as an interactive dashboard for administering a kubernetes cluster or something like that - and the hypothetical first feature request is to be able to "freeze" one of these UI snippets and save it as some sort of a "view" that I can access later. Use case: it happens to buil…

Exactly this! Right now this uses React for Web but could also see it in the terminal via Ink. And I love the "freeze" idea — maybe then you could even share the mini app.

Did you see that Claude Code just came out with "channels" that allows for messages to be injected into the session/sent out by claude via hooks and MCP server [1]? I had CC code an integration between fenced and CC using channels and it actually worked - a little clunky since there is no streaming, but very interesting nevertheless.

[1] https://code.claude.com/docs/en/channels-reference

Re: I turned Markdown into a protocol for generative UI

#53

Brainstorming, perhaps ` >`? It goes against the grain of "eval() line-by-line", even if it's handled ASAP. But it might relax the order constraint on codegen. Especially if the UI gets complex, or rendered on a "pane off to the side".

Interesting idea! The slots mechanism already handles some of this — you can mount a skeleton first and fill in named sections later as the LLM generates them. But true out-of-order transclusion could be useful for more complex layouts. Worth exploring!

Re: I turned Markdown into a protocol for generative UI

#54
post #52

Earlier quoted context omitted.

Exactly this! Right now this uses React for Web but could also see it in the terminal via Ink. And I love the "freeze" idea — maybe then you could even share the mini app.

Did you see that Claude Code just came out with "channels" that allows for messages to be injected into the session/sent out by claude via hooks and MCP server [1]? I had CC code an integration between fenced and CC using channels and it actually worked - a little clunky since there is no streaming, but very interesting nevertheless. [1] https://code.claude.com/docs/en/channels-reference

Whoa, I hadn't seen channels yet — and you already got fenced working with Claude Code?! That's awesome. Would love to see what you built!

Re: I turned Markdown into a protocol for generative UI

#55

https://a2ui.org/

A2UI is Google's take — declarative JSON, tool-calling based, predefined component catalog. Clean and safe but constrained.

My approach is the opposite bet: full code execution instead of tool calls. The agent can build any React UI from scratch with the full power of code — including client-server data flow, callbacks, streaming data.

Re: I turned Markdown into a protocol for generative UI

#57

Brainstorming, perhaps ` >`? It goes against the grain of "eval() line-by-line", even if it's handled ASAP. But it might relax the order constraint on codegen. Especially if the UI gets complex, or rendered on a "pane off to the side".

Oops - that's not transclusion. Merely literate programming tangles.

Re: I turned Markdown into a protocol for generative UI

#58
post #44

Earlier quoted context omitted.

If HTML happened again except this time it was markdown, maybe more non-nerds would be able to use it? XML just looks gnarly.

Problem with the markdown approach the text will become rapidly ugly with hacks, non-standard annotations to enable same features as HTML.

I'm very curious. I hated how html requires angled brackets for everything and love markdown for its neatness.

What are some of the ugly hacks you've seen that were applied?

Re: I turned Markdown into a protocol for generative UI

#59
That‘a fascinating take on the UI problem. I find myself less and less coding cause there is no real easy way to build simple UI nowerdays. Languages like go and rust gloss over the UI question and offer no real easy way. Web frameworks take the roll of a emergency UI. I most of the time still use windows.forms for fast easy statefull ui forms

Re: I turned Markdown into a protocol for generative UI

#60
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.

> If you're still looking for a name let me suggest "hyper text".

Perhaps "WWW SPA document"? Using markdown with highly-progressive fenced blocks?

Hypertext (one word, coined 1960s) is quite a broad category. Subcategory "WWW" could fit, as TFA seems WWW-ish. A markdown document format, and progressive rendering of tags and code, seems HTML-like. Though with greater progressiveness - code blocks with streamed execution rather than merely compilation. The progressive JSON callbacks, React, integrated client and server code execution, and server-side rendering, seem closer to WWW SPA than to HTML. Though SPA files often seem more "source" than "document". And the multiple-page "App"-ness of SPA doesn't fit well. SPA seems a better fit than "full-stack". Perhaps some name analogous to "isomorphic javascript"...?

Post reply on HN