Skip to content

Libraries · mastra-cloudflare and Beholder, on npm

Open-source agent libraries

The libraries under our agents, open source on npm: @rubrion/mastra-cloudflare runs Mastra agents on Cloudflare Workers, and Beholder puts an assistant inside any app, from the agent Worker to the React chat.

View on npmTry the demoBuilt by Rubrion

The problem

Every agent we built started with the same plumbing: an API the chat clients understand, memory, routing between agents, identity, budgets and a chat UI. Rewriting it per project was slow and left each one slightly different.

What we built

Two layers. @rubrion/mastra-cloudflare (GPL-3.0) is the base: agents as config, an OpenAI-compatible server with streaming, a planner across agents, Mastra memory on D1, Workers AI or any OpenAI-compatible model, and opt-in tools to read files, browse and run background jobs. Beholder (MIT) builds on it for in-app assistants: @rubrion/beholder-server adds the agent Worker and a gateway that decides who may ask, with budgets and plans; @rubrion/beholder-react adds the floating chat, the full assistant screen and the Beholder mascot. They power rubry.ai, Gestus and Equânime.