Page.json:用 JSON 描述 UI 的开放标准
Show HN: Page.json – An open standard for representing UI
Wuwei Systems 发布开放标准 Page.json,用 JSON 树描述界面的内容、布局与交互,每个节点对应一个组件。该格式可渲染为网页、移动视图和富文本文章,并可由人类与 AI 智能体用任意编辑器工具编辑。其目标类似 MCP 标准化智能体调用工具的方式,让生成式 AI 按需创建的 UI 不被模型提供商绑定,成为可检查、可编辑、可复用的数字产物。
Page.json describes a user interface as data: its content, layout, and interactions.
Just as MCP standardizes how agents call tools, Page.json is meant to standardize how pages are described across applications and platforms.
Generative AI makes it easy to create UIs on demand, but we don't want them to be coupled with model providers. Instead, Page.json captures these interfaces in documents that you can inspect, edit, and reuse.
How it works
A page is a JSON tree. Each node describes a component, its content, and its layout.
The simplest example looks like this:
{
"type": "frame",
"children": [
{
"type": "text",
"text": "Hello, world!"
}
]
}
This format is
Portable: Renderable as a web page, mobile view, rich text article, and more, through compatible renderers.
Editable by humans and AI agents, using any editor tool.
Declarative and inspectable.
Page.json turn interfaces into first-class digital artifacts, rather than being locked inside application code.
Examples
Article
Dashboard
Form
This page
Let's stay in touch
Receive updates on what we're building at Wuwei Systems.
来源:Hacker News · wuwei.us