Skip to content

Libraries · Open-source agent kit for in-app assistants, on npm

Beholder

An AI assistant you can drop into any Cloudflare app: an agent Worker, a gateway for your API and a React chat that streams the agent’s thinking, tool calls and answer.

The problem

Putting an assistant inside a product means identity, tenants, budgets and a chat UI, and every app was rebuilding them around its agents.

What we built

Extracted from the Cerne assistant into two npm packages: @rubrion/beholder-server (createAgentWorker: Mastra agents with D1 memory, per-tenant context and token cost; createAgentGateway: Hono routes that decide who may ask, with budgets, plans and bring-your-own-key) and @rubrion/beholder-react (a floating ChatBox and a full AssistantScreen, with file attachments the agent reads through the gateway, and the Beholder mascot whose eyes follow the cursor), plus a deployable template behind Cloudflare Access. MIT.