@aralroca/gui-agent weekly downloads statistics
By aralroca · npm · MCP servers
An open-source WebMCP-powered in-page GUI agent. Let a natural-language agent live inside your web app and drive its UI — no script injection, no browser extension, no headless browser.
@aralroca/gui-agent has 3,070 recorded weekly downloads on npm, a decrease of 64.2% over the past 30 days, ranking #1726 of 3,247 tracked listings.
About @aralroca/gui-agent
Inspired by page-agent, but built on the emerging WebMCP standard via a polyfill.
- 📦 Just an npm package.
npm i @aralroca/gui-agentandimport. No script injection, no browser extension, no headless browser. - 🧩 Standards-based. Tools are registered on
document.modelContext(WebMCP). The polyfill (@mcp-b/webmcp-polyfill) installs it where browsers don't natively support it yet. - 🎯 Producer + consumer in one. Expose your app's actions as precise tools and fall back to text-based DOM driving for everything else.
- 🧠 Bring your own LLM. A tiny provider-agnostic interface, plus a ready-made Vercel AI SDK adapter.
- 🪶 Headless core. No UI imposed — wire it to your own chat, command bar, or voice.
- ✨ Opt-in visualizer. Status chips per action, an animated gradient glow around the element being acted on, and a backdrop blur that spotlights it (
@aralroca/gui-agent/ui).
⚠️ Early/experimental. WebMCP is a moving W3C draft; APIs may change.
Thinking is cheap. But what if your agents didn't have to think so much—and instead had TOTAL CONTROL of your app (AUTOMATICALLY)? Take a look Janux Framework for more than gui-agent lib
Table of Contents
Install
npm i @aralroca/gui-agent
# optional peers, depending on what you use:
npm i ai zod # for the AI SDK adapter / Zod schemas
Quick start
import { defineTool, GuiAgent } from "@aralroca/gui-agent";
import { createAiSdkLlm } from "@aralroca/gui-agent/ai-sdk";
// 1. Expose your app's actions as tools (producer side, optional).
defineTool({
name: "go_to_tab",
description: "Switch the console to a tab.",
inputSchema: { type: "object", properties: { tab: { type: "string" } }, required: ["tab"] },
annotations: { readOnlyHint: true },
execute: ({ tab }) => router.push(`/${tab}`),
});
// 2. Run the agent. It discovers your tools + synthesizes DOM tools (click/fill/read).
const agent = new GuiAgent({
llm: createAiSdkLlm({ model: "anthropic/claude-opus-4-8" }),
confirm: async (call) => window.confirm(`Allow "${call.name}"?`), // HITL gate
});
await agent.run("Invite jane@acme.com to the team as admin");
Importing the package installs the WebMCP polyfill automatically — no <script> tag.
How it works
gui-agent unifies two approaches:
- Producer (WebMCP). Your app calls
defineTool(...)to register reliable, structured actions ondocument.modelContext. Any WebMCP agent — including a browser's native one — can use them. - DOM fallback (page-agent style). For anything not exposed, the agent builds a compact text snapshot of the page (roles, labels, values, stable refs like
e7) and gets synthesizedread_page/click/fill/select_option/drag/wait_for_texttools. No screenshots, no multimodal model needed.
The built-in loop discovers all available tools, asks your LLM what to do, runs the calls (gated by your optional confirm), feeds results back, and repeats until done.
How the agent picks a tool
For each step the agent prefers a purpose-built WebMCP tool if one fits, and only infers the DOM when nothing is exposed for the job:…
Description from the npm listing.
- webmcp
- mcp
- agent
- gui-agent
- ai
- llm
- browser
- automation
- model-context
- page-agent
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (170)Similar npm MCP servers plugins
All 20 @aralroca/gui-agent alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@aralroca/gui-agent. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.