page-agent 1.2.0 β 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -39
- package/dist/iife/page-agent.demo.js +37 -36
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Page Agent
|
|
2
2
|
|
|
3
3
|
<picture>
|
|
4
4
|
<source media="(prefers-color-scheme: dark)" srcset="https://img.alicdn.com/imgextra/i4/O1CN01qKig1P1FnhpFKNdi6_!!6000000000532-2-tps-1280-256.png">
|
|
@@ -9,28 +9,33 @@
|
|
|
9
9
|
|
|
10
10
|
The GUI Agent Living in Your Webpage. Control web interfaces with natural language.
|
|
11
11
|
|
|
12
|
-
π **English** | [δΈζ](./README-zh.md)
|
|
12
|
+
π **English** | [δΈζ](./docs/README-zh.md)
|
|
13
13
|
|
|
14
|
-
π <a href="https://alibaba.github.io/page-agent/" target="_blank"><b>π Demo</b></a> | <a href="https://alibaba.github.io/page-agent
|
|
14
|
+
π <a href="https://alibaba.github.io/page-agent/" target="_blank"><b>π Demo</b></a> | <a href="https://alibaba.github.io/page-agent/docs/introduction/overview" target="_blank"><b>π Documentation</b></a>
|
|
15
15
|
|
|
16
|
-
<video id="demo-video" src="https://github.com/user-attachments/assets/
|
|
16
|
+
<video id="demo-video" src="https://github.com/user-attachments/assets/11aed429-b69c-49d5-8982-fa99b4a0e9a8" controls crossorigin muted></video>
|
|
17
17
|
|
|
18
18
|
---
|
|
19
19
|
|
|
20
20
|
## β¨ Features
|
|
21
21
|
|
|
22
|
-
- **π― Easy
|
|
23
|
-
- No
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
22
|
+
- **π― Easy integration**
|
|
23
|
+
- No need for `browser extension` / `python` / `headless browser`.
|
|
24
|
+
- Just in-page javascript. Everything happens in your web page.
|
|
25
|
+
- The best tool for your agent to control web pages.
|
|
26
|
+
- **π Text-based DOM manipulation**
|
|
27
|
+
- No screenshots. No OCR or multi-modal LLMs needed.
|
|
28
|
+
- No special permissions required.
|
|
29
|
+
- **π§ Bring your own LLMs**
|
|
30
|
+
- **π¨ Pretty UI with human-in-the-loop**
|
|
31
|
+
- **π Optional [chrome extension](https://alibaba.github.io/page-agent/docs/features/chrome-extension) for multi-page tasks.**
|
|
28
32
|
|
|
29
|
-
|
|
33
|
+
## π‘ Use Cases
|
|
30
34
|
|
|
31
|
-
-
|
|
32
|
-
|
|
33
|
-
|
|
35
|
+
- **SaaS AI Copilot** β Ship an AI copilot in your product in lines of code. No backend rewrite needed.
|
|
36
|
+
- **Smart Form Filling** β Turn 20-click workflows into one sentence. Perfect for ERP, CRM, and admin systems.
|
|
37
|
+
- **Accessibility** β Make any web app accessible through natural language. Voice commands, screen readers, zero barrier.
|
|
38
|
+
- **Multi-page Agent** β Extend your agent's reach across browser tabs with the optional [chrome extension](https://alibaba.github.io/page-agent/docs/features/chrome-extension).
|
|
34
39
|
|
|
35
40
|
## π Quick Start
|
|
36
41
|
|
|
@@ -39,19 +44,15 @@ And π
|
|
|
39
44
|
Fastest way to try PageAgent with our free Demo LLM:
|
|
40
45
|
|
|
41
46
|
```html
|
|
42
|
-
<script
|
|
43
|
-
src="https://cdn.jsdelivr.net/npm/page-agent@1.2.0/dist/iife/page-agent.demo.js"
|
|
44
|
-
crossorigin="true"
|
|
45
|
-
></script>
|
|
47
|
+
<script src="{URL}" crossorigin="true"></script>
|
|
46
48
|
```
|
|
47
49
|
|
|
48
|
-
> - **β οΈ For technical evaluation only.** Demo LLM has rate limits and usage restrictions. May change without notice.
|
|
49
|
-
> - **π· Bring your own LLM API.**
|
|
50
|
-
|
|
51
50
|
| Mirrors | URL |
|
|
52
51
|
| ------- | ---------------------------------------------------------------------------------- |
|
|
53
|
-
| Global | https://cdn.jsdelivr.net/npm/page-agent@1.
|
|
54
|
-
| China | https://registry.npmmirror.com/page-agent/1.
|
|
52
|
+
| Global | https://cdn.jsdelivr.net/npm/page-agent@1.4.0/dist/iife/page-agent.demo.js |
|
|
53
|
+
| China | https://registry.npmmirror.com/page-agent/1.4.0/files/dist/iife/page-agent.demo.js |
|
|
54
|
+
|
|
55
|
+
> **β οΈ For technical evaluation only.** This demo CDN uses our free [testing LLM API](https://alibaba.github.io/page-agent/docs/features/models#free-testing-api). By using it, you agree to its [terms](https://github.com/alibaba/page-agent/blob/main/docs/terms-and-privacy.md).
|
|
55
56
|
|
|
56
57
|
### NPM Installation
|
|
57
58
|
|
|
@@ -63,8 +64,8 @@ npm install page-agent
|
|
|
63
64
|
import { PageAgent } from 'page-agent'
|
|
64
65
|
|
|
65
66
|
const agent = new PageAgent({
|
|
66
|
-
model: '
|
|
67
|
-
baseURL: 'https://
|
|
67
|
+
model: 'qwen3.5-plus',
|
|
68
|
+
baseURL: 'https://dashscope.aliyuncs.com/compatible-mode/v1',
|
|
68
69
|
apiKey: 'YOUR_API_KEY',
|
|
69
70
|
language: 'en-US',
|
|
70
71
|
})
|
|
@@ -72,25 +73,13 @@ const agent = new PageAgent({
|
|
|
72
73
|
await agent.execute('Click the login button')
|
|
73
74
|
```
|
|
74
75
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
PageAgent adopts a simplified monorepo structure:
|
|
78
|
-
|
|
79
|
-
```
|
|
80
|
-
packages/
|
|
81
|
-
βββ core/ # ** Core agent logic without UI(npm: @page-agent/core) **
|
|
82
|
-
βββ page-agent/ # Exported agent and demo(npm: page-agent)
|
|
83
|
-
βββ llms/ # LLM client (npm: @page-agent/llms)
|
|
84
|
-
βββ page-controller/ # DOM operations & Visual Mask (npm: @page-agent/page-controller)
|
|
85
|
-
βββ ui/ # Panel & i18n (npm: @page-agent/ui)
|
|
86
|
-
βββ website/ # Demo & Documentation site
|
|
87
|
-
```
|
|
76
|
+
For more programmatic usage, see [π Documentations](https://alibaba.github.io/page-agent/docs/introduction/overview).
|
|
88
77
|
|
|
89
78
|
## π€ Contributing
|
|
90
79
|
|
|
91
80
|
We welcome contributions from the community! Follow our instructions in [CONTRIBUTING.md](CONTRIBUTING.md) for environment setup and local development.
|
|
92
81
|
|
|
93
|
-
Please read [Code of Conduct](CODE_OF_CONDUCT.md) before contributing.
|
|
82
|
+
Please read [Code of Conduct](docs/CODE_OF_CONDUCT.md) before contributing.
|
|
94
83
|
|
|
95
84
|
## π Acknowledgments
|
|
96
85
|
|