跳到正文

正在自动登录…

← 返回项目列表

vercel-labs/fx0

网页生成设计代理聊天交互

fx0 是一个轻量级设计代理,用户描述页面需求,代理自动生成单个 HTML 文件。它基于 libfx 构建,提供聊天界面、实时预览和持久会话,适合快速原型设计和网页生成。

AI 中文解读 · 根据仓库描述与 README 生成 · 2026/10/20 04:36:29 · 查看原文

值得看TypeScript应用与服务
累计 Stars
376
当前热度
1~7 天 · 小火
仓库创建时间
打开 GitHub ↗项目网站 ↗

选用指南

AI 根据 README 整理 · 2026/10/20 04:36:29

使用方式

通过网页界面使用,用户描述页面需求,代理生成 HTML 文件,可在线预览和下载。

查看 README 依据
# fx0 fx0 is an open-source, lightweight design agent built with [libfx](https://www.npmjs.com/package/libfx). You describe a page and an agent writes it as one HTML file. fx0 is also a working example of an app built on libfx. [One `createFxAgent()` call](#durability) gives it the agent loop, streaming, tool calls, retries and durable sessions, and `createFxEngine()` runs each subagent. Try it at [fx0.vercel.dev](https://fx0.vercel.dev), or clone it and make it your own. ## Features
- Sign in with Vercel to bill model calls through [AI Gateway](https://vercel.com/docs/ai-gateway) to your own team. - Optionally offer five free Opus 5.5 Fast prompts per IP without sign-in or a card. [BotID](https://vercel.com/docs/botid) protects the trial; a server-only Gateway key funds its admitted prompts. - A chat survives the function dying mid-reply: the turn continues where it stopped. See [Durability](#durability). - Every turn keeps its version of the design. You can reopen any of them and copy or download the HTML.
部署要求

本地运行需要 Node.js 24、Sign in with Vercel 应用、Neon Postgres 数据库和 Upstash Redis 数据库。

查看 README 依据
| [`lib/design-artifact.ts`](lib/design-artifact.ts) | Checks that a design is one HTML file of at most 512 KB, with no external assets | | [`app/api/`](app/api) | Route handlers. Chat routes check sign-in and ownership before anything else. | | [`components/`](components) | The chat, composer, preview and diagnostics panel | Neon Postgres holds accounts, who owns each chat, finished turns and every design version ([`migrations/`](migrations)). ## Run it locally You'll need Node.js 24 and three services:
1. A [Sign in with Vercel](https://vercel.com/docs/sign-in-with-vercel) app with the scopes `openid profile email offline_access` and the permissions AI Gateway: Use and Team: Read Only. Add `http://localhost:3000/api/auth/callback` as a callback URL. Don't leave out `offline_access`: without it, Vercel sends no refresh token and sign-in fails. 2. A Neon Postgres database. Use a separate branch for local work. 3. An Upstash Redis database.
已知限制

免费试用每个 IP 仅限五次,不周期性补充;清除 cookie 不会重置。生成的页面在沙箱 iframe 中运行,无法访问应用数据。

查看 README 依据
- Free prompts start in a new design on Opus 5.5 Fast with low effort. Existing paid-only chats keep their own billing. The allowance is five per IP across chats and browsers, with no periodic refill; clearing cookies does not reset it. After it is used, sign in to continue with your own team.
Generated pages run in a sandboxed iframe on an opaque origin. They can't read the app's cookies, storage or credentials, and their Content Security Policy blocks network requests (`connect-src 'none'`). It's still the browser enforcing all of this, though, not a sealed VM.

README

正在加载 README…

收录信息

仓库创建时间
2026/10/20 01:27:02
首次达标收录
2026/10/20 04:31:42
统计更新时间
2026/10/22 19:00:56

按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。

模型评估

值得看加权总分 3.8 / 5

新颖度
3.3
实用价值
3.7
成熟度
4.9
实质含量
4.0

由 Jev 模型根据仓库描述与 README 评估,2026/10/20 04:31:42 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。

仓库信息

最近推送
2026/10/22 03:44:19
许可证标识
Apache-2.0
Fork 数
69
当前状态
未归档

收录记录

按创建时长与累计 Stars 首次收录:小火
首次发现项目