bladebro 3.0.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 +21 -0
- package/README.md +52 -0
- package/bin.js +64 -0
- package/package.json +41 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Bishesh Bhandari
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Bladebro
|
|
2
|
+
|
|
3
|
+
God-tier agentic browser driver for AI agents. Few tools, full control, real stealth, max token efficiency.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g bladebro
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or use without installing:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx bladebro mcp
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
Bladebro speaks MCP (Model Context Protocol) over stdio. Point your AI agent at it:
|
|
20
|
+
|
|
21
|
+
```json
|
|
22
|
+
{
|
|
23
|
+
"mcpServers": {
|
|
24
|
+
"bladebro": {
|
|
25
|
+
"command": "bladebro",
|
|
26
|
+
"args": ["mcp"]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Five tools: `act`, `see`, `state`, `run`, `vision`. Full docs at [github.com/dondai44423/bladebro](https://github.com/dondai44423/bladebro).
|
|
33
|
+
|
|
34
|
+
## Requirements
|
|
35
|
+
|
|
36
|
+
- Node.js >= 14
|
|
37
|
+
- Chrome/Chromium installed (Bladebro finds it automatically)
|
|
38
|
+
|
|
39
|
+
## Platforms
|
|
40
|
+
|
|
41
|
+
Prebuilt binaries available for:
|
|
42
|
+
|
|
43
|
+
- Linux x86_64 (`linux-x64`)
|
|
44
|
+
- macOS Apple Silicon (`darwin-arm64`) — coming soon
|
|
45
|
+
- macOS Intel (`darwin-x64`) — coming soon
|
|
46
|
+
- Windows x86_64 (`win32-x64`) — coming soon
|
|
47
|
+
|
|
48
|
+
Other platforms: [build from source](https://github.com/dondai44423/bladebro#building-from-source).
|
|
49
|
+
|
|
50
|
+
## License
|
|
51
|
+
|
|
52
|
+
MIT
|
package/bin.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const { spawnSync } = require('child_process');
|
|
5
|
+
const { existsSync } = require('fs');
|
|
6
|
+
const { dirname, join } = require('path');
|
|
7
|
+
|
|
8
|
+
// ── platform → npm package name mapping ──────────────────────────────
|
|
9
|
+
const PLATFORM_MAP = {
|
|
10
|
+
'linux-x64': 'bladebro-linux-x64',
|
|
11
|
+
'linux-arm64': 'bladebro-linux-arm64',
|
|
12
|
+
'darwin-x64': 'bladebro-darwin-x64',
|
|
13
|
+
'darwin-arm64': 'bladebro-darwin-arm64',
|
|
14
|
+
'win32-x64': 'bladebro-win32-x64',
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const key = process.platform + '-' + process.arch;
|
|
18
|
+
const pkgName = PLATFORM_MAP[key];
|
|
19
|
+
|
|
20
|
+
if (!pkgName) {
|
|
21
|
+
process.stderr.write('bladebro: no prebuilt binary for ' + key + '\n');
|
|
22
|
+
process.stderr.write('\nSupported platforms:\n');
|
|
23
|
+
process.stderr.write(' linux-x64 Linux x86_64\n');
|
|
24
|
+
process.stderr.write(' darwin-arm64 macOS Apple Silicon\n');
|
|
25
|
+
process.stderr.write(' darwin-x64 macOS Intel\n');
|
|
26
|
+
process.stderr.write(' win32-x64 Windows x86_64\n');
|
|
27
|
+
process.stderr.write('\nBuild from source: https://github.com/dondai44423/bladebro\n');
|
|
28
|
+
process.exit(1);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// ── resolve the binary path from the platform package ─────────────────
|
|
32
|
+
let binPath;
|
|
33
|
+
try {
|
|
34
|
+
const pkgJsonPath = require.resolve(pkgName + '/package.json');
|
|
35
|
+
const pkgJson = require(pkgJsonPath);
|
|
36
|
+
const binName = pkgJson.main || 'bladebro';
|
|
37
|
+
binPath = join(dirname(pkgJsonPath), binName);
|
|
38
|
+
} catch (e) {
|
|
39
|
+
process.stderr.write('bladebro: platform package "' + pkgName + '" not installed\n');
|
|
40
|
+
process.stderr.write('Run: npm install bladebro\n');
|
|
41
|
+
process.exit(1);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// ── verify the binary exists ──────────────────────────────────────────
|
|
45
|
+
if (!existsSync(binPath)) {
|
|
46
|
+
process.stderr.write('bladebro: binary not found at ' + binPath + '\n');
|
|
47
|
+
process.stderr.write('Reinstall: npm install bladebro\n');
|
|
48
|
+
process.exit(1);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// ── spawn the Rust binary with inherited stdio ────────────────────────
|
|
52
|
+
const result = spawnSync(binPath, process.argv.slice(2), {
|
|
53
|
+
stdio: 'inherit',
|
|
54
|
+
cwd: process.cwd(),
|
|
55
|
+
env: process.env,
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
// Forward exit code or signal
|
|
59
|
+
if (result.signal) {
|
|
60
|
+
// Re-raise the signal so the parent process sees it
|
|
61
|
+
process.kill(process.pid, result.signal);
|
|
62
|
+
} else {
|
|
63
|
+
process.exit(result.status || 0);
|
|
64
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bladebro",
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"description": "God-tier agentic browser driver for AI agents. Few tools, full control, real stealth, max token efficiency.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/dondai44423/bladebro"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/dondai44423/bladebro#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/dondai44423/bladebro/issues"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"browser",
|
|
16
|
+
"automation",
|
|
17
|
+
"agent",
|
|
18
|
+
"ai",
|
|
19
|
+
"mcp",
|
|
20
|
+
"cdp",
|
|
21
|
+
"chrome",
|
|
22
|
+
"stealth",
|
|
23
|
+
"scraper",
|
|
24
|
+
"puppeteer",
|
|
25
|
+
"playwright"
|
|
26
|
+
],
|
|
27
|
+
"bin": {
|
|
28
|
+
"bladebro": "bin.js"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"bin.js",
|
|
32
|
+
"README.md",
|
|
33
|
+
"LICENSE"
|
|
34
|
+
],
|
|
35
|
+
"optionalDependencies": {
|
|
36
|
+
"bladebro-linux-x64": "3.0.0"
|
|
37
|
+
},
|
|
38
|
+
"engines": {
|
|
39
|
+
"node": ">=14"
|
|
40
|
+
}
|
|
41
|
+
}
|