Back to List
πŸ“šResources

AI is the new UI: Generative UI with FastHTML

Pol Alvarez Vecino
2025-04

About

In-depth tutorial by Pol Alvarez Vecino demonstrating how to build interactive Generative UI applications using FastHTML and HTMX in less than 150 lines of code. The article explores the evolution from text-only chat interfaces to display-only GenUI and fully interactive GenUI, explaining how the hypermedia approach eliminates "contract coupling" between frontend and backend, enabling LLMs to generate truly dynamic interfaces.

Summary

FastHTML + HTMX Tutorial:

1. Minimal Code: Complete GenUI app in under 150 lines
2. Hypermedia Approach: Eliminates frontend-backend "contract coupling"
3. Evolution Path: From text chat to display-only to fully interactive
4. Python-Based: Uses FastHTML for rapid development
5. HTMX Integration: Dynamic updates without complex JavaScript

Key Innovation: LLMs generate HTML directly, removing the need for JSON APIs

Tags

mediumfasthtmlhtmxtutorialpython

Related Articles

πŸ“šResources

Google Research Blog: Generative UI

Google Research blog article "Generative UI: A rich, custom, visual interactive user experience for any prompt". Written by senior engineers at Google Research, it introduces the implementation approach and experimental results of Generative UI. The article states: "Generative UI is a new capability that enables AI models to create not just content but the entire user experience", and explains that this feature has been experimentally launched in Gemini app and Google Search AI Mode.

googleblogofficial
by Google Research Β· 2025-11
View Resource
πŸ“šResources

Generative UI and Outcome-Oriented Design

Article by Nielsen Norman Group discussing the impact of Generative UI on design paradigms. The author defines Generative UI as "technology that dynamically generates tailored interfaces for users in real-time via AI", arguing that it will shift interface design from satisfying the majority to satisfying individuals. The article advocates transitioning from traditional interface design to "outcome-oriented design", focusing on user goals and final experiences.

nngroupuxdesign
by Nielsen Norman Group Β· 2024-03
View Resource
πŸ“šResources

An introduction to Generative UIs

UX Collective article by Mark O'Neill introducing the concept and practical cases of Generative UI. The author notes that this term "emerged in 2023" and defines it as "technology that automatically builds or adjusts interfaces based on context through generative AI". The article demonstrates how UI elements, layouts, and styles can vary by user to achieve personalized experiences with GenUI.

uxdesignintroductionarticle
by Mark O'Neill Β· 2024-08
View Resource

A curated collection of Generative UI resources.

Made with ❀️ by the community