@askjo/camoufox-browser 1.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.
@@ -0,0 +1,47 @@
1
+ # Chromium Engine (Experimental)
2
+
3
+ Legacy Chromium/Playwright-based browser engine using stealth plugin.
4
+
5
+ > ⚠️ **Not recommended**: Gets blocked by Google and other anti-bot systems. Use the Camoufox engine instead.
6
+
7
+ ## Why Experimental?
8
+
9
+ The Playwright + stealth plugin approach is detected by:
10
+ - Google (captcha on search)
11
+ - Cloudflare
12
+ - Many other anti-bot systems
13
+
14
+ The main Camoufox engine uses Firefox with C++ level fingerprint spoofing, which bypasses these protections.
15
+
16
+ ## Usage
17
+
18
+ ```bash
19
+ # From repo root
20
+ cd experimental/chromium
21
+
22
+ # Install dependencies (from repo root)
23
+ npm install
24
+
25
+ # Run (requires Chromium installed)
26
+ CHROMIUM_PATH=/usr/bin/chromium node server.js
27
+ ```
28
+
29
+ ## Docker
30
+
31
+ ```bash
32
+ docker build -t camoufox-browser-chromium .
33
+ docker run -p 3000:3000 camoufox-browser-chromium
34
+ ```
35
+
36
+ ## API
37
+
38
+ Same API as the main Camoufox engine - see root [README.md](../../README.md).
39
+
40
+ ## When to Use
41
+
42
+ Only use this if:
43
+ - You're accessing sites that don't have anti-bot protection
44
+ - You need Chromium-specific features
45
+ - You're debugging Playwright issues
46
+
47
+ For all other cases, use `./run-camoufox.sh` from the repo root.
@@ -0,0 +1,24 @@
1
+ #!/bin/bash
2
+ # Local development script for jo-browser with auto-reload
3
+
4
+ # Use Playwright's bundled Chromium (has full accessibility API support)
5
+ # Only set CHROMIUM_PATH for Docker/production where we install Chromium separately
6
+ unset CHROMIUM_PATH
7
+
8
+ # Install deps if needed
9
+ if [ ! -d "node_modules" ]; then
10
+ echo "Installing dependencies..."
11
+ npm install
12
+ fi
13
+
14
+ # Install nodemon globally if not available
15
+ if ! command -v nodemon &> /dev/null; then
16
+ echo "Installing nodemon..."
17
+ npm install -g nodemon
18
+ fi
19
+
20
+ echo "Starting jo-browser on http://localhost:3000 (with auto-reload)"
21
+ echo "Logs: /tmp/jo-browser.log"
22
+ nodemon --watch server.js --exec "node server.js" 2>&1 | while IFS= read -r line; do
23
+ echo "[$(date '+%Y-%m-%d %H:%M:%S')] $line"
24
+ done | tee -a /tmp/jo-browser.log