arise-browser 0.1.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/LICENSE +190 -0
- package/README.md +247 -0
- package/deploy/neko/CONTEXT.md +37 -0
- package/deploy/neko/arise-browser.service +13 -0
- package/deploy/neko/neko.yaml +12 -0
- package/deploy/neko/openbox.xml +763 -0
- package/deploy/neko/policies.json +28 -0
- package/deploy/neko/pulseaudio.pa +16 -0
- package/deploy/neko/setup.sh +308 -0
- package/deploy/neko/xorg.conf +118 -0
- package/dist/bin/arise-browser.d.ts +26 -0
- package/dist/bin/arise-browser.d.ts.map +1 -0
- package/dist/bin/arise-browser.js +224 -0
- package/dist/bin/arise-browser.js.map +1 -0
- package/dist/src/browser/action-executor.d.ts +98 -0
- package/dist/src/browser/action-executor.d.ts.map +1 -0
- package/dist/src/browser/action-executor.js +2726 -0
- package/dist/src/browser/action-executor.js.map +1 -0
- package/dist/src/browser/behavior-recorder.d.ts +61 -0
- package/dist/src/browser/behavior-recorder.d.ts.map +1 -0
- package/dist/src/browser/behavior-recorder.js +442 -0
- package/dist/src/browser/behavior-recorder.js.map +1 -0
- package/dist/src/browser/browser-session.d.ts +202 -0
- package/dist/src/browser/browser-session.d.ts.map +1 -0
- package/dist/src/browser/browser-session.js +1647 -0
- package/dist/src/browser/browser-session.js.map +1 -0
- package/dist/src/browser/config.d.ts +43 -0
- package/dist/src/browser/config.d.ts.map +1 -0
- package/dist/src/browser/config.js +59 -0
- package/dist/src/browser/config.js.map +1 -0
- package/dist/src/browser/page-snapshot.d.ts +38 -0
- package/dist/src/browser/page-snapshot.d.ts.map +1 -0
- package/dist/src/browser/page-snapshot.js +241 -0
- package/dist/src/browser/page-snapshot.js.map +1 -0
- package/dist/src/browser/scripts/behavior_tracker.js +424 -0
- package/dist/src/browser/scripts/unified_analyzer.js +1576 -0
- package/dist/src/index.d.ts +15 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +15 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/lock.d.ts +11 -0
- package/dist/src/lock.d.ts.map +1 -0
- package/dist/src/lock.js +47 -0
- package/dist/src/lock.js.map +1 -0
- package/dist/src/logger.d.ts +17 -0
- package/dist/src/logger.d.ts.map +1 -0
- package/dist/src/logger.js +29 -0
- package/dist/src/logger.js.map +1 -0
- package/dist/src/server/middleware/auth.d.ts +6 -0
- package/dist/src/server/middleware/auth.d.ts.map +1 -0
- package/dist/src/server/middleware/auth.js +24 -0
- package/dist/src/server/middleware/auth.js.map +1 -0
- package/dist/src/server/route-utils.d.ts +15 -0
- package/dist/src/server/route-utils.d.ts.map +1 -0
- package/dist/src/server/route-utils.js +33 -0
- package/dist/src/server/route-utils.js.map +1 -0
- package/dist/src/server/routes/action.d.ts +5 -0
- package/dist/src/server/routes/action.d.ts.map +1 -0
- package/dist/src/server/routes/action.js +69 -0
- package/dist/src/server/routes/action.js.map +1 -0
- package/dist/src/server/routes/actions.d.ts +3 -0
- package/dist/src/server/routes/actions.d.ts.map +1 -0
- package/dist/src/server/routes/actions.js +53 -0
- package/dist/src/server/routes/actions.js.map +1 -0
- package/dist/src/server/routes/cookies.d.ts +3 -0
- package/dist/src/server/routes/cookies.d.ts.map +1 -0
- package/dist/src/server/routes/cookies.js +27 -0
- package/dist/src/server/routes/cookies.js.map +1 -0
- package/dist/src/server/routes/download.d.ts +3 -0
- package/dist/src/server/routes/download.d.ts.map +1 -0
- package/dist/src/server/routes/download.js +35 -0
- package/dist/src/server/routes/download.js.map +1 -0
- package/dist/src/server/routes/evaluate.d.ts +3 -0
- package/dist/src/server/routes/evaluate.d.ts.map +1 -0
- package/dist/src/server/routes/evaluate.js +27 -0
- package/dist/src/server/routes/evaluate.js.map +1 -0
- package/dist/src/server/routes/health.d.ts +3 -0
- package/dist/src/server/routes/health.d.ts.map +1 -0
- package/dist/src/server/routes/health.js +11 -0
- package/dist/src/server/routes/health.js.map +1 -0
- package/dist/src/server/routes/navigate.d.ts +3 -0
- package/dist/src/server/routes/navigate.d.ts.map +1 -0
- package/dist/src/server/routes/navigate.js +36 -0
- package/dist/src/server/routes/navigate.js.map +1 -0
- package/dist/src/server/routes/page-model.d.ts +3 -0
- package/dist/src/server/routes/page-model.d.ts.map +1 -0
- package/dist/src/server/routes/page-model.js +22 -0
- package/dist/src/server/routes/page-model.js.map +1 -0
- package/dist/src/server/routes/pdf.d.ts +3 -0
- package/dist/src/server/routes/pdf.d.ts.map +1 -0
- package/dist/src/server/routes/pdf.js +20 -0
- package/dist/src/server/routes/pdf.js.map +1 -0
- package/dist/src/server/routes/recording.d.ts +5 -0
- package/dist/src/server/routes/recording.d.ts.map +1 -0
- package/dist/src/server/routes/recording.js +217 -0
- package/dist/src/server/routes/recording.js.map +1 -0
- package/dist/src/server/routes/screenshot.d.ts +3 -0
- package/dist/src/server/routes/screenshot.d.ts.map +1 -0
- package/dist/src/server/routes/screenshot.js +32 -0
- package/dist/src/server/routes/screenshot.js.map +1 -0
- package/dist/src/server/routes/snapshot.d.ts +3 -0
- package/dist/src/server/routes/snapshot.d.ts.map +1 -0
- package/dist/src/server/routes/snapshot.js +454 -0
- package/dist/src/server/routes/snapshot.js.map +1 -0
- package/dist/src/server/routes/tab-lock.d.ts +3 -0
- package/dist/src/server/routes/tab-lock.d.ts.map +1 -0
- package/dist/src/server/routes/tab-lock.js +30 -0
- package/dist/src/server/routes/tab-lock.js.map +1 -0
- package/dist/src/server/routes/tab.d.ts +3 -0
- package/dist/src/server/routes/tab.d.ts.map +1 -0
- package/dist/src/server/routes/tab.js +47 -0
- package/dist/src/server/routes/tab.js.map +1 -0
- package/dist/src/server/routes/tabs.d.ts +3 -0
- package/dist/src/server/routes/tabs.d.ts.map +1 -0
- package/dist/src/server/routes/tabs.js +13 -0
- package/dist/src/server/routes/tabs.js.map +1 -0
- package/dist/src/server/routes/text.d.ts +3 -0
- package/dist/src/server/routes/text.d.ts.map +1 -0
- package/dist/src/server/routes/text.js +20 -0
- package/dist/src/server/routes/text.js.map +1 -0
- package/dist/src/server/routes/upload.d.ts +3 -0
- package/dist/src/server/routes/upload.d.ts.map +1 -0
- package/dist/src/server/routes/upload.js +38 -0
- package/dist/src/server/routes/upload.js.map +1 -0
- package/dist/src/server/server.d.ts +7 -0
- package/dist/src/server/server.d.ts.map +1 -0
- package/dist/src/server/server.js +69 -0
- package/dist/src/server/server.js.map +1 -0
- package/dist/src/types/index.d.ts +125 -0
- package/dist/src/types/index.d.ts.map +1 -0
- package/dist/src/types/index.js +5 -0
- package/dist/src/types/index.js.map +1 -0
- package/dist/src/virtual-display/manager.d.ts +37 -0
- package/dist/src/virtual-display/manager.d.ts.map +1 -0
- package/dist/src/virtual-display/manager.js +229 -0
- package/dist/src/virtual-display/manager.js.map +1 -0
- package/dist/src/virtual-display/process-runner.d.ts +43 -0
- package/dist/src/virtual-display/process-runner.d.ts.map +1 -0
- package/dist/src/virtual-display/process-runner.js +174 -0
- package/dist/src/virtual-display/process-runner.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +57 -0
- package/plugin/openclaw.plugin.json +148 -0
- package/skill/arise-browser/SKILL.md +275 -0
- package/skill/arise-browser/TRUST.md +42 -0
- package/skill/arise-browser/references/api.md +198 -0
- package/src/browser/scripts/behavior_tracker.js +424 -0
- package/src/browser/scripts/unified_analyzer.js +1576 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by the Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding any notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2026 AriseOS
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<strong>AriseBrowser</strong><br/>
|
|
3
|
+
Browser engine for AI agents.<br/>
|
|
4
|
+
Less tokens. Learns from users and agents. Actually clicks the right thing.<br/>
|
|
5
|
+
Headed mode on servers — watch AI browse in real time via WebRTC.
|
|
6
|
+
</p>
|
|
7
|
+
|
|
8
|
+
<p align="center">
|
|
9
|
+
<a href="https://github.com/AriseOS/arise-browser/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-blue?style=flat-square" alt="License"/></a>
|
|
10
|
+
<img src="https://img.shields.io/badge/Node.js-20+-339933?style=flat-square&logo=node.js&logoColor=white" alt="Node.js 20+"/>
|
|
11
|
+
<img src="https://img.shields.io/badge/Playwright-powered-2EAD33?style=flat-square&logo=playwright&logoColor=white" alt="Playwright"/>
|
|
12
|
+
</p>
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## 1. Headed Mode on Servers — Watch AI Browse Live
|
|
17
|
+
|
|
18
|
+
Most browser automation runs headless — invisible. That's fine until you need to:
|
|
19
|
+
- **Debug why an agent failed** on a page you can't see
|
|
20
|
+
- **Show a client** what the agent is doing in real time
|
|
21
|
+
- **Bypass anti-bot systems** that detect headless mode
|
|
22
|
+
- **Let users intervene** when the agent gets stuck
|
|
23
|
+
|
|
24
|
+
AriseBrowser's **virtual display mode** runs a real headed Chrome on any Linux server — no physical monitor needed. Users connect via WebRTC in their browser and see exactly what the AI sees:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
# Install system dependencies (once, Linux only)
|
|
28
|
+
sudo bash <(curl -fsSL https://raw.githubusercontent.com/AriseOS/arise-browser/main/deploy/neko/setup.sh)
|
|
29
|
+
|
|
30
|
+
# Start with virtual display
|
|
31
|
+
npx arise-browser --virtual-display --host 0.0.0.0
|
|
32
|
+
|
|
33
|
+
# AI agent uses the API as usual
|
|
34
|
+
curl -X POST http://server:9867/navigate -d '{"url":"https://example.com"}'
|
|
35
|
+
|
|
36
|
+
# Users open http://server:6090 in their browser → live view of Chrome
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Behind the scenes, arise-browser spawns and manages: Xvfb (virtual display) → PulseAudio (audio) → Openbox (window manager) → Chrome (CDP) → Neko (WebRTC streaming). One process, no Docker, no supervisord.
|
|
40
|
+
|
|
41
|
+
**Why not just use headless?** Anti-bot systems increasingly fingerprint headless environments. A headed Chrome running on a real X11 display is indistinguishable from a human using a desktop — because it *is* a real desktop environment.
|
|
42
|
+
|
|
43
|
+
## 2. Use Fewer Tokens
|
|
44
|
+
|
|
45
|
+
Every token your agent spends reading a page is money. AriseBrowser gives your agent a **compact accessibility snapshot** instead of raw HTML:
|
|
46
|
+
|
|
47
|
+
- **YAML format** — ~50% fewer tokens than equivalent JSON snapshots
|
|
48
|
+
- **Interactive filter** — Only show actionable elements (buttons, links, inputs). Skip the noise.
|
|
49
|
+
- **Diff mode** — After the first snapshot, only send what changed. On a 10-step workflow, this can cut total snapshot tokens by **70%+**.
|
|
50
|
+
|
|
51
|
+
Your agent sees what it needs to act, nothing more.
|
|
52
|
+
|
|
53
|
+
## 3. Learn Once, Automate Forever
|
|
54
|
+
|
|
55
|
+
AriseBrowser has a built-in **behavior recording** system that captures workflows and exports them as structured traces (Learn protocol). Two ways to teach:
|
|
56
|
+
|
|
57
|
+
### Watch a user work
|
|
58
|
+
|
|
59
|
+
Record a human demonstrating a task — AriseBrowser captures every click, type, scroll, and navigation:
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
User demonstrates: "Book a meeting room on Outlook"
|
|
63
|
+
↓
|
|
64
|
+
AriseBrowser records every click, type, scroll, navigation
|
|
65
|
+
↓
|
|
66
|
+
Export as structured trace (Learn protocol):
|
|
67
|
+
{ task: "book meeting room",
|
|
68
|
+
steps: [
|
|
69
|
+
{ url: "outlook.com/calendar", action: "click", target: "New Event" },
|
|
70
|
+
{ url: "...", action: "type", target: "Title", value: "Team Standup" },
|
|
71
|
+
...
|
|
72
|
+
] }
|
|
73
|
+
↓
|
|
74
|
+
Feed to your agent's memory / skill system
|
|
75
|
+
↓
|
|
76
|
+
Next time: agent does it autonomously
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
This is how agents go from "follow my script" to "I watched you do it, I know how."
|
|
80
|
+
|
|
81
|
+
### Learn from agent execution
|
|
82
|
+
|
|
83
|
+
When your agent completes a task, AriseBrowser can record its actions too. Export the trace and feed it back as a skill — the agent improves with every successful run:
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
Agent completes: "Fill out expense report on SAP"
|
|
87
|
+
↓
|
|
88
|
+
AriseBrowser recorded the entire session
|
|
89
|
+
↓
|
|
90
|
+
Export → Learn protocol trace → store as reusable skill
|
|
91
|
+
↓
|
|
92
|
+
Next time: agent recalls the skill, executes faster, skips exploration
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
No other browser automation tool does recording + structured export out of the box.
|
|
96
|
+
|
|
97
|
+
## 4. Actions That Actually Work
|
|
98
|
+
|
|
99
|
+
Clicking a button sounds simple — until it's inside a custom dropdown, behind an overlay, or opens a new tab. Other tools dispatch a mouse event at coordinates (0,0) and call it a day.
|
|
100
|
+
|
|
101
|
+
AriseBrowser uses **multi-strategy execution**:
|
|
102
|
+
|
|
103
|
+
| Action | How it works |
|
|
104
|
+
|--------|-------------|
|
|
105
|
+
| **Click** | Ctrl+Click (new tab detection) → regular click → force click. Validates something actually changed after each attempt. |
|
|
106
|
+
| **Select** | 12 fallback strategies — native `<select>`, role=option, data-value, aria-label, text match, keyboard fallback. Works on custom dropdowns too. |
|
|
107
|
+
| **Type** | Smart input detection with debounce. Flushes before navigation so nothing gets lost. |
|
|
108
|
+
|
|
109
|
+
15 action types total: click, type, select, scroll, hover, focus, enter, press_key, navigate, back, forward, wait, extract, mouse_control, mouse_drag.
|
|
110
|
+
|
|
111
|
+
## 5. Element Refs That Don't Break
|
|
112
|
+
|
|
113
|
+
Other tools generate element IDs per snapshot — navigate away and they're gone. AriseBrowser uses a **3-layer persistent ref system**:
|
|
114
|
+
|
|
115
|
+
1. **WeakMap** — Fast in-memory lookup
|
|
116
|
+
2. **aria-ref** — Injected into DOM, survives re-renders
|
|
117
|
+
3. **Signature** — Tag + class + text fingerprint for recovery after navigation
|
|
118
|
+
|
|
119
|
+
Your agent can reference `e42` from 5 actions ago. It still resolves.
|
|
120
|
+
|
|
121
|
+
## 6. Multi-Agent Ready
|
|
122
|
+
|
|
123
|
+
- **Tab Groups** — Organize tabs by task, color-coded
|
|
124
|
+
- **Tab Locks** — TTL-based exclusive access enforced on write routes, prevents two agents from stomping on the same page
|
|
125
|
+
- **Session Registry** — Multiple sessions share one browser
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## Quick Start
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
npm install
|
|
133
|
+
npm run build
|
|
134
|
+
|
|
135
|
+
# Headless (default)
|
|
136
|
+
npx arise-browser
|
|
137
|
+
|
|
138
|
+
# Headed on server (Linux, requires deploy/neko/setup.sh)
|
|
139
|
+
npx arise-browser --virtual-display --host 0.0.0.0
|
|
140
|
+
|
|
141
|
+
# With auth token
|
|
142
|
+
ARISE_BROWSER_TOKEN=secret npx arise-browser --port 8080
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
## Connection Modes
|
|
146
|
+
|
|
147
|
+
| Mode | Use Case | Flag |
|
|
148
|
+
|------|----------|------|
|
|
149
|
+
| **Standalone** | Launch fresh Chromium | (default) |
|
|
150
|
+
| **CDP** | Connect to running Chrome | `--cdp ws://localhost:9222` |
|
|
151
|
+
| **Managed** | Persistent profile (keeps cookies/logins) | `--profile ~/.browser-profile` |
|
|
152
|
+
| **Virtual Display** | Headed Chrome + WebRTC on Linux server | `--virtual-display` |
|
|
153
|
+
|
|
154
|
+
## API
|
|
155
|
+
|
|
156
|
+
| Endpoint | Method | Description |
|
|
157
|
+
|----------|--------|-------------|
|
|
158
|
+
| `/snapshot` | GET | Accessibility tree (YAML/JSON, diff, interactive filter) |
|
|
159
|
+
| `/action` | POST | Execute action (click, type, select, ...) |
|
|
160
|
+
| `/actions` | POST | Batch execute |
|
|
161
|
+
| `/navigate` | POST | Go to URL |
|
|
162
|
+
| `/text` | GET | Page text |
|
|
163
|
+
| `/screenshot` | GET | JPEG screenshot |
|
|
164
|
+
| `/tabs` | GET | List tabs |
|
|
165
|
+
| `/tab` | POST | Create/switch tab |
|
|
166
|
+
| `/tab/lock` | POST | Lock tab (multi-agent) |
|
|
167
|
+
| `/tab/unlock` | POST | Release lock |
|
|
168
|
+
| `/recording/start` | POST | Start recording user behavior |
|
|
169
|
+
| `/recording/stop` | POST | Stop recording |
|
|
170
|
+
| `/recording/export` | POST | Export as Learn protocol |
|
|
171
|
+
| `/evaluate` | POST | Run JavaScript |
|
|
172
|
+
| `/cookies` | GET/POST | Read/write cookies |
|
|
173
|
+
| `/pdf` | GET | PDF export |
|
|
174
|
+
| `/upload` | POST | Upload file |
|
|
175
|
+
| `/download` | GET | Download file |
|
|
176
|
+
| `/health` | GET | Health check |
|
|
177
|
+
|
|
178
|
+
Notes:
|
|
179
|
+
- Read routes support optional `tabId` where applicable (`/snapshot`, `/text`, `/screenshot`, `/pdf`, `/evaluate`, `/download`).
|
|
180
|
+
- Write routes that target a tab accept optional `owner`; locked tabs return `423 Locked` unless the owner matches.
|
|
181
|
+
- `/navigate` accepts optional `tabId` and `timeout` (milliseconds).
|
|
182
|
+
- `/recording/export` works after `/recording/stop` for recently completed recordings.
|
|
183
|
+
|
|
184
|
+
## Library Usage
|
|
185
|
+
|
|
186
|
+
```typescript
|
|
187
|
+
import { BrowserSession, createServer } from "arise-browser";
|
|
188
|
+
|
|
189
|
+
// As a library
|
|
190
|
+
const session = BrowserSession.create({ mode: "standalone", headless: true });
|
|
191
|
+
await session.ensureBrowser();
|
|
192
|
+
await session.visit("https://example.com");
|
|
193
|
+
const snapshot = await session.getSnapshot();
|
|
194
|
+
const result = await session.execAction({ type: "click", ref: "e5" });
|
|
195
|
+
|
|
196
|
+
// As an HTTP server
|
|
197
|
+
const server = await createServer(
|
|
198
|
+
{ mode: "standalone", headless: true },
|
|
199
|
+
{ port: 9867 }
|
|
200
|
+
);
|
|
201
|
+
await server.listen({ port: 9867 });
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
## Comparison
|
|
205
|
+
|
|
206
|
+
| Feature | AriseBrowser | Pinchtab |
|
|
207
|
+
|---------|-------------|----------|
|
|
208
|
+
| Headed on servers | Xvfb + Neko WebRTC streaming | Not available |
|
|
209
|
+
| Snapshot format | YAML (~50% fewer tokens) + diff mode | JSON |
|
|
210
|
+
| Persistent refs | 3-layer (WeakMap + aria-ref + signature) | Single pass |
|
|
211
|
+
| Click strategy | Multi-strategy with state validation | Single attempt |
|
|
212
|
+
| Select support | 12 fallback strategies | Empty stub |
|
|
213
|
+
| Behavior recording | Built-in + Learn protocol export | Not available |
|
|
214
|
+
| Multi-agent | Tab locks + session registry | Not available |
|
|
215
|
+
| Coordinate handling | Viewport-validated | Hardcoded (0,0) |
|
|
216
|
+
| Runtime | Node.js + Playwright | Go + CDP |
|
|
217
|
+
| Pinchtab compatible | Yes (accepts `kind` field + `BRIDGE_*` env) | — |
|
|
218
|
+
|
|
219
|
+
## Works with OpenClaw
|
|
220
|
+
|
|
221
|
+
AriseBrowser ships with an [OpenClaw skill](skill/arise-browser/SKILL.md) and [plugin](plugin/openclaw.plugin.json). Your OpenClaw agent can discover, install, and use AriseBrowser automatically — no manual setup required.
|
|
222
|
+
|
|
223
|
+
```bash
|
|
224
|
+
# OpenClaw agents can use AriseBrowser as their browser backend
|
|
225
|
+
# The skill teaches the agent the full API: navigate → snapshot → act → repeat
|
|
226
|
+
# The plugin handles lifecycle: start, health check, stop
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
## Environment Variables
|
|
230
|
+
|
|
231
|
+
| Variable | Alias | Default |
|
|
232
|
+
|----------|-------|---------|
|
|
233
|
+
| `ARISE_BROWSER_PORT` | `BRIDGE_PORT` | 9867 |
|
|
234
|
+
| `ARISE_BROWSER_BIND` | `BRIDGE_BIND` | 127.0.0.1 |
|
|
235
|
+
| `ARISE_BROWSER_TOKEN` | `BRIDGE_TOKEN` | (none) |
|
|
236
|
+
| `ARISE_BROWSER_HEADLESS` | — | true |
|
|
237
|
+
| `ARISE_BROWSER_PROFILE` | — | (none) |
|
|
238
|
+
| `ARISE_BROWSER_VIRTUAL_DISPLAY` | — | false |
|
|
239
|
+
| `ARISE_BROWSER_NEKO_PORT` | — | 6090 |
|
|
240
|
+
| `ARISE_BROWSER_NEKO_PASSWORD` | — | neko |
|
|
241
|
+
| `ARISE_BROWSER_NEKO_ADMIN_PASSWORD` | — | admin |
|
|
242
|
+
|
|
243
|
+
`BRIDGE_*` aliases for Pinchtab drop-in compatibility.
|
|
244
|
+
|
|
245
|
+
## License
|
|
246
|
+
|
|
247
|
+
Apache 2.0
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# deploy/neko/
|
|
2
|
+
|
|
3
|
+
Configuration files for running arise-browser with Neko streaming on Linux servers.
|
|
4
|
+
|
|
5
|
+
## Architecture
|
|
6
|
+
|
|
7
|
+
arise-browser is the single entry process managing all child processes:
|
|
8
|
+
Xvfb (virtual display) -> PulseAudio (virtual audio) -> Openbox (window manager) -> Chrome (CDP) -> Neko (WebRTC streaming)
|
|
9
|
+
|
|
10
|
+
No supervisord — arise-browser's VirtualDisplayManager handles process lifecycle.
|
|
11
|
+
|
|
12
|
+
## Files
|
|
13
|
+
|
|
14
|
+
| File | Source | Purpose |
|
|
15
|
+
|------|--------|---------|
|
|
16
|
+
| `xorg.conf` | neko/runtime/xorg.conf | X11 virtual display with multiple resolution modes |
|
|
17
|
+
| `pulseaudio.pa` | neko/runtime/default.pa | Virtual audio sinks for Neko |
|
|
18
|
+
| `openbox.xml` | neko/apps/google-chrome/openbox.xml | Window manager: no decorations, maximized Chrome |
|
|
19
|
+
| `neko.yaml` | Custom | Neko server defaults (overridden by CLI args via env vars) |
|
|
20
|
+
| `policies.json` | Modified from neko | Chrome policies: CDP enabled, popups allowed |
|
|
21
|
+
| `arise-browser.service` | Custom | systemd unit file |
|
|
22
|
+
| `setup.sh` | Custom | One-shot dependency installer (Debian/Ubuntu + CentOS/RHEL) |
|
|
23
|
+
|
|
24
|
+
## Port Allocation
|
|
25
|
+
|
|
26
|
+
| Service | Port | Exposure |
|
|
27
|
+
|---------|------|----------|
|
|
28
|
+
| Neko HTTP/WS | 6090 | Public (user WebRTC) |
|
|
29
|
+
| WebRTC UDP | 52000-52100 | Public (data channel) |
|
|
30
|
+
| arise-browser | 9867 | As needed (AI agent API) |
|
|
31
|
+
| Chrome CDP | 9222 | localhost only |
|
|
32
|
+
|
|
33
|
+
## Key Differences from Neko Defaults
|
|
34
|
+
|
|
35
|
+
- `policies.json`: `DeveloperToolsAvailability: 0` (allow CDP), `DefaultPopupsSetting: 1` (allow popups)
|
|
36
|
+
- No forced browser extensions (uBlock Origin, Dark Reader removed)
|
|
37
|
+
- `neko.yaml`: `implicit_hosting: true` (auto-assign host to first user)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
[Unit]
|
|
2
|
+
Description=AriseBrowser with Virtual Display
|
|
3
|
+
After=network.target
|
|
4
|
+
|
|
5
|
+
[Service]
|
|
6
|
+
Type=simple
|
|
7
|
+
User=neko
|
|
8
|
+
ExecStart=/usr/bin/node /opt/arise-browser/dist/bin/arise-browser.js --virtual-display --port 9867 --host 0.0.0.0
|
|
9
|
+
Restart=always
|
|
10
|
+
RestartSec=5
|
|
11
|
+
|
|
12
|
+
[Install]
|
|
13
|
+
WantedBy=multi-user.target
|