
Persona.js adds a lightweight AI assistant UI to regular websites
Persona.js is a library for adding an interface to a website. It works with plain , so it does not require React or another front-end framework. The first visible load is about 15 kilobytes, and the full widget loads only after the user first opens it.
It supports WebMCP, which lets the assistant use page features such as search, carts, bookings, and forms. The assistant asks for user approval before it runs those page actions. The server side is flexible because Persona can connect to different backends through SSE.
The examples cover a setup, OpenAI Agents, Vercel AI SDK, .js, Hono, Express, and SvelteKit. It is released under the , which makes it practical for personal and commercial projects.
Key points
- Persona.js adds an widget to websites using plain .
- It does not require React or another front-end framework.
- WebMCP lets the assistant use page features like search, carts, bookings, and forms.
- The assistant is designed to ask before running page actions.
- Examples are available for OpenAI Agents, Vercel AI SDK, .js, Hono, Express, and SvelteKit.