Replacing LLM-generated HTML micro-apps with a 0-token JSON compiler and 3-layer null-origin CSP sandbox

Adorable-Cost-3249 · reddit · 2026-12-05

A Reddit engineer details why their team stopped having LLMs regenerate bespoke HTML/React micro-apps every turn and split what to show from how to render:

The author honestly notes single-file HTML requires script-src 'unsafe-inline', which is why the null-origin and CSP walls are non-negotiable.

Original post →

More from coding & agent

coding & agent channel →