genui
1,798
Stars
179
Forks
18
Watchers
4
Open Issues
BSD-3-Clause
许可证
Dart
语言
2025-07-18
创建时间
2026-11-11
最近更新
项目能做什么
genui 是 Flutter 的生成式 UI 库。它解决大模型只输出死板纯文本、交互差的问题。核心功能是通过 JSON 动态组装应用现有的 Widget(如表单、滑块等图形组件),支持数据绑定与状态回传,让 Agent 对话直接生成可交互的 UI 界面。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
**Announcement:** `genui` is being redesigned as a set of modular packages: [`a2ui_core`](https://pub.dev/packages/a2ui_core), [`a2ui_agent`](https://pub.dev/packages/a2ui_agent), and [`a2ui_flutter`](https://pub.dev/packages/a2ui_flutter). The new packages will have a different API. # Generative UI SDK for Flutter (genui) A Flutter library to enable developers to easily add interactive generative UI to their applications. See the [Getting started with GenUI](https://www.youtube.com/watch?v=nWr6eZKM6no) video for an overview of the package. [<img src="docs/assets/genui_intro_video_still.png" alt="GenUI Intro video still" height="500">](https://www.youtube.com/watch?v=nWr6eZKM6no) ## Status: highly experimental This is a highly experimental package, which means the API will change (sometimes drastically). [Feedback is very welcome](https://github.com/flutter/genui/issues/new/choose). ## Summary Our goal for the GenUI SDK for Flutter is to help you replace static "walls of text" from your LLM with dynamic, interactive, graphical UI. It uses a JSON-based format to compose UIs from your existing widget catalog, turning conversations or agent interactions into rich, intuitive experiences. State changes in the UI update a client-side data model, which is fed back to the agent, creating a powerful, high-bandwidth interaction loop. The GenUI SDK for Flutter aims to be easy to integrate into your Flutter application to significantly improve the usability and satisfaction of your chatbots and next-generation agent-based user experiences. ## High-level goals - Increase Interaction Bandwidth for Users: allow users to interact with data and controls directly, making task completion faster and more intuitive. Move beyond a "wall of text". - Simple and easy to use by developers: seamlessly integrate with your existing Flutter workflow, design systems, and widget catalogs. - Drive agent-human UX forward: innovate ways to dramatically improve how users interact with their LLMs and Agents. Radically simplify the process of building UI-based agent interactions, by eliminating custom middleware between the agent and the UI layer. ## Features * Multiple agent and LLM provider support * A2UI support * Standard UI catalog * Custom widgets * Data binding * Chat UX * Canvas UX ## Use cases - Incorporate graphical UI into chatbots: instead of describing a list of products in text, the LLM can render an interactive carousel of product widgets. Instead of asking for a user to type out answers to questions, the LLM can render sliders, checkboxes, and more. - Create dynamically composed UIs: an agent can generate a complete form with sliders, date pickers, and text fields on the fly based on a user's request to "book a flight." ## Look & feel <img src="docs/assets/genui_example_demo.gif" alt="GenUI Demo" height="500"> _The GIF above shows how GenUI enables dynamic, interactive UI generation,_ _instead of text descriptions or code from a traditio阅读完整原文
项目深度分析 AI 生成
Flutter GenUI 商业级扩展组件库与模板套件 (GenUI UI Kit)
| 产品构想 | 基于 GenUI/a2ui 协议规范,开发一套面向特定行业(如电商推荐、金融报表、动态数据收集表单)的高颜值、开箱即用的大模型感知 UI 组件套件,并提供预设的 Prompt/JSON Schema 约束。 |
| 核心功能 | 30+ 预制商用动态组件(轮播商品卡、动态筛选表单、多选统计卡)、统一的设计系统样式、针对主流 LLM(OpenAI、Claude、Gemini)的结构化输出 Schema 模板、双向数据流校验。 |
| 目标用户 | 中小团队独立开发者、快速交付 AI 客户端项目的外包与技术方案商。 |
| 难度/周期 | 中等 · 1 - 2 个月 · 成本:极低(主要是开发时间与少量 LLM API 调用测试成本) |
| 收费模式 | 数字资产销售(Gumroad / 独立站售卖源码授权,99-299 美元/套件),提供高级支持订阅。 |
| 竞争风险 | 官方目前状态为“highly experimental”并正在拆分为 a2ui_* 模块,API 不稳定可能导致重构维护成本高(事实依据)。 |
| 依据 | 已验证事实 |
Agent-to-GenUI 云端中间件与 Schema 转换网关 (GenUI Backend Gateway)
| 产品构想 | 提供一个轻量级 BaaS/Proxy 服务,将常见 Agent 编排框架(如 LangChain、LlamaIndex、Dify)的输出转换为 a2ui/GenUI 标准 JSON 协议,并处理状态回传与校验。 |
| 核心功能 | 可视化组件协议映射器、动态 JSON 格式校验与容错修复、双向状态回传回调管道、多模型 Fallback 保障。 |
| 目标用户 | 后端技术栈主要在 Python/NodeJS 但前端使用 Flutter 的全栈或 AI 应用团队。 |
| 难度/周期 | 中等偏高 · 2 - 3 个月 · 成本:低(轻量云服务器与 Serverless 实例) |
| 收费模式 | SaaS 订阅模式(按转换请求量/月活用户计费),提供开源自托管版与商业托管版。 |
| 竞争风险 | 存在技术替代风险,开发者可能倾向于直接在客户端用 Dart 或自写云函数完成转换(AI推测)。 |
| 依据 | AI推测 |
面向移动 AI 应用的 GenUI 集成咨询与定制交付服务
| 产品构想 | 提供从传统 Flutter App 改造为 Agent-First 动态交互界面的专家咨询、企业定制组件 catalog 落地及性能调优服务。 |
| 核心功能 | 现有设计系统与 Widget 库向 GenUI 规范的迁移接入、流式 UI 渲染性能调优、双向 Agent 业务流程架构设计、本地合规化部署与测试支持。 |
| 目标用户 | 需要将其传统移动业务全面智能化升级的传统中大型企业(如银行、零售、在线政务)。 |
| 难度/周期 | 较高 · 按项目交付(1 - 3 个月/单) · 成本:低(以人力专业时间为主) |
| 收费模式 | 高客单价的技术顾问费与按人天/里程碑的项目交付费用。 |
| 竞争风险 | 目前企业对 GenUI 类形态在移动端成熟度的信任度尚需市场教育,客户开拓周期长(尚需验证的假设)。 |
| 依据 | 尚需验证的假设 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| omdsh-dev/dsh-genui | 中文介绍暂未生成 GenUI for DeepSeek Harness: interactive UI components render |
974 | TypeScript |
| brevent/genuine | 中文介绍暂未生成 | 410 | C |
| vercel-labs/ai-sdk-preview-rsc-genui | 中文介绍暂未生成 Generative UI with React Server Components and Vercel AI SDK |
386 | TypeScript |
| opentiny/genui-sdk | 中文介绍暂未生成 A Generative UI SDK for Vue, Angular and React |
194 | TypeScript |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 2025-07-18,近 30 天仍在推送,发布过 8 个 Release |
| 社区活跃 | Star 1,798 / Fork 179 / Issue 4(数据支持,可自行核实) |
| 许可证 | BSD-3-Clause |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。