
Lightweight, open-source AI chat UI library. Framework-free, backend-agnostic, WebMCP-native. Add streaming chat, voice & copilot to any website.

Persona.js empowers developers to build agentic front-end experiences for the web using pure JavaScript. This lightweight, extensible library is WebMCP-native and runs seamlessly on any stack with any SSE backend, making AI-powered chat interfaces accessible without framework lock-in.
Zero Framework Dependencies: Built entirely in VanillaJS, Persona.js drops into any existing codebase without requiring React, Vue, or Angular, minimizing bundle size and integration complexity.
Flexible Layout Modes: Switch effortlessly between floating corner launchers, docked copilots, or fullscreen assistants by simply changing the launcher config—no agent or application refactoring required.
Style Isolation Guaranteed: Shadow DOM rendering with prefixed CSS ensures complete separation between widget and host styles, preventing CSS leakage in either direction.
Universal Backend Compatibility: SSE streaming with pluggable parsers supports any backend architecture; use customFetch and parseSSEEvent to adapt any request or event shape without vendor constraints.
WebMCP-Native Integration: Automatically discovers page tools registered in document.modelContext, enabling agents to operate search, carts, bookings, and forms directly with built-in user approval workflows.
Production-Ready Theming: Three-layer token system (palette, semantic, component) with dark mode support and a live theme editor ensures brand consistency without forking the widget.
AI Customer Support Widgets: Deploy floating chat assistants on documentation sites or SaaS platforms that can search knowledge bases, submit tickets, and guide users through troubleshooting workflows.
E-Commerce Copilots: Enable docked shopping assistants that interact with product catalogs, manage carts, and process bookings using existing page JavaScript without backend rewrites.
Developer Tool Integrations: Embed fullscreen coding assistants that execute CLI commands, search repositories, and manipulate IDE interfaces through WebMCP tool exposure.
Persona.js is designed for frontend developers, product engineers, and technical teams seeking to add conversational AI interfaces to existing web applications without framework migration or complex backend overhauls. It serves organizations prioritizing lightweight, maintainable agent UIs that preserve design system integrity and backend flexibility.












