{"id":28918453,"url":"https://github.com/kafkasl/genui","last_synced_at":"2025-07-13T09:35:54.020Z","repository":{"id":289043957,"uuid":"969941429","full_name":"kafkasl/genUI","owner":"kafkasl","description":"Code for Post \"AI is the new UI: Generative UI with FastHTML\"","archived":false,"fork":false,"pushed_at":"2025-06-12T15:59:06.000Z","size":14696,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-22T02:03:44.667Z","etag":null,"topics":["ai","claude","fasthtml","genui","htmx","python","ui","ux"],"latest_commit_sha":null,"homepage":"https://medium.com/@pol.avec/ai-is-the-new-ui-generative-ui-with-fasthtml-e8cfcc98e5b5","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kafkasl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-21T07:27:17.000Z","updated_at":"2025-06-12T15:59:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"5baaa7e7-68ef-4492-affe-e71c3da48924","html_url":"https://github.com/kafkasl/genUI","commit_stats":null,"previous_names":["kafkasl/genui"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kafkasl/genUI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kafkasl%2FgenUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kafkasl%2FgenUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kafkasl%2FgenUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kafkasl%2FgenUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kafkasl","download_url":"https://codeload.github.com/kafkasl/genUI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kafkasl%2FgenUI/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265121267,"owners_count":23714500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","claude","fasthtml","genui","htmx","python","ui","ux"],"created_at":"2025-06-22T02:03:33.919Z","updated_at":"2025-07-13T09:35:54.007Z","avatar_url":"https://github.com/kafkasl.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Generative UI Demos with FastHTML\n\nThis repository contains demos showcasing how to build interactive Generative UI (genUI) applications using FastHTML and Answer.ai libraries.\n\n## What is Generative UI?\n\nGenerative UI extends the concept of Generative AI beyond text and images to create dynamic user interfaces. Instead of generating just text in a chat fashion, genUI produces rich components that users can interact with directly.\n\nToday's AI interfaces are predominantly text-based and feel clunky compared to traditional apps. These demos show how we can transition from basic text-based chat into rich interactive experiences with buttons and visual elements - all in less than 150 lines of code using FastHTML and Answer.ai libraries.\n\n## Demos\n\nThis repository contains three progressive demos:\n\n1. [**Weather Demo**](https://github.com/kafkasl/genUI/tree/main/weather) - A basic chatbot enhanced with visual weather cards\n2. [**Your Color**](https://github.com/kafkasl/genUI/tree/main/your_color) - An interactive mindfulness experience using button-based navigation\n3. [**HAL 9000**](https://github.com/kafkasl/genUI/tree/main/hal9000) - A complete interactive experience combining text chat and button navigation\n\nTry the live demos:\n- [Weather Demo](https://fasthtml-app-cbd32e55.pla.sh/) \n- [Your Color Mindfulness](https://fasthtml-app-68e1764d.pla.sh/)\n- [HAL 9000 Demo](https://fasthtml-app-6e583cfc.pla.sh/)\n\n## Installation\n\nTo run these demos locally:\n\n1. Clone this repository:\n   ```bash\n   git clone https://github.com/kafkasl/genUI.git\n   cd genUI\n   ```\n\n2. Install the required dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n3. Navigate to any of the demo directories and run:\n   ```bash\n   python main.py\n   ```\n\nEach demo consists of just three files:\n- `main.py` - The application code\n- `style.css` - Styling \n- `requirements.txt` - Dependencies\n\n## Key Concepts\n\nThese demos showcase several important concepts:\n\n1. **Hypermedia Controls** - Using HTMX to create interactive elements without complex JavaScript\n2. **The Feedback Loop** - How user interactions flow back to the LLM, which generates new UI components\n3. **Eliminating Contract Coupling** - How the hypermedia approach removes the need for predefined frontend templates\n4. **Progressive Enhancement** - From static visual elements to fully interactive experiences\n\n## Article\n\nFor a detailed explanation of these concepts and demos, read the full article: [AI is the new UI: Generative UI with FastHTML](https://kafkasl.github.io/genui-post.html)\n\n## Deployment\n\nThese demos are deployed using [Plash](https://github.com/AnswerDotAI/plash_cli), a deployment service from Answer.ai.\n\nTo deploy your own version:\n1. Create a `plash.env` file with your configuration\n2. Run `plash_deploy`\n\n## License\n\n[MIT License](LICENSE) ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkafkasl%2Fgenui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkafkasl%2Fgenui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkafkasl%2Fgenui/lists"}