browsirai 0.2.0 → 0.2.1
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 +661 -78
- package/README.md +60 -5
- package/dist/bin.js +4 -2
- package/dist/bin.js.map +1 -1
- package/dist/cli/commands/act.js.map +1 -1
- package/dist/cli/commands/nav.js.map +1 -1
- package/dist/cli/commands/net.js.map +1 -1
- package/dist/cli/commands/obs.js.map +1 -1
- package/dist/cli/run.js +2 -1
- package/dist/cli/run.js.map +1 -1
- package/dist/cli.js +4 -2
- package/dist/cli.js.map +1 -1
- package/dist/server.js +4 -2
- package/dist/server.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# browsirai
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/browsirai)
|
|
4
|
-
[](LICENSE)
|
|
5
5
|
|
|
6
6
|
**Your browser. Your sessions. Your agent.**
|
|
7
7
|
|
|
@@ -21,14 +21,69 @@ An MCP server + CLI that connects AI coding agents to your real Chrome via CDP.
|
|
|
21
21
|
|
|
22
22
|
- **Always up to date** — Auto-upgrade checks npm registry on every server start. Next session launches with the latest version. Zero manual intervention.
|
|
23
23
|
|
|
24
|
+
## Demos
|
|
25
|
+
|
|
26
|
+
<table>
|
|
27
|
+
<tr>
|
|
28
|
+
<td width="50%">
|
|
29
|
+
|
|
30
|
+
**"show me my GitHub repos with star counts"**
|
|
31
|
+
|
|
32
|
+
Your GitHub session is already there. No API tokens, no OAuth.
|
|
33
|
+
|
|
34
|
+
https://github.com/user-attachments/assets/980a60c7-36c7-47f5-9598-dcc351ba93cf
|
|
35
|
+
|
|
36
|
+
</td>
|
|
37
|
+
<td width="50%">
|
|
38
|
+
|
|
39
|
+
**"block my calendar tonight 7-8pm for dinner"**
|
|
40
|
+
|
|
41
|
+
No Google OAuth registration. No Calendar API credentials. Your browser is already authenticated.
|
|
42
|
+
|
|
43
|
+
https://github.com/user-attachments/assets/51574049-b02c-4821-a0d0-d2ede9115c26
|
|
44
|
+
|
|
45
|
+
</td>
|
|
46
|
+
</tr>
|
|
47
|
+
<tr>
|
|
48
|
+
<td width="50%">
|
|
49
|
+
|
|
50
|
+
**"what am I working on right now?"**
|
|
51
|
+
|
|
52
|
+
Reads your open tabs — the highest-signal context source no other agent can access.
|
|
53
|
+
|
|
54
|
+
https://github.com/user-attachments/assets/4e61fede-bee6-4749-b26f-5eaf79e182f3
|
|
55
|
+
|
|
56
|
+
</td>
|
|
57
|
+
<td width="50%">
|
|
58
|
+
|
|
59
|
+
**"check this repo for console errors and network requests"**
|
|
60
|
+
|
|
61
|
+
Structured CDP data. ~500 tokens via snapshot vs ~10K via screenshot. 20x cheaper.
|
|
62
|
+
|
|
63
|
+
https://github.com/user-attachments/assets/95e4643f-d6f6-4315-85f4-cf0774128192
|
|
64
|
+
|
|
65
|
+
</td>
|
|
66
|
+
</tr>
|
|
67
|
+
<tr>
|
|
68
|
+
<td colspan="2">
|
|
69
|
+
|
|
70
|
+
**"which component renders this button? give me the source file."**
|
|
71
|
+
|
|
72
|
+
Walks the React Fiber tree at runtime via CDP. No source maps, no devtools extension. React, Vue, Svelte.
|
|
73
|
+
|
|
74
|
+
https://github.com/user-attachments/assets/e3370a69-a3ae-450b-bf2c-786e58ce27db
|
|
75
|
+
|
|
76
|
+
</td>
|
|
77
|
+
</tr>
|
|
78
|
+
</table>
|
|
79
|
+
|
|
24
80
|
## Quick Start
|
|
25
81
|
|
|
26
82
|
```bash
|
|
27
|
-
|
|
28
|
-
browsirai install
|
|
83
|
+
npx browsirai install
|
|
29
84
|
```
|
|
30
85
|
|
|
31
|
-
|
|
86
|
+
Auto-detects your AI platform and configures the MCP server. No global install needed.
|
|
32
87
|
|
|
33
88
|
<details>
|
|
34
89
|
<summary><strong>Claude Code</strong></summary>
|
|
@@ -510,4 +565,4 @@ Yes — the LLM sees the same content you'd see in the browser. This is inherent
|
|
|
510
565
|
|
|
511
566
|
## License
|
|
512
567
|
|
|
513
|
-
|
|
568
|
+
AGPL-3.0 — free to use, modify, and distribute. If you modify and deploy as a network service, you must open-source your changes.
|
package/dist/bin.js
CHANGED
|
@@ -458,7 +458,8 @@ async function launchChromeWithDebugging(port = 9222, headless = false) {
|
|
|
458
458
|
}
|
|
459
459
|
const args = [
|
|
460
460
|
`--remote-debugging-port=${targetPort}`,
|
|
461
|
-
"--remote-allow-origins=*"
|
|
461
|
+
"--remote-allow-origins=*",
|
|
462
|
+
"--no-sandbox"
|
|
462
463
|
];
|
|
463
464
|
if (dataDir) {
|
|
464
465
|
args.push(`--user-data-dir=${dataDir}`, "--no-first-run", "--no-default-browser-check", "--disable-extensions");
|
|
@@ -572,7 +573,8 @@ async function launchHeadlessChrome() {
|
|
|
572
573
|
"--no-first-run",
|
|
573
574
|
"--no-default-browser-check",
|
|
574
575
|
"--disable-extensions",
|
|
575
|
-
"--disable-gpu"
|
|
576
|
+
"--disable-gpu",
|
|
577
|
+
"--no-sandbox"
|
|
576
578
|
], {
|
|
577
579
|
detached: true,
|
|
578
580
|
stdio: "ignore"
|