RDX: Is "Docs as Data" the future over MDX?
Hey everyone,
I’ve been playing around with RDX (Reactive Document eXpressions) recently and wanted to see what the community thinks about it.
For context: MDX is amazing, but because it allows arbitrary JavaScript execution, it’s a massive security risk if you want to allow untrusted users to write content.
RDX takes a different approach: it uses the same familiar JSX-style syntax (<Notice type="warning">), but it parses into a strict, safe AST with zero code execution.
Two things really stood out to me about this approach:
Security: You can finally let users safely write complex UI components in a CMS or forum.
AI & RAG: Because there is no JavaScript "noise" or import logic in the file, it is so much easier to extract clean text for vector databases and LLMs.
I'm curious to hear from others who have looked into it.
Would love to hear your thoughts!

Replies