AI Developer Tools
Persona
An open-source Agent UI library in VanillaJS for building agentic front-end experiences with WebMCP, SSE streaming, and customizable theming.
Persona
What is Persona?
Persona is an open-source, lightweight JavaScript library for creating agentic user interfaces (chat UIs) for AI agents. It supports floating, docked, or fullscreen layouts, integrates with any SSE backend, and uses WebMCP to let agents use page tools. It is framework-agnostic and includes Shadow DOM isolation, theming, and pluggable parsers.
Persona vs Similar AI Tools
| Pricing Model | Free | Free | Custom Pricing | Free, Paid |
| Free Credits | ||||
| Key Features |
|
|
|
|
| Pros |
|
|
|
|
| Cons |
|
|
|
|
| Best For |
|
|
|
|
How to use Persona?
- 1Install via npm: npm install @runtypelabs/persona
- 2Import CSS: import '@runtypelabs/persona/widget.css'
- 3Import initAgentWidget: import { initAgentWidget } from '@runtypelabs/persona'
- 4Initialize widget with a target element and config (API URL):
- 5initAgentWidget({ target: '#chat', config: { apiUrl: 'https://your-api.com/chat' } })
- 6Customize launcher type (floating, docked, fullscreen) via config option.
Persona Key Features
- WebMCP-native: agents can use tools registered on the page via document.modelContext
- Shadow DOM rendering for style isolation
- SSE streaming with pluggable parsers and customFetch
- Three-layer token theming (palette, semantic, component) with dark mode and live editor
- Floating, docked, or fullscreen UX modes
- Pluggable transport and parser adapters
Persona Use Cases
- Customer support chat widget
- AI copilot for existing web applications
- Onboarding assistant for new users
- Documentation Q&A agent
- E-commerce assistant for product search and bookings
Persona Pricing & Free Credits
Persona currently operates on a Free model.
This tool is completely free to use
Persona Pros & Cons
Pros
- Lightweight and framework-agnostic (pure VanillaJS)
- WebMCP standard enables agents to use existing page tools
- Shadow DOM isolates styles from host application
- Pluggable transport and parsers work with any SSE backend
- Comprehensive theming system for brand customization
Cons
- Documentation and examples are still growing
- Requires a backend SSE endpoint for full functionality
What is Persona best for?
- Developers building custom AI agent UIs
- Teams wanting to integrate agent chat into existing web apps
- Projects needing a lightweight, extensible chat widget