The AI helper that lives inside your web page
agent37.club
Imagine you want a robot to fill out a long form on a website for you. Today you need:
That is a lot of moving parts just to click some buttons!
Page Agent is a tiny JavaScript library you drop into any web page. It reads the page, talks to an AI model, and clicks buttons / fills forms for you.
No extensions. No Python. No hidden browser. Just JavaScript.
Like hiring a remote assistant who sits in another building, watches your screen through a camera, and tells a robot arm where to click.
Slow, fragile, lots of wiring.
Like giving your web page a tiny brain that already knows where every button is. You just tell it what you want in plain English.
Fast, simple, already "inside."
Then it loops back to step 1 until the task is done.
Many browser agents take a screenshot and send it to a vision model. Page Agent does something smarter:
Big image, needs a vision model, expensive, slow
Small text description of the DOM, any LLM works, fast and cheap
Since it lives inside the page, it can read the HTML directly. No need to "look" at pixels.
// 1. Create the agent const agent = new PageAgent({ model: 'qwen3.5-plus', apiKey: 'YOUR_KEY', language: 'en-US', }) // 2. Tell it what to do await agent.execute('Click the login button')
That is it. The agent reads the page, figures out where the login button is, and clicks it.
| Package | What it does (simply) |
|---|---|
| core | Shared building blocks everyone uses |
| page-agent | The main brain that orchestrates everything |
| page-controller | Reads the page and performs actions (click, type, scroll) |
| llms | Talks to AI models (bring your own!) |
| ui | The pretty chat panel you see on screen |
| extension | Optional Chrome extension for multi-tab tasks |
| mcp | Model Context Protocol support (tool use) |
A tiny AI brain that lives in your web page
github.com/alibaba/page-agent
12.9k stars · TypeScript · MIT License
agent37.club