3 comments

  • superfrank1 hour ago
    If I&#x27;m reading this correctly, caching only happens if I give it a stable cache key? If that&#x27;s true, this just seems like an insanely bad decision. I&#x27;ve seen waaaay to much bad React code to think that that isn&#x27;t a massive foot-gun.<p>1. That combined with hot reloading just makes me think some jr dev is going to forget to put that there while they&#x27;re building something locally and burn through their LLM budget without even knowing it.<p>2. What happens if the cache key changes. Is there any way to migrate from one key to another? Let&#x27;s say I&#x27;m using user ids as the cache key and you need to do a migration that changes the format of the key, is the existing design just gone forever?<p>3. Does anyone even want a non-deterministic UI? Don&#x27;t get me wrong, it&#x27;s a cool for a demo, but I can&#x27;t think of anything that would annoy me more than coming back to a website and every week it looks different.<p>Sorry to be a downer, but man, I just really struggle with this. If this is just kind of a cool hobby project then you can ignore #3, but for 1 and 2 I really feel like it&#x27;d be a better to do something like have a data attr for the prompt and then have component generation be something a user kicks off through a script or something.
    • uriahlight1 hour ago
      Google has a similar project called A2UI:<p><a href="https:&#x2F;&#x2F;developers.googleblog.com&#x2F;introducing-a2ui-an-open-project-for-agent-driven-interfaces&#x2F;" rel="nofollow">https:&#x2F;&#x2F;developers.googleblog.com&#x2F;introducing-a2ui-an-open-p...</a><p>In the real-world, to me it makes the most sense for client and patient onboarding.
  • cadamsdotcom15 minutes ago
    The magic eight ball of UI.<p>Not usable enough? Just refresh! No, we don’t know how many times you’ll need to do that.
  • popalchemist1 hour ago
    But why would anyone do this? The UI will obviously change unpredictably on every generation, there&#x27;s no way to deliver quality control if the UI is generated on the fly.
    • uriahlight1 hour ago
      I could see this being useful for client and patient onboarding in the services and medial sectors respectively. For example:<p>A potential client providing information for a law-firm regarding their grievance.<p>A patient filling out the medical questionnaire prior to their first visit to a medical practice.<p>Rather than having a fully deterministic form, you&#x27;d be providing them with forms that adapt to their specific issue. The data can then be intelligently stored both as JSON and a more generic record in an RDBMS.<p>That&#x27;s just my initial thoughts.<p>Google has a similar project called A2UI: <a href="https:&#x2F;&#x2F;developers.googleblog.com&#x2F;introducing-a2ui-an-open-project-for-agent-driven-interfaces&#x2F;" rel="nofollow">https:&#x2F;&#x2F;developers.googleblog.com&#x2F;introducing-a2ui-an-open-p...</a>
      • popalchemist1 hour ago
        That can be achieved with 100% infallability with a form framework like FormKit. Why risk it, especially in a high-stakes situation like health? Pretty sure it would actually be against some kind of regulation to do that specifically in the healthcare field.