Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

chore: small ui changes

Luigi Agostibc98b07b1aef
diff --git a/dashboard/agents.css b/dashboard/agents.css
index bca169bc..93b12adf 100644
--- a/dashboard/agents.css
+++ b/dashboard/agents.css
@@ -6,6 +6,7 @@
padding: 16px;
}
.agents-panel h2 {
+ font-family: var(--font-heading);
font-size: 13px;
text-transform: uppercase;
letter-spacing: 1px;
@@ -68,7 +69,13 @@
justify-content: space-between;
align-items: center;
}
- .feed-header h2 { font-size: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
+ .feed-header h2 {
+ font-family: var(--font-heading);
+ font-size: 14px;
+ color: var(--text-muted);
+ text-transform: uppercase;
+ letter-spacing: 1px;
+ }
.feed-header .filter-btns { display: flex; gap: 6px; }
.feed-header .filter-btn {
background: var(--bg-hover);
@@ -80,7 +87,11 @@
cursor: pointer;
font-family: inherit;
}
- .feed-header .filter-btn.active { border-color: var(--primary); color: var(--primary); }
+ .feed-header .filter-btn.active {
+ border-color: var(--primary);
+ color: var(--primary);
+ background: rgba(251, 191, 36, 0.08);
+ }
.feed-list {
flex: 1;
@@ -120,7 +131,7 @@
margin-right: 4px;
}
.method.GET { background: #1a3a2a; color: var(--success); }
- .method.POST { background: #1a2a3a; color: #60a5fa; }
+ .method.POST { background: rgba(251, 191, 36, 0.12); color: var(--primary); }
.method.DELETE { background: var(--danger-bg); color: var(--danger); }
.event-row .duration { color: var(--text-dim); text-align: right; font-size: 12px; }
.event-row .status-code { text-align: right; font-size: 12px; }
diff --git a/dashboard/base.css b/dashboard/base.css
index 9aee01bb..55a91a02 100644
--- a/dashboard/base.css
+++ b/dashboard/base.css
@@ -1,35 +1,37 @@
:root {
- --primary: #16a34a;
- --primary-hover: #15803d;
- --primary-active: #166534;
- --primary-soft: rgba(22, 163, 74, 0.14);
- --primary-dark: #0b1220;
- --bg: #0b1220;
- --bg-raised: #111827;
- --bg-card: #111827;
- --bg-input: #0b1220;
- --bg-hover: #162235;
- --bg-subtle: #0f172a;
- --border: #1f2a44;
- --border-light: #2d3a5c;
- --border-active: #3c4d73;
+ --primary: #fbbf24;
+ --primary-hover: #fde68a;
+ --primary-active: #d97706;
+ --primary-soft: rgba(251, 191, 36, 0.14);
+ --primary-dark: #0f1117;
+ --bg: #0f1117;
+ --bg-raised: #141720;
+ --bg-card: #1a1d27;
+ --bg-input: #141720;
+ --bg-hover: #222633;
+ --bg-subtle: #171b24;
+ --border: #2a2f3a;
+ --border-light: rgba(255, 255, 255, 0.1);
+ --border-active: rgba(251, 191, 36, 0.32);
--text: #e2e8f0;
--text-muted: #94a3b8;
--text-dim: #64748b;
--text-faint: #475569;
--text-subtle: #cbd5e1;
--text-bright: #f1f5f9;
- --success: #16a34a;
- --success-bg: rgba(22, 163, 74, 0.15);
+ --success: #22c55e;
+ --success-bg: rgba(34, 197, 94, 0.14);
--warning: #f59e0b;
- --warning-bg: rgba(245, 158, 11, 0.18);
- --danger: #dc2626;
- --danger-hover: #b91c1c;
- --danger-bg: rgba(220, 38, 38, 0.16);
+ --warning-bg: rgba(245, 158, 11, 0.16);
+ --danger: #ef4444;
+ --danger-hover: #dc2626;
+ --danger-bg: rgba(239, 68, 68, 0.16);
--inactive-bg: rgba(100, 116, 139, 0.22);
--idle: #64748b;
--idle-bg: rgba(100, 116, 139, 0.22);
- --font: 'SF Mono', 'Fira Code', monospace;
+ --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
+ --font-heading: 'Space Grotesk', 'Inter', system-ui, sans-serif;
+ --font-mono: 'JetBrains Mono', 'SFMono-Regular', 'SF Mono', 'Fira Code', monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
@@ -38,16 +40,28 @@
background: var(--bg);
color: var(--text);
min-height: 100vh;
+ line-height: 1.5;
+ -webkit-font-smoothing: antialiased;
}
header {
- background: var(--bg-raised);
- border-bottom: 1px solid var(--border);
- padding: 16px 24px;
+ position: sticky;
+ top: 0;
+ z-index: 50;
+ background: rgba(15, 17, 23, 0.9);
+ backdrop-filter: blur(16px);
+ border-bottom: 1px solid var(--border-light);
+ padding: 14px 24px;
display: flex;
align-items: center;
gap: 16px;
}
- header h1 { font-size: 20px; color: var(--text-bright); }
+ header h1 {
+ font-family: var(--font-heading);
+ font-size: 20px;
+ font-weight: 700;
+ color: var(--text-bright);
+ letter-spacing: -0.02em;
+ }
.app-brand {
display: flex;
align-items: center;
@@ -63,9 +77,10 @@
display: inline-block;
width: 8px; height: 8px;
border-radius: 50%;
- background: var(--success);
+ background: var(--primary);
margin-right: 4px;
animation: pulse 2s infinite;
+ box-shadow: 0 0 10px rgba(251, 191, 36, 0.35);
}
@keyframes pulse {
0%, 100% { opacity: 1; }
@@ -77,19 +92,24 @@
.view-toggle { margin-left: auto; display: flex; gap: 4px; }
.view-btn {
- background: var(--bg-hover);
- border: 1px solid var(--border-light);
+ background: transparent;
+ border: 1px solid transparent;
color: var(--text-subtle);
padding: 6px 14px;
- border-radius: 4px;
+ border-radius: 8px;
font-size: 12px;
cursor: pointer;
font-family: inherit;
+ transition: all 0.18s ease;
+ }
+ .view-btn:hover {
+ background: rgba(255, 255, 255, 0.05);
+ color: var(--text);
}
.view-btn.active {
- background: transparent;
+ background: rgba(251, 191, 36, 0.08);
border-color: var(--primary);
- color: var(--text-bright);
+ color: var(--primary);
}
.empty-state {
@@ -125,15 +145,21 @@
padding: 24px;
width: 420px;
max-width: 90vw;
+ box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}
.modal.modal-wide {
width: min(1100px, 95vw);
}
- .modal h3 { color: var(--text-bright); margin-bottom: 16px; }
+ .modal h3 {
+ font-family: var(--font-heading);
+ color: var(--text-bright);
+ margin-bottom: 16px;
+ letter-spacing: -0.01em;
+ }
.modal input, .modal select {
width: 100%;
- background: var(--bg);
- border: 1px solid var(--border-light);
+ background: var(--bg-input);
+ border: 1px solid var(--border);
color: var(--text);
padding: 10px;
border-radius: 6px;
@@ -153,13 +179,17 @@
letter-spacing: 0.06em;
text-transform: uppercase;
cursor: pointer;
- font-family: inherit;
+ font-family: var(--font-heading);
}
.modal button:hover {
background: var(--primary-hover);
}
- .modal button.secondary { background: var(--border-light); color: var(--text); }
- .modal button.secondary:hover { background: var(--border-active); }
+ .modal button.secondary {
+ background: rgba(255, 255, 255, 0.05);
+ border: 1px solid var(--border-light);
+ color: var(--text-subtle);
+ }
+ .modal button.secondary:hover { background: rgba(255, 255, 255, 0.08); }
.modal button.danger { background: var(--danger); color: #fff; }
.modal button.danger:hover { background: var(--danger-hover); }
diff --git a/dashboard/dashboard.html b/dashboard/dashboard.html
index 51b12074..3ab9510f 100644
--- a/dashboard/dashboard.html
+++ b/dashboard/dashboard.html
@@ -85,83 +85,84 @@
<div id="settings-view" class="settings-view" style="display:none">
- <div class="settings-container">
- <h2 class="settings-title">⚙️ Settings</h2>
-
- <div class="settings-section">
- <h3>📺 Screencast</h3>
- <div class="setting-row">
- <label>Frame Rate</label>
- <div class="setting-control">
- <input type="range" id="set-fps" min="1" max="15" value="1" oninput="document.getElementById('fps-val').textContent=this.value+' fps'">
- <span id="fps-val" class="setting-value">1 fps</span>
+ <div class="settings-fixed-actions">
+ <div class="settings-fixed-actions-inner">
+ <button onclick="applySettings()" class="launch-btn">Apply Settings</button>
+ <button onclick="loadSettings()" class="refresh-btn">Reset</button>
+ </div>
+ </div>
+ <div class="settings-scroll">
+ <div class="settings-container">
+ <div class="settings-section">
+ <h3>📺 Screencast</h3>
+ <div class="setting-row">
+ <label>Frame Rate</label>
+ <div class="setting-control">
+ <input type="range" id="set-fps" min="1" max="15" value="1" oninput="document.getElementById('fps-val').textContent=this.value+' fps'">
+ <span id="fps-val" class="setting-value">1 fps</span>
+ </div>
</div>
- </div>
- <div class="setting-row">
- <label>Quality</label>
- <div class="setting-control">
- <input type="range" id="set-quality" min="10" max="80" value="30" oninput="document.getElementById('quality-val').textContent=this.value+'%'">
- <span id="quality-val" class="setting-value">30%</span>
+ <div class="setting-row">
+ <label>Quality</label>
+ <div class="setting-control">
+ <input type="range" id="set-quality" min="10" max="80" value="30" oninput="document.getElementById('quality-val').textContent=this.value+'%'">
+ <span id="quality-val" class="setting-value">30%</span>
+ </div>
</div>
- </div>
- <div class="setting-row">
- <label>Max Width</label>
- <div class="setting-control">
- <select id="set-maxwidth">
- <option value="400">400px</option>
- <option value="600">600px</option>
- <option value="800" selected>800px</option>
- <option value="1024">1024px</option>
- <option value="1280">1280px</option>
- </select>
+ <div class="setting-row">
+ <label>Max Width</label>
+ <div class="setting-control">
+ <select id="set-maxwidth">
+ <option value="400">400px</option>
+ <option value="600">600px</option>
+ <option value="800" selected>800px</option>
+ <option value="1024">1024px</option>
+ <option value="1280">1280px</option>
+ </select>
+ </div>
</div>
</div>
- </div>
- <div class="settings-section">
- <h3>🛡️ Stealth</h3>
- <div class="setting-row">
- <label>Level</label>
- <div class="setting-control">
- <select id="set-stealth" onchange="applyStealth()">
- <option value="light">Light (default — works with X, Gmail)</option>
- <option value="full">Full (canvas noise, WebGL, fonts)</option>
- </select>
+ <div class="settings-section">
+ <h3>🛡️ Stealth</h3>
+ <div class="setting-row">
+ <label>Level</label>
+ <div class="setting-control">
+ <select id="set-stealth" onchange="applyStealth()">
+ <option value="light">Light (default)</option>
+ <option value="full">Full (canvas noise, WebGL, fonts)</option>
+ </select>
+ </div>
</div>
+ <div id="stealth-info" class="setting-info"></div>
</div>
- <div id="stealth-info" class="setting-info"></div>
- </div>
- <div class="settings-section">
- <h3>🌐 Browser</h3>
- <div class="setting-row">
- <label>Block Images</label>
- <div class="setting-control">
- <label class="toggle"><input type="checkbox" id="set-block-images"><span class="toggle-label">Off</span></label>
+ <div class="settings-section">
+ <h3>🌐 Browser</h3>
+ <div class="setting-row">
+ <label>Block Images</label>
+ <div class="setting-control">
+ <label class="toggle"><input type="checkbox" id="set-block-images"><span class="toggle-label">Off</span></label>
+ </div>
</div>
- </div>
- <div class="setting-row">
- <label>Block Media</label>
- <div class="setting-control">
- <label class="toggle"><input type="checkbox" id="set-block-media"><span class="toggle-label">Off</span></label>
+ <div class="setting-row">
+ <label>Block Media</label>
+ <div class="setting-control">
+ <label class="toggle"><input type="checkbox" id="set-block-media"><span class="toggle-label">Off</span></label>
+ </div>
</div>
- </div>
- <div class="setting-row">
- <label>No Animations</label>
- <div class="setting-control">
- <label class="toggle"><input type="checkbox" id="set-no-animations"><span class="toggle-label">Off</span></label>
+ <div class="setting-row">
+ <label>No Animations</label>
+ <div class="setting-control">
+ <label class="toggle"><input type="checkbox" id="set-no-animations"><span class="toggle-label">Off</span></label>
+ </div>
</div>
</div>
- </div>
-
- <div class="settings-section">
- <h3>📊 Server Info</h3>
- <div id="server-info" class="server-info">Loading...</div>
- </div>
- <div class="settings-actions">
- <button onclick="applySettings()" class="launch-btn">Apply Settings</button>
- <button onclick="loadSettings()" class="refresh-btn">Reset</button>
+ <div class="settings-section">
+ <h3>📊 Server Info</h3>
+ <div id="server-info" class="server-info">Loading...</div>
+ </div>
</div>
</div>
</div>
diff --git a/dashboard/profiles.css b/dashboard/profiles.css
index bf949575..f5a6a94f 100644
--- a/dashboard/profiles.css
+++ b/dashboard/profiles.css
@@ -31,8 +31,8 @@
gap: 8px;
}
.launch-btn {
- background: transparent;
- color: var(--primary);
+ background: var(--primary);
+ color: var(--primary-dark);
border: 1px solid var(--primary);
padding: 8px 18px;
border-radius: 6px;
@@ -43,11 +43,14 @@
letter-spacing: 0.06em;
text-transform: uppercase;
}
- .launch-btn:hover { background: var(--primary-soft); }
+ .launch-btn:hover {
+ background: var(--primary-hover);
+ border-color: var(--primary-hover);
+ }
.refresh-btn {
- background: #1e293b;
- color: #cbd5e1;
- border: 1px solid #334155;
+ background: rgba(255, 255, 255, 0.05);
+ color: var(--text-subtle);
+ border: 1px solid var(--border-light);
padding: 8px 14px;
border-radius: 6px;
cursor: pointer;
@@ -57,7 +60,7 @@
letter-spacing: 0.06em;
text-transform: uppercase;
}
- .refresh-btn:hover { background: #243244; }
+ .refresh-btn:hover { background: rgba(255, 255, 255, 0.08); }
.instances-grid {
flex: 1;
display: grid;
@@ -72,6 +75,7 @@
border: 1px solid var(--border);
border-radius: 10px;
overflow: hidden;
+ box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}
.inst-card .inst-header {
padding: 14px 16px;
@@ -136,11 +140,11 @@
.inst-card .inst-actions button.btn-feed {
background: transparent;
border-color: transparent;
- color: #94a3b8;
+ color: var(--text-muted);
}
.inst-card .inst-actions button.btn-feed:hover {
- border-color: #334155;
- color: #cbd5e1;
+ border-color: var(--border-light);
+ color: var(--text-subtle);
}
.inst-card .inst-actions button.danger {
background: var(--danger);
@@ -162,7 +166,7 @@
color: var(--text-subtle);
padding: 10px;
border-radius: 6px;
- font-family: var(--font);
+ font-family: var(--font-mono);
font-size: 11px;
line-height: 1.45;
margin-bottom: 10px;
diff --git a/dashboard/settings.css b/dashboard/settings.css
index f5d4584d..f396333c 100644
--- a/dashboard/settings.css
+++ b/dashboard/settings.css
@@ -1,15 +1,49 @@
- .settings-view { height: calc(100vh - 60px); overflow-y: auto; }
- .settings-container { max-width: 600px; margin: 0 auto; padding: 24px; }
- .settings-title { color: var(--primary); font-size: 18px; margin-bottom: 24px; }
+ .settings-view { height: calc(100vh - 60px); display: flex; flex-direction: column; overflow: hidden; }
+ .settings-fixed-actions {
+ flex: 0 0 auto;
+ z-index: 10;
+ padding: 10px 24px;
+ border-bottom: 1px solid var(--border);
+ background: rgba(15, 17, 23, 0.92);
+ backdrop-filter: blur(8px);
+ }
+ .settings-fixed-actions-inner {
+ width: 100%;
+ margin: 0 auto;
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(140px, max-content));
+ justify-content: start;
+ gap: 8px;
+ }
+ .settings-scroll {
+ flex: 1;
+ overflow-y: auto;
+ padding: 0 24px 24px;
+ }
+ .settings-container {
+ max-width: 1200px;
+ width: 100%;
+ margin: 0 auto;
+ padding-top: 16px;
+ display: grid;
+ grid-template-columns: repeat(2, minmax(320px, 1fr));
+ gap: 16px;
+ align-content: start;
+ }
.settings-section {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 10px;
padding: 18px;
- margin-bottom: 16px;
+ margin-bottom: 0;
+ }
+ .settings-section h3 {
+ font-family: var(--font-heading);
+ color: var(--text);
+ font-size: 14px;
+ margin-bottom: 14px;
}
- .settings-section h3 { color: var(--text); font-size: 14px; margin-bottom: 14px; }
.setting-row {
display: flex;
justify-content: space-between;
@@ -49,4 +83,13 @@
.server-info .info-row { display: flex; justify-content: space-between; }
.server-info .info-label { color: var(--text-dim); }
.server-info .info-val { color: var(--text); }
- .settings-actions { display: flex; gap: 8px; margin-top: 8px; }
+ @media (max-width: 560px) {
+ .settings-fixed-actions-inner {
+ grid-template-columns: 1fr;
+ }
+ }
+ @media (max-width: 860px) {
+ .settings-container {
+ grid-template-columns: 1fr;
+ }
+ }
diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md
index 17b6f32d..bf3879cb 100644
--- a/docs/ARCHITECTURE.md
+++ b/docs/ARCHITECTURE.md
@@ -8,9 +8,9 @@ manages tabs, and exposes the accessibility tree as flat JSON with stable refs.
```
┌─────────────┐ HTTP ┌──────────────┐ CDP ┌─────────────┐
-│ AI Agent │ ────────────▶ │ Pinchtab │ ─────────────▶ │ Chrome │
-│ (any LLM) │ ◀──────────── │ (Go binary) │ ◀───────────── │ (headless) │
-└─────────────┘ JSON/text └──────────────┘ WebSocket └─────────────┘
+│ AI Agent │ ────────────▶ │ Pinchtab │ ─────────────▶ │ Chrome │
+│ (any LLM) │ ◀──────────── │ (Go binary) │ ◀───────────── │ (headless) │
+└─────────────┘ JSON/text └──────────────┘ WebSocket └─────────────┘
```
Agents never touch CDP directly. They send HTTP requests, get back JSON.
@@ -263,10 +263,10 @@ Agent Pinchtab Chrome
│ {"tabId": "AB12..."} │ │
│◀──────────────────────────────│ │
│ │ │
- │ GET /snapshot?filter=interactive │
+ │ GET /snapshot?filter=interactive │
│ ─────────────────────────────▶│ Accessibility.getFullAXTree │
│ │─────────────────────────────▶│
- │ │ ◀── raw AX nodes ──────────│
+ │ │ ◀── raw AX nodes ────────── │
│ │ flatten + assign refs │
│ │ cache ref→nodeID │
│ [{"ref":"e0","role":"button",│ │
@@ -275,7 +275,7 @@ Agent Pinchtab Chrome
│ │ │
│ POST /action │ │
│ {"ref":"e0","kind":"click"} │ │
- │ ─────────────────────────────▶│ lookup e0 → nodeID 1234 │
+ │ ─────────────────────────────▶│ lookup e0 → nodeID 1234 │
│ │ DOM.resolveNode(1234) │
│ │ DOM.getBoxModel │
│ │ Input.dispatchMouseEvent │