You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dimitri Glazkov edited this page May 31, 2025
·
47 revisions
Particles is a UI toolkit designed to answer the following question: "Now that LLMs can generate UI code, what's the right way to do this"? The word "right" is load bearing here and contains various intuitions and practices that guide the overall design -- aka "the Opinion".
Opinion
The following statements comprise the guiding principles of the toolkit design:
Sandboxed LLM -- Code that is generated by LLMs will have to be sandboxed. More specifically, code that drives UI:
must be able to do so asynchronously (though with minimal latency) from the code that renders UI;
must not be able to operate directly on the UI.
Separation of presentation and logic -- The oldie-but-goodie from HTML, but now with feeling. Code that renders UI must have control in how UI is presented. Code that drives UI must be able to provide the semantics of what it's trying to convey, but not the exact rendering.