GenUI State Management: Astro vs Next.js RSC — Frontend (P2)

In the previous part, we agreed on discarding Chatbots to move towards Generative UI. But for AI to “spawn” UI Components right on the user’s screen, the Frontend and Backend cannot just communicate via standard stateless APIs. They need to share a common State. The problem is: The AI’s brain and the User’s browser speak two entirely different languages. 2.1. Clear Demarcation: AIState vs UIState When building an Agentic system with an Interface, the first vital rule is to strictly separate AIState and UIState. ...

May 16, 2026 · 4 min · Lê Tuấn Anh

AI-Native Frontend in 2028: 10 Architecture Predictions

Answer-first: By 2028, AI-native frontends will shift from static components to dynamic, real-time interfaces generated via Model Context Protocol (MCP) contracts. Standardized component registries and streaming state synchronization will replace manual UI development, making schema validation at the edge a critical security requirement. What You’ll Learn That AI Won’t Tell You How to design a secure component runtime that prevents malicious prop injection when LLMs stream TSX directly to V8 isolates. Practical strategies to manage client-side state synchronization latency over unstable WebSockets during heavy reasoning agent runs. I’ve been designing AI-Native Frontend systems for the past year — specifically around Generative UI, the Model Context Protocol, and Astro’s Island Architecture. That’s a short window, but long enough to observe structural shifts that are not yet visible in mainstream discourse. ...

May 16, 2026 · 13 min · Lê Tuấn Anh