Persona.js is live · free · last verified 29 Nov 2026 · viability healthy
Persona.js
MIT-licensed vanilla JS library that mounts an agentic chat UI on any web page, backed by your own SSE endpoint.
If owning the agent UI layer matters to you, Persona.js earns its place: MIT-licensed, framework-free, and it talks to whatever SSE backend you already run via config.apiUrl. The WebMCP tool registration (document.modelContext.registerTool) with a built-in approval prompt, plus Shadow DOM isolation and the three-layer token tree, are the concrete reasons to take it over a hand-rolled chat shell or a hosted bot widget. The pre-built examples for Vercel AI SDK, OpenAI Agents SDK, LangGraph.js, Hono, Express and SvelteKit shorten day one considerably. Skip it if you want hosting, model routing, and conversation storage included — Persona deliberately leaves all three behind your URL.
Verdict generatedVerified 3d ago · liveness 75/100 · cite: rightaichoice.com/tools/persona-js
- JavaScript developers adding agentic chat to an existing site
- Front-end teams that already run an SSE backend and need only the UI layer
- Products where the agent must operate page UI, not just answer questions
- Teams needing strict CSS isolation for a widget dropped into a styled app
- Teams that want a fully hosted chat service with no backend of their own
- Projects requiring native iOS or Android SDK components
- Non-developers who can't edit JavaScript or wire an SSE endpoint
We scan public community discussion about Persona.js and hand you an honest verdict, or say plainly when we cannot tie the posts to this tool.
- Honest verdict, not marketing
- Real pros & cons from real users
- Attributed quotes with receipts
Free scans included · no card needed
Skip Persona.js if you want a hosted assistant with model routing, conversation storage, and analytics included, or if you can't run or adapt an SSE endpoint behind your chat UI.
Keeping your own SSE backend means you carry the hosting, token handling, and conversation storage costs Persona.js deliberately leaves out.
The library itself is MIT-licensed and installs from npm or a CDN script tag, so the real cost is engineering time, not licence fees. That suits a front-end team already running an SSE endpoint better than a hosted chat subscription, but it costs more than a drop-in hosted widget if you have no backend to point at.
In short
Persona.js — MIT-licensed vanilla JS library that mounts an agentic chat UI on any web page, backed by your own SSE endpoint. Best for JavaScript developers adding agentic chat to an existing site, Front-end teams that already run an SSE backend and need only the UI layer, Products where the agent must operate page UI, not just answer questions. Free to use.
What is Persona.js?
Persona.js — MIT-licensed vanilla JS library that mounts an agentic chat UI on any web page, backed by your own SSE endpoint. Best for JavaScript developers adding agentic chat to an existing site, Front-end teams that already run an SSE backend and need only the UI layer, Products where the agent must operate page UI, not just answer questions. Free to use.
Persona.js is a front-end widget library for putting an agentic chat interface onto a web page without adopting a hosted chat product. It's written in plain JavaScript, so it mounts into React, Vue, Svelte, or a bare HTML file the same way: import "@runtypelabs/persona/widget.css", import initAgentWidget from "@runtypelabs/persona", call initAgentWidget({ target: "#chat", config: { apiUrl: "https://your-api.com/chat" } }), and point apiUrl at the SSE endpoint you already run. You can also install it from a CDN script tag (install.global.js) with window.siteAgentConfig, or via npm install @runtypelabs/persona. Layout is configuration, not code. You get a floating corner launcher as the drop-in default, a docked side panel that resizes, pushes, or overlays a wrapped page region (launcher: { mountMode: "docked", dock: { side: "right", width: "420px" } }), and a fullscreen assistant with the launcher turned off and fullHeight on, including an optional artifact split. You move between the three by changing launcher config, not your agent or app. The capability that separates it is WebMCP. Page actions get registered as tools through document.modelContext.registerTool({ name: "search_products", ... }), Persona discovers them, asks the user before each call, and streams the result back into the conversation. Search, carts, bookings, and form fills stay in your page code, and those page tools need no backend integration. Visual work is isolated too: Shadow DOM rendering plus prefixed CSS keep host and widget styles apart, and a three-layer token tree (palette, semantic, component) with dark mode and a live theme editor handles branding without forking the widget. Transport is SSE with pluggable parsers; customFetch and parseSSEEvent bend the widget to whatever request or event shape your backend speaks. Ready-made examples cover a bare script tag over a node:http backend, Vercel AI SDK (plus an AI SDK + WebMCP variant and minimal AI SDK/OpenAI Responses adapters), OpenAI Agents SDK, LangGraph.js, Hono, Express, SvelteKit, and a Vercel eve agent backend (beta). The Runtype CLI (npx @runtypelabs/cli@latest persona init) creates an agent, mints a client token, and prints a paste-ready installer snippet, but Runtype is a fast path rather than a dependency. Positioned against hosted chat SaaS, Persona.js gives you the interface and leaves the server, hosting, and token handling with you.
Key features
- Vanilla JS agent UI library with no framework dependency
- Install via npm install @runtypelabs/persona or the install.global.js CDN script tag
- Floating launcher, docked side panel, and fullscreen assistant layouts, switched by launcher config
- Docked panel with configurable side and width that resizes, pushes, or overlays a wrapped page region
- WebMCP page tools via document.modelContext.registerTool
- User approval prompt before each agent tool call
- Page actions (search, carts, bookings, forms) driven without backend integration
- SSE streaming with pluggable parsers
- customFetch and parseSSEEvent hooks for custom request and event shapes
- Shadow DOM rendering with prefixed CSS for style isolation
- Three-layer theme token tree (palette, semantic, component) with dark mode
- Live theme editor for matching brand without forking the widget
- Fullscreen layout with optional artifact split
- Voice integration demo and phone agent demo
- Runtype CLI setup with npx @runtypelabs/cli@latest persona init, printing a paste-ready installer snippet
Behind the verdict
Persona.js is best understood as a rendering and interaction layer, not a chat product. The npm package and the CDN install.global.js script both mount the real widget and hand streaming off to an apiUrl that you control. That single design decision explains both what you get and what you don't: you get to keep your backend, your tokens, your hosting, and your conversation data; you also get to operate all of them. The strongest technical argument is WebMCP. You register page actions as tools — document.modelContext.registerTool({ name: "search_products", ... }) — and Persona discovers them, asks the user before each call, and streams results back into the conversation. That means search, carts, bookings and form fills are driven by code already in your page, with no backend integration for those page tools. For products where the agent must actually operate the UI rather than just answer questions, this is the difference between a chat box and a copilot. The demo set (WebMCP Storefront, WebMCP Calendar, WebMCP Slides) shows the pattern concretely rather than describing it. The second argument is that dropping a widget into a styled app usually breaks something. Shadow DOM rendering plus prefixed CSS keeps host and widget styles separate in both directions, and the theme system — a three-layer token tree of palette, semantic and component tokens, with dark mode and a live theme editor — lets you match brand without forking. That combination is more than most chat widgets offer at the theming layer. Layouts are config, not rewrites: floating launcher by default, docked panel via launcher.mountMode "docked" with dock.side and dock.width, and fullscreen via launcher.enabled false plus fullHeight, with an optional artifact split. Because you switch by changing the launcher config, the same agent and app work across all three. On transport, SSE streaming with pluggable parsers is the model, and customFetch plus parseSSEEvent handle unusual request or event shapes. In practice that means your backend contract is the constraint, not Persona's. Where it doesn't fit: it is a client-side library, so it does not provide backend hosting, model routing, or conversation storage — you own everything behind apiUrl. It installs as a web asset and the sources document web-only usage with no native mobile SDK. The Runtype CLI is a convenience for minting an agent and client token and getting a paste-ready snippet; treat it as a fast path, not a requirement, since the library works against any SSE backend. Who should take it: JavaScript and front-end teams that already run an SSE endpoint and need the interface layer, teams that need strict CSS isolation for a widget in a styled app, and builders of copilot or fullscreen assistant experiences where page actions matter. Who shouldn't: teams wanting a fully hosted chat service, projects needing native iOS or Android components, non-developers, or buyers expecting built-in analytics dashboards and bot management.
Limitations
- Persona.js is a client-side UI library that points at your own SSE backend via config.apiUrl; it does not provide backend hosting, model routing, or conversation storage — you own everything behind that URL.
- It installs as a web asset (npm package @runtypelabs/persona or the install.global.js CDN script), and the sources document web-only usage with no native mobile SDK.
- Your backend must speak SSE or be adaptable through customFetch and parseSSEEvent.
- Theming, layouts, and brand matching are configuration you write yourself, and WebMCP tool behavior depends on page code you register.
as of 2026-11-04
Researching Persona.js? Get your full AI stack in 60 seconds.
Free, no signup — tell us your goal and get tools matched to your budget & existing stack.
Is Persona.js still active?
Persona.js is live · free · last verified 29 Nov 2026 · viability healthy.
Viability score
How well maintained and how widely used is Persona.js? Built from what the vendor actually publishes (docs, changelog, tutorials, integrations, pricing), whether the site is live, and how much real users discuss it. How we calculate this
Last calculated: December 2026
How we score →What do users say about Persona.js?
What people actually say about Persona.js — is it worth it?
We ran a structured research pass across product reviews, community discussions, and post-purchase forum threads to surface the patterns vendors won't publish themselves. Below: the recurring strengths, the hidden costs people mention most, and the cohort that consistently regrets adopting this tool.
ResearchedDiscussed by users across 3 sources (Hacker News, Product Hunt, Lemmy) · researched Oct 19, 2026.
Weighted by the 18 posts each of 3 sources contributed.
- +Native WebMCP support lets the agent actually drive the page via registered tools
- +Framework-free vanilla JS mounts cleanly into React, Vue, Svelte, or plain HTML
- +Three layout modes are switched through config rather than code changes
- +Shadow DOM plus prefixed CSS keeps widget styles separate from host styles
- +Pluggable SSE parsers and customFetch adapt any request or event shape
- −Every tool schema rides in context each turn, so large tool sets burn tokens
- −Safety relies on developers correctly tagging tools read-only versus mutative
- −No backend or hosting included — you supply streaming, auth context, and uptime
- −Tool-call preview, undo, and audit trails are requested but not clearly shipped
- −Model can plan a tool call that silently vanishes when page state changes
- • You pay for your own backend hosting and LLM inference
- • Token costs rise with the number of registered tools per page
How we verified this
Every listed fact about Persona.js — pricing, features, links, status — is re-read from the vendor's own pages by our verification pipeline and each change is logged with a date; the last pass ran on 29 Nov 2026. Analysis is drafted with AI models and checked against our editorial standards before publishing; see how we verify.
Verification history
We have re-verified Persona.js 17 times since . Each pass re-reads the vendor's own pages and re-checks every listed field against that evidence; passes where nothing had changed are marked as such.
- — changed SSL certificate
- — changed who should skip it, switching out, switching in, limitations, use cases, integrations, summary, our verdict, pricing fit, description, features, hidden costs, setup time
- — changed limitations
- — changed who should skip it, features, our verdict, who it suits, summary, integrations, pricing tiers, description
- — changed pricing page
- — changed features, who it suits, description, our verdict, who should skip it, pricing tiers, summary
Showing the 6 most recent of 17 verification passes.
Free to cite with attribution — this page re-verifies continuously.
How much does Persona.js cost in 2026?
Persona.js: Free to use. Pricing last verified 29 Nov 2026.
12-month cost
Project the real annual outlay, including the implied monthly cost when only an annual tier is published.
Prices as the vendor publishes them, including any current offer. Add-on usage, seat overages, and contract minimums are surfaced under Hidden costs & gotchas.
Where the pricing makes sense
The company stage and team size where Persona.js's pricing actually pencils out — and where peers do it cheaper.
The library itself is MIT-licensed and installs from npm or a CDN script tag, so the real cost is engineering time, not licence fees. That suits a front-end team already running an SSE endpoint better than a hosted chat subscription, but it costs more than a drop-in hosted widget if you have no backend to point at.
Has Persona.js' pricing changed?
No plan price for Persona.js has moved since we began tracking it in Aug 2026; the pricing page is re-read on every verification pass.
Who should pick Persona.js?
Pick Persona.js if you are JavaScript developers adding agentic chat to an existing site, Front-end teams that already run an SSE backend and need only the UI layer, Products where the agent must operate page UI, not just answer questions, Teams needing strict CSS isolation for a widget dropped into a styled app.
Look elsewhere if you are Teams that want a fully hosted chat service with no backend of their own, Projects requiring native iOS or Android SDK components, Non-developers who can't edit JavaScript or wire an SSE endpoint, Buyers expecting built-in analytics dashboards and bot management.
Skip it if Skip Persona.js if you want a hosted assistant with model routing, conversation storage, and analytics included, or if you can't run or adapt an SSE endpoint behind your chat UI.
GeneratedReal-world workflow fit
Concrete scenarios for the personas Persona.js actually fits — and what changes day-one when you adopt it.
You already run an SSE chat endpoint. You import the stylesheet, call initAgentWidget({ target: "#chat", config: { apiUrl: "https://your-api.com/chat" } }), and keep the default floating launcher.
Outcome: A branded floating support launcher on your site with your own backend, tokens, and hosting untouched.
You point target at the workspace column, set launcher.mountMode "docked" with dock side right and width 420px, and register page actions like search_products through document.modelContext.registerTool.
Outcome: A side panel copilot that resizes beside your app and drives page actions with a user approval prompt before each tool call.
Your stream isn't a standard SSE shape, so you supply customFetch and parseSSEEvent, and start from the Hono or Express example as a reference.
Outcome: The widget renders your existing stream without changing your backend, and you move between floating, docked, and fullscreen by editing launcher config only.
Use cases
- Add a floating support or onboarding launcher to a SaaS site with initAgentWidget and one apiUrl.
- Wrap a page region with a docked copilot panel that resizes or overlays beside your app.
- Run a fullscreen assistant as the app surface, with an optional artifact split and no launcher.
- Register page actions as WebMCP tools so the agent searches, books, or fills forms with user approval.
- Theme the widget to a brand with the three-layer token tree, dark mode, and live editor, without forking.
- Adapt an unusual backend contract with customFetch and parseSSEEvent instead of changing backends.
- Point the same widget at a Vercel AI SDK, OpenAI Agents SDK, or LangGraph.js stream.
- Use the Runtype CLI to create an agent and client token and get a paste-ready installer snippet.
Setup time & first value
How long it actually takes to get something useful out of Persona.js — broken out by persona, not the marketing-page minute.
With an SSE endpoint already running, most developers reach a working floating widget in well under an hour: npm install, import the stylesheet, one initAgentWidget call with apiUrl. Switching to docked or fullscreen is a launcher config edit. If you start from the Vercel AI SDK, OpenAI Agents SDK or LangGraph.js example, allow an afternoon to adapt the backend and theme the token tree.
Switching to or from Persona.js
How to bring data in from common predecessors and how to get it back out — written for the switcher, not the buyer.
- →From a hand-rolled chat shell: replace your message list and input with initAgentWidget pointed at the same apiUrl.
- →From a hosted chat widget: keep your backend, point config.apiUrl at your SSE endpoint, and re-register page actions as WebMCP tools.
- →From Vercel AI SDK examples: clone the AI SDK or AI SDK + WebMCP example and adapt the stream to your app.
- →From a LangGraph.js app: use the LangGraph.js example to stream your graph into the widget.
- ↗To a hosted chat product: your SSE endpoint stays; swap the widget for the vendor's hosted client.
- ↗To a custom React chat UI: reuse your backend contract and port the layout behaviours from launcher config into your component tree.
- ↗To your own WebMCP tool layer: page tools are registered through document.modelContext, so they stay in your page code either way.
Integrations
Tutorials & Learning
YouTube returned 6 videos for “Persona.js”, and we withheld 6: 6 could not be judged, because “Persona.js” is a single word that other videos use for other things. We are showing none, because we could not prove any of them are about Persona.js.
Official links
What are the best Persona.js alternatives?
| Alternative | Pricing | Starts at | Last verified |
|---|---|---|---|
| Voiceflow | Paid | Usage-based | 27 Nov 2026 |
| Wonderchat | Freemium | $32.50/mo billed annually | 29 Nov 2026 |
| Botpress | Freemium | $150/mo billed annually | 26 Nov 2026 |
Popular in Chatbot Builders
Voiceflow
Voiceflow is a visual platform for building, testing and shipping chat and voice AI agents on one canvas.
Wonderchat
Wonderchat builds cited AI customer service and sales agents that deflect tickets and book leads from your own docs, with unlimited
Persona.js vs its closest rival
Persona.js's closest head-to-head is with Spider Cloud — These aren't alternatives, and buyers should stop looking for a winner. Persona.js is the chat surface a developer embeds in an existing page so an agent can drive search, carts, bookings and forms; Spider Cloud is the data pipe that turns arbitrary pages into markdown or JSON for RAG and agent pipelines. The honest read: pick Persona.js when the missing piece is UI plus page-action tooling on your own SSE backend, and pick Spider Cloud when the missing piece is rendered page content at volume. A team could reasonably use both — Spider feeding content, Persona.js presenting it — which is exactly why a head-to-head is the wrong frame. Verdict generated
Head-to-head comparisons
Persona Js vs Spider Cloud
These aren't alternatives, and buyers should stop looking for a winner. Persona.js is the chat surface a developer embeds in an existing page so an agent can drive search, carts, bookings and forms; Spider Cloud is the data pipe that turns arbitrary pages into markdown or JSON for RAG and agent pipelines. The honest read: pick Persona.js when the missing piece is UI plus page-action tooling on your own SSE backend, and pick Spider Cloud when the missing piece is rendered page content at volume. A team could reasonably use both — Spider feeding content, Persona.js presenting it — which is exactly why a head-to-head is the wrong frame.
GeneratedPersona Js vs Temporal Ai
These aren't alternatives — they sit at opposite ends of the stack. Temporal is the durable runtime your long-running agent or workflow logic executes on; Persona.js is a drop-in chat UI you bolt onto a web page while keeping your own backend. A team building a production agent might actually use both: Persona.js rendering the interface and pointing at an SSE endpoint that fronts agents whose reliability Temporal governs. If you're choosing one purchase, you're solving a backend-durability problem (Temporal) or a front-end chat-UI problem (Persona.js) — pick the layer you're actually missing.
GeneratedPersona Js vs Voyage Ai
These aren't alternatives — they sit in different layers of the stack, and most teams would use neither as a substitute for the other. Pick Voyage AI if your RAG answers are failing because retrieval is weak, you need finance/legal/code-tuned embedders, 32K-token context, or 3x–8x shorter vectors to cut vector DB costs. Pick Persona.js if you already have an SSE backend and want an MIT-licensed, framework-free chat widget that can drive page actions via WebMCP with a user approval prompt. The only overlap is 'agent' in the tagline.
GeneratedFrequently asked questions
For makers of Persona.js
- Get a Verified Listing for Persona.js ($39): a written decision within 1 working day.
- Free listing for another tool: Free reviews are decided in order, within 3 weeks of the review starting.
Used Persona.js? Help shape our editorial sentiment research.