登录 注册
其他
19,578
Stars
1,039
Forks
53
Watchers
129
Open Issues
Apache-2.0
许可证
TypeScript
语言
2026-01-14
创建时间
2026-11-11
最近更新

项目能做什么

生成式 UI 框架。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# json-render

**The Generative UI framework.**

Generate dynamic, personalized UIs from prompts without sacrificing reliability. Predefined components and actions for safe, predictable output.

<p>
  <a href="https://vercel.com/labs#labs-products"><img alt="Vercel Labs Product" src="https://img.shields.io/badge/LABS-PRODUCT-0a0a0a.svg?style=for-the-badge&amp;logo=Vercel&amp;labelColor=000000" height="28"></a>
  <a href="https://www.npmjs.com/package/@json-render/core"><img alt="npm version: @json-render/core" src="https://img.shields.io/npm/v/%40json-render%2Fcore.svg?style=for-the-badge&amp;labelColor=000000" height="28"></a>
  <a href="https://github.com/vercel-labs/json-render/blob/main/LICENSE"><img alt="License: Apache-2.0" src="https://img.shields.io/github/license/vercel-labs/json-render.svg?style=for-the-badge&amp;labelColor=000000" height="28"></a>
  <a href="https://www.npmjs.com/package/@json-render/core"><img alt="npm downloads per month: @json-render/core" src="https://img.shields.io/npm/dm/%40json-render%2Fcore.svg?style=for-the-badge&amp;labelColor=000000&amp;label=npm%20downloads" height="28"></a>
</p>

```bash
# for React
npm install @json-render/core @json-render/react
# for React with pre-built shadcn/ui components
npm install @json-render/shadcn
# or for React Native
npm install @json-render/core @json-render/react-native
# or for video
npm install @json-render/core @json-render/remotion
# or for PDF documents
npm install @json-render/core @json-render/react-pdf
# or for HTML email
npm install @json-render/core @json-render/react-email @react-email/components @react-email/render
# or for Vue
npm install @json-render/core @json-render/vue
# or for Svelte
npm install @json-render/core @json-render/svelte
# or for SolidJS
npm install @json-render/core @json-render/solid
# or for terminal UIs
npm install @json-render/core @json-render/ink ink react
# or for full Next.js apps (routes, layouts, SSR, metadata)
npm install @json-render/core @json-render/react @json-render/next
# or for 3D scenes (and gaussian splatting via the GaussianSplat component)
npm install @json-render/core @json-render/react-three-fiber @react-three/fiber @react-three/drei three
```

## Why json-render?

json-render is a **Generative UI** framework: AI generates interfaces from natural language prompts, constrained to components you define. You set the guardrails, AI generates within them:

- **Guardrailed** - AI can only use components in your catalog
- **Predictable** - JSON output matches your schema, every time
- **Fast** - Stream and render progressively as the model responds
- **Cross-Platform** - React, Vue, Svelte, Solid (web), React Native (mobile) from the same catalog
- **Batteries Included** - 36 pre-built shadcn/ui components ready to use

## Quick Start

### 1. Define Your Catalog

```typescript
import { defineCatalog } from "@json-render/core";
import { schema } from "@json-render/react/schema";
import { z } from "zod";

const catalog = defineC
阅读完整原文

商业机会分析 AI 生成

垂直行业 Generative UI 模板与组件包 (UI Kit Marketplace)

产品构想针对金融分析、SaaS后台看板、客服AI Copilot等特定场景,基于 json-render 封装开箱即用的高阶组件库、Zod校验规则及系统级Prompt预设,按套件或订阅收费。
核心功能30+专业垂直场景组件、开箱即用的Prompt与Few-shot微调示例、多端主题适配(React/Vue/Email/PDF)、交互事件预置处理逻辑。
目标用户开发AI垂直应用的独立开发者及中小创业团队。
难度/周期低到中 · 2-4周 · 成本:极低(仅需开发与静态站点托管成本)
收费模式一次性买断授权或年付更新订阅(如 $49-$199/套件)。
竞争风险开源社区可能快速复制同类免费UI组件套件,护城河依赖设计质感和专业场景沉淀。
依据 已验证事实

Generative UI Studio (低代码可视化Schema设计与Prompt调试SaaS)

产品构想提供可视化的Catalog配置工具,让非研发人员或全栈开发者通过GUI定义组件Schema,一键生成适配各种LLM(OpenAI/Anthropic)的System Prompt并在线模拟生成效果。
核心功能拖拽式Catalog与Zod Schema生成器、多模型实时生成渲染对比Playground、Prompt优化建议引擎、导出多框架SDK集成代码。
目标用户AI产品经理、前端开发工程师、Prompt工程师。
难度/周期中等 · 1-2个月 · 成本:中等(Serverless/Vercel托管成本 + LLM API测试费用)
收费模式免费额度 + 阶梯式SaaS订阅(团队版按月/按席位收费)。
竞争风险需持续跟进模型格式输出能力的变动,存在一定的前端开发复杂度。
依据 数据支持的判断

动态AI卡片全托管渲染API服务 (Dynamic Card-as-a-Service)

产品构想针对邮件营销、企业微信/Slack机器人的动态内容,通过提供云端API,接收LLM生成的JSON直接渲染输出交互卡片、响应式HTML Email或高保真PDF文档。
核心功能接收json-render spec输出静态安全HTML/PDF/图片流、服务端快速渲染流水线、无头浏览器集群管理、多平台尺寸自适应适配。
目标用户营销自动化SaaS开发商、办公协同机器人开发者、数据周报系统开发者。
难度/周期中等 · 1-2个月 · 成本:中等(容器渲染算力与带宽成本)
收费模式按API调用量计费(按生成次数阶梯定价)。
竞争风险服务端无头渲染资源开销较高,对并发吞吐与延迟优化要求苛刻。
依据 AI推测
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
lowlighter/metrics 中文介绍暂未生成
📊 An infographics generator with 30+ plugins and 300+ option
17,382 JavaScript
surveyjs/survey-library 中文介绍暂未生成
Open-source JavaScript form library for React, Angular, Vue,
4,930 TypeScript
mohsen1/json-formatter-js 中文介绍暂未生成
Render JSON objects in beautiful HTML (pure JavaScript)
717 TypeScript
yuki24/rambulance 中文介绍暂未生成
Simple and safe way to dynamically render error pages or JSO
530 Ruby
caldwell/renderjson 中文介绍暂未生成
Render JSON into collapsible HTML
437 JavaScript
DominikScholz/open-bot-avatar 中文介绍暂未生成
A JSON spec and renderer for interactive agent avatars
337 TypeScript
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2026-01-14,近 30 天仍在推送,发布过 100 个 Release
社区活跃Star 19,578 / Fork 1,039 / Issue 129(数据支持,可自行核实)
许可证Apache-2.0
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/vercel-labs/json-render.git
cd json-render
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。