Been trying to code a plaintext exporter the past couple days, but unsurprisingly, complex layouting within plaintext is hard.
I’m now aware of Lynchpin: WIP terminal export for typst which (from the examples) looks way more competent and complete than my code, and should easily be able to be used to implement a website once published.