-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
387 lines (341 loc) · 12.1 KB
/
Copy pathindex.html
File metadata and controls
387 lines (341 loc) · 12.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Faro</title>
<meta name="description" content="Faro is a keyboard-first browser debugging workbench for network requests, console logs, storage, cookies, WebSockets, scripts, SQL, CLI, and MCP workflows.">
<style>
:root {
--site: #16181a;
--bg: #1d2021;
--bg-dark: #141617;
--panel: #1f2223;
--row: #282a2b;
--border: #2c2f31;
--line: #3a3a36;
--text: #ebdbb2;
--dim: #bdae93;
--muted: #928374;
--faint: #665c54;
--title: #d8a657;
--blue: #7daea3;
--green: #a9b665;
--red: #ea6962;
--orange: #e78a4e;
--purple: #d3869b;
--accent: #89b482;
--shadow: rgba(0, 0, 0, .36);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
background:
radial-gradient(circle at 50% -10%, rgba(137, 180, 130, .14), transparent 34rem),
radial-gradient(circle at 15% 25%, rgba(216, 166, 87, .08), transparent 28rem),
var(--site);
color: var(--text);
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
code, pre, .mono { font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace; }
.wrap {
width: min(1120px, calc(100% - 48px));
margin: 0 auto;
}
.nav {
position: sticky;
top: 0;
z-index: 20;
background: rgba(22, 24, 26, .86);
backdrop-filter: blur(14px);
border-bottom: 1px solid var(--border);
}
.nav-inner {
display: flex;
align-items: center;
gap: 18px;
min-height: 58px;
}
.brand {
display: inline-flex;
align-items: center;
gap: 9px;
text-decoration: none;
font-weight: 800;
letter-spacing: .01em;
}
.brand-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--accent);
box-shadow: 0 0 18px rgba(137, 180, 130, .75);
}
.nav-links {
display: flex;
align-items: center;
gap: 18px;
margin-left: auto;
color: var(--muted);
font-size: 13px;
}
.nav-links a {
text-decoration: none;
}
.nav-links a:hover {
color: var(--text);
}
.nav-link-icon {
display: inline-flex;
align-items: center;
gap: 6px;
}
.icon {
width: 16px;
height: 16px;
flex: 0 0 auto;
fill: currentColor;
}
.hero {
padding: 82px 0 38px;
}
.eyebrow {
color: var(--accent);
text-transform: uppercase;
letter-spacing: .15em;
font-size: 12px;
font-weight: 700;
margin-bottom: 18px;
}
h1 {
margin: 0;
max-width: 880px;
color: var(--text);
font-size: clamp(42px, 7vw, 82px);
line-height: .95;
letter-spacing: -.04em;
}
.lead {
max-width: 710px;
margin: 24px 0 0;
color: var(--dim);
font-size: 18px;
line-height: 1.65;
}
.actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 32px;
}
.button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 42px;
padding: 0 18px;
border-radius: 9px;
text-decoration: none;
font-weight: 700;
font-size: 14px;
border: 1px solid var(--line);
}
.button.primary {
color: var(--site);
background: var(--accent);
border-color: var(--accent);
}
.button.secondary {
color: var(--text);
background: rgba(31, 34, 35, .78);
}
.button .icon {
margin-right: 8px;
}
.shot-shell {
margin-top: 48px;
border: 1px solid var(--line);
border-radius: 18px;
background: linear-gradient(180deg, rgba(31, 34, 35, .96), rgba(20, 22, 23, .98));
box-shadow: 0 30px 90px var(--shadow);
overflow: hidden;
}
.shot-image {
display: block;
width: 100%;
height: auto;
background: var(--bg);
}
.muted { color: var(--muted); }
.blue { color: var(--blue); }
.title { color: var(--title); }
.section {
padding: 86px 0 0;
}
h2 {
margin: 0 0 12px;
color: var(--text);
font-size: clamp(30px, 4vw, 44px);
letter-spacing: -.03em;
}
.section-copy {
max-width: 650px;
color: var(--dim);
line-height: 1.65;
font-size: 16px;
}
.grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16px;
margin-top: 30px;
}
.card {
border: 1px solid var(--border);
border-radius: 12px;
background: var(--panel);
padding: 22px;
}
.card-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border: 1px solid var(--line);
border-radius: 9px;
color: var(--accent);
margin-bottom: 16px;
}
.card h3 {
margin: 0 0 8px;
color: var(--text);
font-size: 16px;
}
.card p {
margin: 0;
color: var(--dim);
font-size: 14px;
line-height: 1.6;
}
.terminal {
margin-top: 28px;
border: 1px solid var(--line);
border-radius: 12px;
background: var(--bg-dark);
overflow: hidden;
}
.terminal pre {
margin: 0;
padding: 18px;
color: var(--text);
line-height: 1.85;
font-size: 13px;
overflow-x: auto;
}
footer {
margin-top: 88px;
padding: 34px 0 52px;
border-top: 1px solid var(--border);
color: var(--muted);
font-size: 13px;
}
@media (max-width: 860px) {
.wrap { width: min(100% - 28px, 1120px); }
.nav-links { display: none; }
.hero { padding-top: 56px; }
.grid { grid-template-columns: 1fr; }
}
</style>
</head>
<body>
<nav class="nav">
<div class="wrap nav-inner">
<a class="brand" href="#top"><span class="brand-dot"></span><span class="mono">faro</span></a>
<div class="nav-links">
<a href="#features">Features</a>
<a href="#agents">Agents</a>
<a href="#cli">CLI</a>
<a href="#install">Install</a>
<a class="nav-link-icon" href="https://github.com/nullslate/faro" aria-label="Faro on GitHub">
<svg class="icon" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 0C3.58 0 0 3.67 0 8.2c0 3.63 2.29 6.7 5.47 7.79.4.08.55-.18.55-.39 0-.19-.01-.84-.01-1.52-2.01.38-2.53-.5-2.69-.96-.09-.24-.48-.96-.82-1.15-.28-.16-.68-.55-.01-.56.63-.01 1.08.59 1.23.84.72 1.24 1.87.89 2.33.68.07-.53.28-.89.51-1.09-1.78-.21-3.64-.91-3.64-4.03 0-.89.31-1.62.82-2.19-.08-.21-.36-1.04.08-2.16 0 0 .67-.22 2.2.84A7.38 7.38 0 0 1 8 4.02c.68 0 1.36.09 2 .28 1.53-1.06 2.2-.84 2.2-.84.44 1.12.16 1.95.08 2.16.51.57.82 1.3.82 2.19 0 3.13-1.87 3.82-3.65 4.03.29.26.54.75.54 1.52 0 1.09-.01 1.97-.01 2.24 0 .21.15.47.55.39A8.1 8.1 0 0 0 16 8.2C16 3.67 12.42 0 8 0Z"/></svg>
GitHub
</a>
</div>
</div>
</nav>
<main id="top">
<section class="wrap hero">
<div class="eyebrow mono">Browser debugging for keyboard people</div>
<h1>DevTools data in a local workbench your agents can use.</h1>
<p class="lead">Faro captures Chromium network traffic, console output, storage, cookies, WebSockets, replay data, scripts, and read-only SQL into a durable SQLite database with a fast terminal UI, CLI, and MCP server.</p>
<div class="actions">
<a class="button primary" href="#install">Quick start</a>
<a class="button secondary" href="#cli">CLI examples</a>
<a class="button secondary" href="https://github.com/nullslate/faro">
<svg class="icon" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 0C3.58 0 0 3.67 0 8.2c0 3.63 2.29 6.7 5.47 7.79.4.08.55-.18.55-.39 0-.19-.01-.84-.01-1.52-2.01.38-2.53-.5-2.69-.96-.09-.24-.48-.96-.82-1.15-.28-.16-.68-.55-.01-.56.63-.01 1.08.59 1.23.84.72 1.24 1.87.89 2.33.68.07-.53.28-.89.51-1.09-1.78-.21-3.64-.91-3.64-4.03 0-.89.31-1.62.82-2.19-.08-.21-.36-1.04.08-2.16 0 0 .67-.22 2.2.84A7.38 7.38 0 0 1 8 4.02c.68 0 1.36.09 2 .28 1.53-1.06 2.2-.84 2.2-.84.44 1.12.16 1.95.08 2.16.51.57.82 1.3.82 2.19 0 3.13-1.87 3.82-3.65 4.03.29.26.54.75.54 1.52 0 1.09-.01 1.97-.01 2.24 0 .21.15.47.55.39A8.1 8.1 0 0 0 16 8.2C16 3.67 12.42 0 8 0Z"/></svg>
GitHub
</a>
</div>
<div class="shot-shell">
<img class="shot-image" src="assets/faro-tui.png" alt="Faro terminal UI showing a filtered network request list, request detail pane, and syntax-highlighted JSON response body.">
</div>
</section>
<section id="features" class="wrap section">
<div class="eyebrow mono">Features</div>
<h2>Everything useful from DevTools, without leaving the terminal.</h2>
<p class="section-copy">Faro is intentionally narrow: browser investigation, request replay, storage inspection, scripts, and database-backed debugging.</p>
<div class="grid">
<article class="card"><div class="card-icon mono">⊟</div><h3>Network workbench</h3><p>Route drilldown, regex filters, presets, response bodies, curl export, replay, and request timing in one navigable view.</p></article>
<article class="card"><div class="card-icon mono">›_</div><h3>Console and eval</h3><p>Inspect logs, errors, warnings, stack traces, and run JavaScript through your configured editor workflow.</p></article>
<article class="card"><div class="card-icon mono">⇅</div><h3>WebSocket frames</h3><p>Stream sent and received frames with opcode labels, payload inspection, JSON formatting, and filtering.</p></article>
<article class="card"><div class="card-icon mono">▤</div><h3>Storage and cookies</h3><p>View and edit localStorage, sessionStorage, and cookies with two-pane details and editor handoff.</p></article>
<article class="card"><div class="card-icon mono">▦</div><h3>Read-only SQL</h3><p>Query the capture database safely from the TUI, CLI, scripts, or MCP without mutating the store.</p></article>
<article class="card"><div class="card-icon mono">ƒ</div><h3>Scripts</h3><p>Save and run Rhai scripts against Faro data and browser capabilities for repeatable investigations.</p></article>
</div>
</section>
<section id="agents" class="wrap section">
<div class="eyebrow mono">Agents</div>
<h2>Your coding agent can inspect the same capture.</h2>
<p class="section-copy">Faro exposes an agent-friendly CLI and a stdio MCP server for listing requests, reading response bodies, replaying calls, inspecting console errors, querying storage, and running guarded SQL.</p>
<div class="terminal mono">
<pre>{
"mcpServers": {
"faro": { "command": "faro", "args": ["mcp"] }
}
}</pre>
</div>
</section>
<section id="cli" class="wrap section">
<div class="eyebrow mono">CLI</div>
<h2>Useful without opening the TUI.</h2>
<div class="terminal mono">
<pre><span class="muted"># capture a page</span>
$ faro capture http://localhost:5173 --for 15s --json
<span class="muted"># inspect failing requests under a route</span>
$ faro requests --route /api --filter "status >= 400" --json
<span class="muted"># copy a full reproducible request</span>
$ faro request curl req_123
<span class="muted"># query the SQLite capture</span>
$ faro sql "select * from requests where status_code >= 500"</pre>
</div>
</section>
<section id="install" class="wrap section">
<div class="eyebrow mono">Install</div>
<h2>Quick start from source.</h2>
<p class="section-copy">Requires stable Rust, a Chromium-family browser, and curl for replay workflows.</p>
<div class="terminal mono">
<pre>$ git clone https://github.com/nullslate/faro
$ cd faro
$ cargo install --path crates/app
$ faro http://localhost:5173</pre>
</div>
</section>
</main>
<footer>
<div class="wrap mono">faro · MIT licensed · faro-core · faro-store · faro-capture · faro-cdp</div>
</footer>
</body>
</html>