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.
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.
The libraries

Mastra on Cloudflare
Open-source agent library, on npm
Mastra agents on Cloudflare Workers without the boilerplate: an OpenAI-compatible agent server with routing, memory in D1 and model helpers. npm install @rubrion/mastra-cloudflare; it powers rubry.ai and the rubry template.
AI agents

Beholder
Open-source agent kit for in-app assistants, on npm
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.
AI agents
More work
All work
Advogue
Law firm website template
A 17-page bilingual law-firm site with digit-roller counters, a page wipe and a scripted intake chat.
Websites

Animally
Veterinary clinic website template
Our vet clinic template, live for Animally: a vet in São Carlos who visits exotic and household pets at home, with booking, emails and a chat.
Websites

Brad
Marketing agent on WhatsApp
A B2B marketing agent that writes briefs, social posts and on-brand banners from a WhatsApp chat.
AI agents