Navigation and interface are shown in English; some tool descriptions or article bodies remain in their original language.

Navigation

AI Products
Ranking Types
Language · English
AI Office

Persona.js

适用于网站的无框架开源 AI 聊天 UI 库。

Editor Score UnratedOnline · Since 2026Free
Visit Website ↗

Product Information

Platforms
Web
Languages
Unspecified
Last Updated
2026-11-09
www.persona-chat.dev
Persona.js 产品截图Enlarge ↗
Persona.js ScreenshotImage source ↗Website Preview

core competencies

7 items
  • 无框架且原生支持原生 JavaScript(Vanilla JS)
  • 支持用于客户端工具发现与执行的 WebMCP 标准
  • 灵活的布局方式,包括悬浮组件、停靠侧边栏和全屏助手
Show all 7 items
  • 无框架且原生支持原生 JavaScript(Vanilla JS)
  • 支持用于客户端工具发现与执行的 WebMCP 标准
  • 灵活的布局方式,包括悬浮组件、停靠侧边栏和全屏助手
  • 通过影子 DOM(Shadow DOM)和前缀 CSS 实现样式隔离
  • 可插拔的 SSE 流式传输适配器
  • 内置语音输入和输出功能
  • 功能完善的基于 Token 的主题编辑器

Typical usage scenarios

3 items
  • 在现有的静态 HTML 或单页面应用(SPA)中添加 AI 客服或新手引导聊天组件
  • 创建一个可调节大小的侧边栏副驾驶(Copilot),直接与应用状态交互并执行页面级工具
  • 部署一个全屏的 AI 助手看板,支持流式传输 Markdown 表格和分屏组件(Artifact splits)
View full description
  • 在现有的静态 HTML 或单页面应用(SPA)中添加 AI 客服或新手引导聊天组件
  • 创建一个可调节大小的侧边栏副驾驶(Copilot),直接与应用状态交互并执行页面级工具
  • 部署一个全屏的 AI 助手看板,支持流式传输 Markdown 表格和分屏组件(Artifact splits)

Get started quickly

1 items
  • Get started quickly

    要使用 Persona,可以通过 npm 安装(运行 'npm install @runtypelabs/persona'),或者在 HTML 文件中通过 CDN 引入其全局脚本标签(script tag)。然后,调用 'initAgentWidget' 函数进行初始化,指定目标容器的选择器并配置自定义服务器发送事件(SSE)后端 API 的 URL。此外,你也可以运行 'npx @runtypelabs/cli@latest persona init' 来生成一段可以直接复制粘贴的安装代码片段。

View full description
  • Get started quickly

    要使用 Persona,可以通过 npm 安装(运行 'npm install @runtypelabs/persona'),或者在 HTML 文件中通过 CDN 引入其全局脚本标签(script tag)。然后,调用 'initAgentWidget' 函数进行初始化,指定目标容器的选择器并配置自定义服务器发送事件(SSE)后端 API 的 URL。此外,你也可以运行 'npx @runtypelabs/cli@latest persona init' 来生成一段可以直接复制粘贴的安装代码片段。

Detailed IntroductionLearn more about Persona.js features and how to use itExpandCollapse

Persona 是一个由 Runtype 开发的轻量级、开源、无框架 AI 聊天 UI 库。它允许开发者在任何网站或静态 HTML 中嵌入可自定义主题的 AI 聊天组件或全屏副驾驶(Copilot)体验。该库不依赖特定后端,且原生支持 WebMCP 标准。这意味着 AI 助手可以自动发现并安全地执行由宿主页面代码直接暴露的工具(如搜索、购物车、预订和表单),并内置了用户确认机制。它支持 SSE 流式传输、智能体循环(Agent loops)、利用影子 DOM(Shadow DOM)实现样式隔离以防止 CSS 污染、语音输入/输出,并包含一个功能丰富的内置主题编辑器。

Suitable for the crowd

  • 前端高级开发工程师
  • 全栈开发工程师
  • 软件工程师
  • AI 应用开发者
  • Web 开发工程师

产品优势

  • 零框架依赖,兼容任何前端技术栈
  • 原生支持 WebMCP,允许工具保留在客户端代码中,无需后端集成
  • 采用影子 DOM(Shadow DOM)渲染,防止样式与外部相互污染
  • 支持 Vercel AI SDK、LangGraph.js、OpenAI Agents 和 Hono 等主流后端生态适配器

