-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocs.html
More file actions
590 lines (524 loc) · 17.2 KB
/
Copy pathdocs.html
File metadata and controls
590 lines (524 loc) · 17.2 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
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>local-prospect — Go CLI Lead Finder & Website Auditor</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
<style>
:root {
--bg: #0b0f19;
--bg-card: rgba(19, 26, 43, 0.7);
--bg-card-hover: rgba(28, 38, 61, 0.8);
--border: rgba(255, 255, 255, 0.08);
--border-accent: rgba(125, 86, 244, 0.4);
--text: #f1f5f9;
--text-muted: #94a3b8;
--accent-purple: #7d56f4;
--accent-purple-glow: rgba(125, 86, 244, 0.25);
--accent-cyan: #04b5d5;
--tier-1-nosite: #ff4672;
--tier-1-broken: #ff9f1c;
--tier-2-nossl: #2ec4b6;
--tier-3-ok: #10b981;
--font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
--font-mono: 'JetBrains Mono', monospace;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: var(--bg);
color: var(--text);
font-family: var(--font-main);
line-height: 1.6;
overflow-x: hidden;
padding-bottom: 80px;
background-image:
radial-gradient(circle at 15% 15%, rgba(125, 86, 244, 0.12) 0%, transparent 40%),
radial-gradient(circle at 85% 80%, rgba(4, 181, 213, 0.08) 0%, transparent 40%);
background-attachment: fixed;
}
.container {
max-width: 1140px;
margin: 0 auto;
padding: 0 24px;
}
/* Header & Hero */
header {
padding: 60px 0 40px;
text-align: center;
position: relative;
}
.badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 14px;
border-radius: 9999px;
background: rgba(125, 86, 244, 0.15);
border: 1px solid var(--border-accent);
color: #b89bff;
font-size: 0.85rem;
font-weight: 600;
letter-spacing: 0.03em;
margin-bottom: 20px;
}
.badge-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background-color: #10b981;
box-shadow: 0 0 10px #10b981;
}
h1 {
font-size: 3.5rem;
font-weight: 800;
letter-spacing: -0.03em;
background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #7d56f4 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 16px;
line-height: 1.1;
}
p.subtitle {
font-size: 1.25rem;
color: var(--text-muted);
max-width: 680px;
margin: 0 auto 32px;
text-wrap: balance;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 16px;
margin-top: 40px;
}
.stat-card {
background: var(--bg-card);
backdrop-filter: blur(12px);
border: 1px solid var(--border);
border-radius: 16px;
padding: 20px;
text-align: left;
transition: all 0.25s ease;
}
.stat-card:hover {
border-color: var(--border-accent);
transform: translateY(-2px);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.stat-label {
font-size: 0.85rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
font-weight: 600;
margin-bottom: 6px;
}
.stat-value {
font-size: 1.5rem;
font-weight: 700;
color: var(--text);
display: flex;
align-items: center;
gap: 8px;
}
/* Section Component */
section {
margin-top: 60px;
}
.section-title {
font-size: 1.75rem;
font-weight: 700;
letter-spacing: -0.02em;
margin-bottom: 8px;
display: flex;
align-items: center;
gap: 10px;
}
.section-subtitle {
color: var(--text-muted);
margin-bottom: 28px;
}
/* Architecture Flow Grid */
.flow-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
position: relative;
}
@media (max-width: 900px) {
.flow-grid {
grid-template-columns: 1fr;
}
}
.flow-step {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 16px;
padding: 24px 20px;
position: relative;
transition: all 0.25s ease;
}
.flow-step:hover {
border-color: var(--accent-cyan);
background: var(--bg-card-hover);
}
.step-number {
width: 32px;
height: 32px;
border-radius: 8px;
background: rgba(4, 181, 213, 0.15);
color: var(--accent-cyan);
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
font-family: var(--font-mono);
font-size: 0.9rem;
margin-bottom: 16px;
}
.flow-step h3 {
font-size: 1.1rem;
font-weight: 700;
margin-bottom: 8px;
}
.flow-step p {
font-size: 0.9rem;
color: var(--text-muted);
line-height: 1.5;
}
/* Lead Tiers Grid */
.tiers-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 20px;
}
.tier-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 16px;
padding: 24px;
position: relative;
overflow: hidden;
transition: all 0.25s ease;
}
.tier-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
}
.tier-card.t1-nosite::before { background: var(--tier-1-nosite); }
.tier-card.t1-broken::before { background: var(--tier-1-broken); }
.tier-card.t2-nossl::before { background: var(--tier-2-nossl); }
.tier-card.t3-ok::before { background: var(--tier-3-ok); }
.tier-card:hover {
transform: translateY(-4px);
box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}
.tier-tag {
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
padding: 4px 10px;
border-radius: 6px;
display: inline-block;
margin-bottom: 12px;
}
.t1-nosite .tier-tag { background: rgba(255, 70, 114, 0.15); color: var(--tier-1-nosite); }
.t1-broken .tier-tag { background: rgba(255, 159, 28, 0.15); color: var(--tier-1-broken); }
.t2-nossl .tier-tag { background: rgba(46, 196, 182, 0.15); color: var(--tier-2-nossl); }
.t3-ok .tier-tag { background: rgba(16, 185, 129, 0.15); color: var(--tier-3-ok); }
.tier-card h3 {
font-size: 1.2rem;
font-weight: 700;
margin-bottom: 8px;
}
.tier-card p {
font-size: 0.9rem;
color: var(--text-muted);
margin-bottom: 16px;
}
.priority-badge {
font-size: 0.8rem;
font-weight: 600;
color: var(--text);
display: flex;
align-items: center;
gap: 6px;
}
/* Terminal Window Component */
.terminal-window {
background: #090d16;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 14px;
overflow: hidden;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
margin-top: 24px;
}
.terminal-header {
background: #131926;
padding: 12px 16px;
display: flex;
align-items: center;
gap: 8px;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.dot {
width: 12px;
height: 12px;
border-radius: 50%;
}
.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }
.terminal-title {
font-family: var(--font-mono);
font-size: 0.8rem;
color: var(--text-muted);
margin-left: auto;
margin-right: auto;
}
.terminal-body {
padding: 20px;
font-family: var(--font-mono);
font-size: 0.9rem;
color: #e2e8f0;
line-height: 1.7;
overflow-x: auto;
}
.prompt {
color: var(--accent-cyan);
user-select: none;
}
.cmd {
color: #ffffff;
font-weight: 600;
}
.output-box {
border: 1px solid var(--accent-purple);
border-radius: 10px;
padding: 16px;
margin-top: 16px;
background: rgba(125, 86, 244, 0.05);
}
.hdr-title {
background: var(--accent-purple);
color: #fff;
padding: 2px 8px;
font-weight: 700;
border-radius: 4px;
display: inline-block;
margin-bottom: 12px;
}
/* CLI Flag Matrix Table */
.table-wrapper {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 16px;
overflow: hidden;
}
table {
width: 100%;
border-collapse: collapse;
text-align: left;
}
th {
background: rgba(255, 255, 255, 0.03);
padding: 16px 20px;
font-size: 0.85rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
border-bottom: 1px solid var(--border);
}
td {
padding: 16px 20px;
font-size: 0.9rem;
border-bottom: 1px solid var(--border);
}
tr:last-child td {
border-bottom: none;
}
code {
font-family: var(--font-mono);
background: rgba(255, 255, 255, 0.06);
padding: 3px 8px;
border-radius: 6px;
color: #a5b4fc;
font-size: 0.85rem;
}
</style>
</head>
<body>
<div class="container">
<!-- Header / Hero -->
<header>
<div class="badge">
<span class="badge-dot"></span> 100% Free & Zero-Cost OpenSource Go CLI
</div>
<h1>local-prospect</h1>
<p class="subtitle">Autonomous local business lead finder & website auditor built in Go using OpenStreetMap Overpass API, concurrent goroutines, and Lipgloss terminal UI.</p>
<div class="stats-grid">
<div class="stat-card">
<div class="stat-label">API Key Cost</div>
<div class="stat-value" style="color: #10b981;">$0.00 <span style="font-size: 0.8rem; color: var(--text-muted);">(No Google/SerpAPI)</span></div>
</div>
<div class="stat-card">
<div class="stat-label">Data Provider</div>
<div class="stat-value" style="color: var(--accent-cyan);">OSM Overpass</div>
</div>
<div class="stat-card">
<div class="stat-label">Audit Engine</div>
<div class="stat-value" style="color: var(--accent-purple);">Goroutine Workers</div>
</div>
<div class="stat-card">
<div class="stat-label">Output Formats</div>
<div class="stat-value">JSON + CSV</div>
</div>
</div>
</header>
<!-- Architecture & Flow Section -->
<section>
<h2 class="section-title">⚡ How It Works</h2>
<p class="section-subtitle">End-to-end execution workflow from location query to prioritized sales lead exports.</p>
<div class="flow-grid">
<div class="flow-step">
<div class="step-number">01</div>
<h3>Discovery</h3>
<p>Queries OpenStreetMap Overpass QL for amenities, shops, and crafts in the target city without paid API keys.</p>
</div>
<div class="flow-step">
<div class="step-number">02</div>
<h3>Parse & Dedupe</h3>
<p>Extracts business name, phone, website, street address, and category tags, filtering out duplicate entries.</p>
</div>
<div class="flow-step">
<div class="step-number">03</div>
<h3>Concurrent Audit</h3>
<p>Concurrently checks site reachability (5s timeout), SSL validity, mobile viewport tag, and tech stack signatures.</p>
</div>
<div class="flow-step">
<div class="step-number">04</div>
<h3>Rank & Export</h3>
<p>Sorts leads into 4 priority tiers and exports formatted JSON & CSV files alongside a Lipgloss terminal summary.</p>
</div>
</div>
</section>
<!-- Lead Priority Tiers -->
<section>
<h2 class="section-title">🎯 Lead Classification Tiers</h2>
<p class="section-subtitle">Businesses are automatically audited and sorted by prime outreach value.</p>
<div class="tiers-grid">
<div class="tier-card t1-nosite">
<span class="tier-tag">Rank 1 · Highest Value</span>
<h3>Tier 1: No Website</h3>
<p>Business is active in public registry but has no website listed. Prime target for building a brand new site.</p>
<div class="priority-badge">🔥 Highest Sales Conversion</div>
</div>
<div class="tier-card t1-broken">
<span class="tier-tag">Rank 2 · High Value</span>
<h3>Tier 1: Broken Site</h3>
<p>Website is listed but returned a 4xx/5xx HTTP status code, connection timeout, or DNS failure.</p>
<div class="priority-badge">⚡ Immediate Repair Offer</div>
</div>
<div class="tier-card t2-nossl">
<span class="tier-tag">Rank 3 · Medium Value</span>
<h3>Tier 2: No SSL / Mobile</h3>
<p>Site works, but lacks SSL (HTTPS security) or missing standard <code><meta name="viewport"></code> responsive tag.</p>
<div class="priority-badge">📱 Mobile Redesign Target</div>
</div>
<div class="tier-card t3-ok">
<span class="tier-tag">Rank 4 · Low Value</span>
<h3>Tier 3: Existing Site</h3>
<p>Site is reachable (HTTP 200), secure over HTTPS, and mobile responsive with detected tech stack (e.g. WordPress, Wix).</p>
<div class="priority-badge">✅ Lower Pitch Priority</div>
</div>
</div>
</section>
<!-- CLI Interactive Command Reference -->
<section>
<h2 class="section-title">💻 Command Line Reference</h2>
<p class="section-subtitle">Available flags and terminal usage patterns.</p>
<div class="table-wrapper">
<table>
<thead>
<tr>
<th>Flag</th>
<th>Short</th>
<th>Description</th>
<th>Default</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>--location</code></td>
<td><code>-l</code></td>
<td>Target city/town name (e.g., <code>"Fountain Hills, AZ"</code> or <code>"Scottsdale"</code>)</td>
<td><em>Required</em></td>
</tr>
<tr>
<td><code>--category</code></td>
<td><code>-c</code></td>
<td>Business category filter (e.g. <code>plumber</code>, <code>restaurant</code>, <code>hairdresser</code>, <code>car_repair</code>, <code>all</code>)</td>
<td><code>"all"</code></td>
</tr>
<tr>
<td><code>--output</code></td>
<td><code>-o</code></td>
<td>Output file path (exports sibling <code>.json</code> and <code>.csv</code>)</td>
<td><code>"./leads.json"</code></td>
</tr>
<tr>
<td><code>--concurrency</code></td>
<td><code>-n</code></td>
<td>Max concurrent website audit worker goroutines</td>
<td><code>15</code></td>
</tr>
</tbody>
</table>
</div>
<!-- Terminal Output Mock -->
<div class="terminal-window">
<div class="terminal-header">
<div class="dot red"></div>
<div class="dot yellow"></div>
<div class="dot green"></div>
<div class="terminal-title">bash — local-prospect audit sample</div>
</div>
<div class="terminal-body">
<div><span class="prompt">$</span> <span class="cmd">./local-prospect --location "Scottsdale, AZ" --category restaurant --output ./leads.json</span></div>
<div style="color: #94a3b8; margin-top: 8px;">🔍 Discovering businesses in 'Scottsdale, AZ' (Category: 'restaurant')...</div>
<div style="color: #94a3b8;">📌 Found 518 raw business records. Auditing websites with concurrency=15...</div>
<div class="output-box">
<div class="hdr-title">LOCAL-PROSPECT LEAD AUDIT SUMMARY</div>
<div>📍 Target Location : Scottsdale, AZ</div>
<div>🏷️ Category Filter : restaurant</div>
<div>📊 Total Leads : 518</div>
<div>⏱️ Execution Time : 21.706s</div>
<br>
<div style="color: #04b5d5; font-weight: bold;">LEAD BREAKDOWN BY TIER:</div>
<div style="color: #ff4672;"> • TIER 1 (NO WEBSITE) : 284 leads [TOP PROSPECTS]</div>
<div style="color: #ff9f1c;"> • TIER 1 (BROKEN SITE) : 40 leads [NEEDS NEW SITE]</div>
<div style="color: #2ec4b6;"> • TIER 2 (NO SSL / MOBILE) : 12 leads [UPGRADE CANDIDATE]</div>
<div style="color: #a7a7a7;"> • TIER 3 (EXISTING SITE) : 182 leads</div>
<br>
<div style="color: #04b5d5; font-weight: bold;">FILES EXPORTED:</div>
<div> 📄 JSON: leads.json</div>
<div> 📊 CSV : leads.csv</div>
</div>
</div>
</div>
</section>
</div>
</body>
</html>