使用注意

  • 运行需要兼容 SSE 的后端接口或代理设置
  • 高级流控需要配合 @runtypelabs/persona-proxy 等独立工具使用

Pros, Cons & Quick Verdict

Aggregated from live multi-source checks & community signals

Key Strengths

  • Real discussions are active5 verified community reviews indexed.
  • Low threshold to get startedThe core functions are free and open, so you can experience them directly without paying.
Best for: Individual creators and early adopter users (including free quota, zero-cost verification effect)
LIVE STATUS · 官网状态巡检

Persona.js 运行状态

仅展示可验证的公开状态与域名信息 · 更新于 2026-12-01

官网可正常访问 · 响应 3736ms HTTPS 加密传输 域名始于 2026 年(已运行 1 年 · RDAP) AI Office 第 925 名
同步于 2026-12-01

FAQ

2 个问题
什么是 WebMCP?Persona 是如何使用它的?

WebMCP 是一种标准,它为浏览器提供了一个中心位置(document.modelContext)来管理客户端的页面工具。Persona 原生支持这一标准,能够自动发现这些工具(例如商品搜索、将商品加入购物车或预订表单),并在调用前提示用户授权,随后将结果流式传输回聊天对话中,全程无需后端进行工具集成。

嵌入 Persona 会破坏我网站现有的样式吗?

不会。Persona 使用影子 DOM(Shadow DOM)渲染和带前缀的 CSS 规则来确保绝对的样式隔离。宿主页面的样式不会污染组件,组件的样式也不会影响到你现有的应用布局。

Reviews and Ratings

Rate the tool
Please select

Loading comments…

5 条全网公开评论
JeelVankhede 2026-06-26 English
Show HN: Persona.js – a vanilla-JS agent UI library with native WebMCP (MIT):I really appreciate your work since I was looking for something similar, couldn't find any and eventually thought of making something of my own to integrate into my ongoing project! Your solution is well advanced and provides lot of thing out of the box. Loved it!
aloopintolife 2026-06-21 English
Show HN: Persona.js – a vanilla-JS agent UI library with native WebMCP (MIT):Ah I think I get it. I am more using Claude Code to do frontend design as a replacement for Figma when I’m designing products. Not really working on agent ui. Sounds like this wouldn’t really be a match for what I need. Thanks though!
becomevocal 2026-06-20 English
Show HN: Persona.js – a vanilla-JS agent UI library with native WebMCP (MIT):IMO there's a lot more we can do around hooking into the DOM directly, with more efficient data formats over the wire, before we absolutely need WASM We'd like to experiment more with this but haven't got their yet. Just some internal prototyping
sirjonathan 2026-06-20 English
Show HN: Persona.js – a vanilla-JS agent UI library with native WebMCP (MIT):Love seeing more vanilla projects and tooling around standards. Long live the web. Edit: I’ve been thinking about offering an overlay UI for a web based game and this could be a good fit for that. I’ll give it a spin later and let y’all know.
bookernath 2026-06-20 English
Show HN: Persona.js – a vanilla-JS agent UI library with native WebMCP (MIT):Do you think the new WASI 0.3 stuff will help? I hope so. I'm always super impressed when I see an awesome WASM + WebGPU implementation that doesn't spin up my laptop fan. For canvas/WASM-style apps, I actually think explicit agent-facing APIs become even more important.

Real member comments will be publicly displayed after review. No duplicate responses will be included in the scoring.

Explore related topics & tools

More Similar Tools

AI Office

DeepL

★ 4.4

An AI tool known for high-quality translation and rewriting, suitable for cross-language conten

Translation and writing assistantDetails →
AI Office

Otter.ai

★ 4.4

A sophisticated meeting assistant with real-time transcription, summarization, and action item

Meeting transcripts and summariesDetails →
AI Office

Hermes-Agent

An open source autonomous agent framework that supports growing, learning, and automating tasks

Details →
AI Office

JamGPT

Jam simplifies bug reporting with automated data capture and team integration.

Details →
AI Office

Apify

Apify is a complete platform for web scraping, data extraction, and automation.

Details →

Security verification

Please complete the verification before proceeding.