-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
643 lines (613 loc) · 24.9 KB
/
index.html
File metadata and controls
643 lines (613 loc) · 24.9 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
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
<!doctype html>
<html lang="pt-BR">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>lab.devi.tools — URL pública pro seu projeto local</title>
<meta name="description" content="Túnel reverso caseiro pra *.devi.tools. Sem SSH, sem ngrok, sem configuração.">
<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=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<style>
:root {
--bg: #0a0a14;
--bg-deep: #050510;
--surface: #11131f;
--surface-2: #161827;
--line: rgba(255,255,255,0.06);
--line-strong: rgba(255,255,255,0.12);
--text: #f3f4f6;
--muted: #9ca3af;
--muted-2: #6b7280;
--purple: #a855f7;
--indigo: #6366f1;
--orange: #fb923c;
--amber: #f59e0b;
--cyan: #22d3ee;
--teal: #14b8a6;
--pink: #ec4899;
--good: #34d399;
--bad: #f87171;
--warn: #fbbf24;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); }
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
color: var(--text);
margin: 0;
line-height: 1.55;
-webkit-font-smoothing: antialiased;
background:
radial-gradient(ellipse 80% 50% at 50% -10%, rgba(168, 85, 247, 0.15), transparent 60%),
radial-gradient(ellipse 60% 40% at 90% 30%, rgba(99, 102, 241, 0.08), transparent 60%),
var(--bg);
background-attachment: fixed;
}
code, pre, .mono {
font-family: 'JetBrains Mono', "SF Mono", Menlo, Consolas, monospace;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--purple); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }
header.site {
position: sticky; top: 0; z-index: 50;
background: rgba(10, 10, 20, 0.7);
backdrop-filter: saturate(180%) blur(14px);
-webkit-backdrop-filter: saturate(180%) blur(14px);
border-bottom: 1px solid var(--line);
}
.nav {
display: flex; align-items: center; justify-content: space-between;
padding: 16px 0;
}
.brand {
display: flex; align-items: center; gap: 10px;
font-weight: 700;
}
.brand .glyph {
display: inline-flex; align-items: center; justify-content: center;
width: 36px; height: 36px;
background: linear-gradient(135deg, var(--purple), var(--indigo));
border-radius: 8px;
color: white; font-family: 'JetBrains Mono', monospace; font-weight: 700;
font-size: 14px;
}
.brand .name {
display: flex; flex-direction: column; line-height: 1;
}
.brand .name .top { font-size: 15px; font-weight: 700; letter-spacing: -0.2px; }
.brand .name .bot { font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-top: 3px; }
.nav-links { display: none; gap: 28px; }
@media (min-width: 880px) { .nav-links { display: flex; } }
.nav-links a {
color: var(--muted); font-size: 14px; font-weight: 500;
transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
width: 36px; height: 36px;
display: inline-flex; align-items: center; justify-content: center;
border-radius: 8px;
color: var(--muted);
transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.btn {
display: inline-flex; align-items: center; gap: 8px;
padding: 10px 18px;
font-size: 14px; font-weight: 600;
border-radius: 10px;
border: 1px solid transparent;
cursor: pointer;
transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
background: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
color: white;
box-shadow: 0 8px 24px -8px rgba(168, 85, 247, 0.5);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(168, 85, 247, 0.7); color: white; }
.btn-ghost {
background: var(--surface);
color: var(--text);
border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 12px; }
.hero { padding: 96px 0 80px; text-align: center; }
.pill {
display: inline-flex; align-items: center; gap: 8px;
padding: 8px 16px;
background: rgba(168, 85, 247, 0.08);
border: 1px solid rgba(168, 85, 247, 0.2);
border-radius: 999px;
color: #e9d5ff;
font-size: 13px; font-weight: 500;
margin-bottom: 32px;
}
.pill .spark { color: var(--purple); }
h1.hero-title {
font-size: clamp(40px, 7vw, 80px);
font-weight: 800;
line-height: 1.05;
letter-spacing: -2px;
margin: 0 0 24px;
background: linear-gradient(180deg, #ffffff 0%, #c4c4d4 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.hero-sub {
font-size: clamp(16px, 2vw, 19px);
color: var(--muted);
max-width: 580px;
margin: 0 auto 40px;
line-height: 1.6;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.platform-hint {
color: var(--muted-2); font-size: 13px; margin-top: 12px;
}
section { padding: 80px 0; }
section.tight { padding: 56px 0; }
.section-eyebrow {
text-align: center;
color: var(--purple);
font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
margin-bottom: 16px;
}
h2.section-title {
text-align: center;
font-size: clamp(28px, 4vw, 44px);
font-weight: 700;
letter-spacing: -1px;
margin: 0 0 20px;
}
.section-sub {
text-align: center;
color: var(--muted);
font-size: 16px;
max-width: 620px;
margin: 0 auto 48px;
}
.features-row {
display: grid; grid-template-columns: 1fr; gap: 24px;
max-width: 920px; margin: 0 auto;
}
@media (min-width: 720px) {
.features-row { grid-template-columns: repeat(3, 1fr); }
}
.feat {
text-align: center;
padding: 8px;
}
.feat-icon {
width: 56px; height: 56px;
border-radius: 14px;
display: inline-flex; align-items: center; justify-content: center;
margin-bottom: 18px;
color: white;
}
.feat-icon svg { width: 24px; height: 24px; }
.feat-icon.purple { background: linear-gradient(135deg, #c084fc, #7c3aed); box-shadow: 0 8px 20px -8px rgba(168, 85, 247, 0.5); }
.feat-icon.orange { background: linear-gradient(135deg, #fdba74, #ea580c); box-shadow: 0 8px 20px -8px rgba(251, 146, 60, 0.5); }
.feat-icon.pink { background: linear-gradient(135deg, #f9a8d4, #db2777); box-shadow: 0 8px 20px -8px rgba(236, 72, 153, 0.5); }
.feat h3 {
font-size: 18px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.2px;
}
.feat p {
color: var(--muted); margin: 0; font-size: 14.5px; line-height: 1.5;
}
.modes {
display: grid; grid-template-columns: 1fr; gap: 24px;
max-width: 1000px; margin: 0 auto;
}
@media (min-width: 800px) {
.modes { grid-template-columns: 1fr 1fr; }
}
.mode-card {
position: relative;
background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
border: 1px solid var(--line);
border-radius: 20px;
padding: 32px;
transition: border-color 0.2s, transform 0.2s;
}
.mode-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.mode-card .mode-icon {
width: 52px; height: 52px;
border-radius: 12px;
display: inline-flex; align-items: center; justify-content: center;
margin-bottom: 20px;
color: white;
}
.mode-card .mode-icon svg { width: 22px; height: 22px; }
.mode-card.folder .mode-icon { background: linear-gradient(135deg, #60a5fa, #2563eb); box-shadow: 0 8px 20px -8px rgba(96, 165, 250, 0.5); }
.mode-card.port .mode-icon { background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 8px 20px -8px rgba(251, 191, 36, 0.5); }
.mode-card h3 {
font-size: 22px; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.4px;
}
.mode-card .mode-tag {
color: var(--muted); font-size: 13px; margin: 0 0 20px;
}
.mode-card ol {
margin: 0 0 20px; padding-left: 22px;
font-size: 14.5px; color: #d1d5db;
}
.mode-card ol li { margin-bottom: 8px; }
.mode-card ol li ul { margin-top: 6px; padding-left: 18px; font-size: 13.5px; color: var(--muted); }
.mode-card ol li ul li { margin-bottom: 4px; }
.mode-card .card-footer {
padding-top: 16px;
border-top: 1px dashed var(--line);
color: var(--muted);
font-size: 13.5px;
}
.mode-card .card-footer strong { color: var(--text); font-weight: 600; }
code {
background: rgba(168, 85, 247, 0.12);
border: 1px solid rgba(168, 85, 247, 0.18);
color: #e9d5ff;
padding: 1px 6px;
border-radius: 5px;
font-size: 13px;
}
pre {
background: var(--surface);
border: 1px solid var(--line);
border-radius: 12px;
padding: 20px 22px;
overflow-x: auto;
font-size: 13px;
line-height: 1.6;
color: #d1d5db;
margin: 16px 0;
}
pre code {
background: none; border: none; padding: 0; color: inherit; font-size: inherit;
}
.pitfall {
background: linear-gradient(135deg, rgba(251, 146, 60, 0.08), rgba(251, 146, 60, 0.02));
border: 1px solid rgba(251, 146, 60, 0.2);
border-left: 3px solid var(--orange);
border-radius: 0 12px 12px 0;
padding: 18px 22px;
margin: 16px 0;
font-size: 14.5px;
color: #fde68a;
}
.pitfall strong { color: #fed7aa; }
.pitfalls-list { max-width: 800px; margin: 0 auto; }
.pitfalls-list p { color: var(--muted); font-size: 14px; margin: 12px 0; }
.diagram-wrap {
max-width: 880px; margin: 0 auto;
background: var(--surface);
border: 1px solid var(--line);
border-radius: 16px;
padding: 8px;
overflow-x: auto;
}
.diagram-wrap pre {
border: none; background: transparent; margin: 0;
font-size: 11.5px; line-height: 1.5;
color: #a5b4fc;
}
.url-block {
max-width: 620px; margin: 0 auto;
background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(99, 102, 241, 0.04));
border: 1px solid rgba(168, 85, 247, 0.2);
border-radius: 12px;
padding: 22px 28px;
text-align: center;
font-family: 'JetBrains Mono', monospace;
font-size: 17px;
color: #e9d5ff;
}
.url-block .scheme { color: var(--muted); }
.url-block .slug { color: var(--purple); font-weight: 600; }
.url-block .dom { color: #d1d5db; }
.url-caption {
text-align: center; color: var(--muted-2); font-size: 13.5px;
max-width: 580px; margin: 18px auto 0;
}
footer.site {
background: var(--bg-deep);
border-top: 1px solid var(--line);
padding: 56px 0 32px;
margin-top: 80px;
}
.footer-grid {
display: grid;
grid-template-columns: 1fr;
gap: 40px;
margin-bottom: 40px;
}
@media (min-width: 720px) {
.footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.footer-brand p {
color: var(--muted); font-size: 14px; margin: 14px 0 0; max-width: 280px;
}
.footer-col h4 {
font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase;
letter-spacing: 1px; margin: 0 0 16px;
}
.footer-col a {
display: block; color: #d1d5db; font-size: 14px; padding: 4px 0;
}
.footer-col a:hover { color: var(--purple); }
.footer-bot {
display: flex; justify-content: space-between; align-items: center;
padding-top: 24px;
border-top: 1px solid var(--line);
color: var(--muted-2); font-size: 13px; flex-wrap: wrap; gap: 12px;
}
.footer-bot a { color: var(--muted); font-size: 13px; }
</style>
</head>
<body>
<header class="site">
<div class="wrap nav">
<a href="/" class="brand">
<span class="glyph"></></span>
<span class="name">
<span class="top">lab</span>
<span class="bot">devi tools</span>
</span>
</a>
<nav class="nav-links">
<a href="#como-usar">Como usar</a>
<a href="#pegadinhas">Pegadinhas</a>
<a href="#arquitetura">Arquitetura</a>
<a href="#download">Download</a>
</nav>
<div class="nav-actions">
<a href="https://github.com/devitools/lab" class="icon-btn" aria-label="GitHub">
<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 .5C5.7.5.5 5.7.5 12c0 5.1 3.3 9.4 7.8 10.9.6.1.8-.3.8-.6v-2c-3.2.7-3.9-1.5-3.9-1.5-.5-1.4-1.3-1.7-1.3-1.7-1-.7.1-.7.1-.7 1.2.1 1.8 1.2 1.8 1.2 1 1.8 2.7 1.3 3.4 1 .1-.8.4-1.3.7-1.6-2.6-.3-5.3-1.3-5.3-5.7 0-1.3.5-2.3 1.2-3.1-.1-.3-.5-1.5.1-3.1 0 0 1-.3 3.3 1.2.9-.3 2-.4 3-.4s2 .1 3 .4c2.3-1.6 3.3-1.2 3.3-1.2.6 1.6.2 2.8.1 3.1.8.8 1.2 1.9 1.2 3.1 0 4.4-2.7 5.4-5.3 5.7.4.4.8 1.1.8 2.2v3.3c0 .3.2.7.8.6 4.5-1.5 7.8-5.8 7.8-10.9C23.5 5.7 18.3.5 12 .5z"/></svg>
</a>
<a href="#download" class="btn btn-primary">
<svg viewBox="0 0 24 24" fill="white"><polygon points="6 4 20 12 6 20 6 4"/></svg>
Baixar
</a>
</div>
</div>
</header>
<section class="hero">
<div class="narrow">
<span class="pill">
<span class="spark">✦</span>
Túnel reverso pra projetos locais
</span>
<h1 class="hero-title">URL pública pro seu projeto local em 1 clique</h1>
<p class="hero-sub">
Abra o <strong style="color: var(--text);">lab</strong> no seu computador, escolha uma pasta
ou uma porta, e receba um link HTTPS pra mandar pro amigo. Sem SSH, sem ngrok, sem cadastro.
</p>
<div class="hero-cta" id="download">
<a href="https://github.com/devitools/lab/releases/download/latest/lab.exe" class="btn btn-primary btn-lg">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3v12m0 0l-4-4m4 4l4-4M5 21h14"/></svg>
Windows · lab.exe
</a>
<a href="https://github.com/devitools/lab/releases/download/latest/lab-macos.zip" class="btn btn-ghost btn-lg">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3v12m0 0l-4-4m4 4l4-4M5 21h14"/></svg>
macOS · lab.app
</a>
<a href="https://github.com/devitools/lab/releases/download/latest/lab-linux.AppImage" class="btn btn-ghost btn-lg">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3v12m0 0l-4-4m4 4l4-4M5 21h14"/></svg>
Linux · AppImage
</a>
</div>
<p class="platform-hint">
Single-file ~15MB. Windows 10+, macOS (Apple Silicon), Linux x86_64. Sem dependência externa.
</p>
</div>
</section>
<section class="tight">
<div class="wrap">
<div class="features-row">
<div class="feat">
<div class="feat-icon purple">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"/></svg>
</div>
<h3>Um clique</h3>
<p>Sem terminal, sem chave SSH, sem token de cadastro. Abriu, escolheu, clicou.</p>
</div>
<div class="feat">
<div class="feat-icon orange">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>
</div>
<h3>HTTPS automático</h3>
<p>Wildcard <code>*.devi.tools</code> com certificado renovado sozinho. URL pronta pra mandar.</p>
</div>
<div class="feat">
<div class="feat-icon pink">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>
</div>
<h3>Open source</h3>
<p>Cliente Python, servidor Go, tudo no GitHub. Sem rastreamento, sem analytics, sem firula.</p>
</div>
</div>
</div>
</section>
<section id="como-usar">
<div class="wrap">
<p class="section-eyebrow">Como usar</p>
<h2 class="section-title">Dois jeitos de compartilhar</h2>
<p class="section-sub">
Aponte uma pasta no disco, ou uma porta de dev server. O lab cuida do resto.
</p>
<div class="modes">
<div class="mode-card folder">
<div class="mode-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"/></svg>
</div>
<h3>Compartilhar pasta</h3>
<p class="mode-tag">Pra HTML estático ou build pronto</p>
<ol>
<li>Abrir o lab e marcar <strong>"Uma pasta"</strong></li>
<li>Escolher a pasta com seu <code>index.html</code></li>
<li>Clicar <strong>Compartilhar</strong></li>
<li>Copiar a URL e mandar pro amigo</li>
</ol>
<div class="card-footer">
Você salva um arquivo, a próxima request já lê a versão nova. Nada de WebStorm,
nada de <code>Allowed Hosts</code>.
</div>
</div>
<div class="mode-card port">
<div class="mode-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"/></svg>
</div>
<h3>Compartilhar porta</h3>
<p class="mode-tag">Pra dev server (Vite, Next, Java, PHP…)</p>
<ol>
<li>Subir o servidor local: <code>npm run dev</code> ou similar</li>
<li>No lab marcar <strong>"Uma porta local"</strong></li>
<li>Digitar a porta (Vite 5173, Next 3000…)</li>
<li>Clicar <strong>Compartilhar</strong></li>
</ol>
<div class="card-footer">
HMR funciona — o amigo vê suas mudanças ao vivo no navegador dele.
</div>
</div>
</div>
<p style="text-align: center; color: var(--muted); margin-top: 32px; font-size: 14px;">
Os dois modos têm <strong style="color: var(--text);">a mesma vida útil</strong>:
a URL fica de pé enquanto o lab tiver aberto. Fechou o app → caiu.
</p>
</div>
</section>
<section id="pegadinhas">
<div class="narrow">
<p class="section-eyebrow">Atenção</p>
<h2 class="section-title">Pegadinhas comuns</h2>
<div class="pitfalls-list">
<div class="pitfall">
<strong>Modo porta: "Blocked request. This host is not allowed."</strong><br>
Vite, Next e similares rejeitam Host externo por padrão. No <code>vite.config.js</code>:
</div>
<pre><code>export default {
server: {
host: true,
allowedHosts: ['.devi.tools'],
},
}</code></pre>
<p>
<strong style="color: var(--text);">CRA:</strong>
<code>HOST=0.0.0.0 DANGEROUSLY_DISABLE_HOST_CHECK=true npm start</code><br>
<strong style="color: var(--text);">Next.js:</strong>
<code>next dev -H 0.0.0.0</code>
</p>
<div class="pitfall" style="margin-top: 28px;">
<strong>Pra HTML puro, prefira o modo pasta</strong><br>
Não precisa de WebStorm built-in, VSCode Live Server nem
<code>python -m http.server</code>. O lab serve direto do disco.
</div>
<div class="pitfall" style="margin-top: 28px;">
<strong>Fechou o lab = URL cai</strong><br>
Pra entregar trabalho que precisa sobreviver com seu PC desligado,
use GitHub Pages, Netlify ou Vercel. O lab é pra demo ao vivo.
</div>
</div>
</div>
</section>
<section id="arquitetura">
<div class="wrap">
<p class="section-eyebrow">Arquitetura</p>
<h2 class="section-title">O caminho da request</h2>
<p class="section-sub">
Em ambos os modos o lab abre um WebSocket persistente com o servidor.
Cada request do amigo é encapsulada num envelope e roteada pelo túnel.
</p>
<div class="diagram-wrap">
<pre> MEU COMPUTADOR SERVIDOR (devi.tools)
┌─────────────────────────┐ ┌────────────────────────────┐
│ │ │ │
│ ┌───────────────┐ │ │ ┌──────────────────┐ │
│ │ lab │ │ │ │ lab │ │
│ └───────┬───────┘ │ │ └─────────┬────────┘ │
│ │ │ │ │ │
│ ┌────────┴────────┐ │ │ ▼ │
│ │ │ │ │ *.devi.tools │
│ ▼ ▼ │ │ (URL pública, │
│ [Pasta] [Porta] │ │ HTTPS automático) │
│ │ │ │ │ │ │
│ ▼ ▼ │ │ │ │
│ disco localhost │ │ │ │
│ local :5173 │ │ │ │
│ │ │ │ │ │ │
└───┴──────┬──────────┴───┘ └───────────────┼────────────┘
│ │
│ túnel WebSocket persistente │
└──────►──────────────────────►────────────────┘
(enquanto o lab o amigo abre
estiver aberto) <slug>.devi.tools
▼
┌──────────────────┐
│ amigo dela │
│ (chrome) │
└──────────────────┘</pre>
</div>
</div>
</section>
<section class="tight">
<div class="wrap">
<p class="section-eyebrow">Exemplo</p>
<h2 class="section-title">URL gerada</h2>
<p class="section-sub">
Nome amigável é opcional. Sempre vem com 6 letrinhas aleatórias no final pra ninguém adivinhar.
</p>
<div class="url-block">
<span class="scheme">https://</span><span class="slug">meu-tcc-h7k2nq</span><span class="dom">.devi.tools</span>
</div>
<p class="url-caption">
A URL existe só enquanto o lab tiver aberto. Fechou, caiu — nada fica armazenado no servidor.
</p>
</div>
</section>
<footer class="site">
<div class="wrap">
<div class="footer-grid">
<div class="footer-brand">
<a href="/" class="brand">
<span class="glyph"></></span>
<span class="name">
<span class="top">lab</span>
<span class="bot">devi tools</span>
</span>
</a>
<p>Túnel reverso caseiro pra <code>*.devi.tools</code>.</p>
</div>
<div class="footer-col">
<h4>Download</h4>
<a href="https://github.com/devitools/lab/releases/download/latest/lab.exe">Windows · lab.exe</a>
<a href="https://github.com/devitools/lab/releases/download/latest/lab-macos.zip">macOS · lab.app</a>
<a href="https://github.com/devitools/lab/releases/download/latest/lab-linux.AppImage">Linux · AppImage</a>
<a href="https://github.com/devitools/lab/releases">Todas as versões</a>
</div>
<div class="footer-col">
<h4>Projeto</h4>
<a href="https://github.com/devitools/lab">GitHub</a>
<a href="https://github.com/devitools/lab#readme">README</a>
<a href="https://github.com/devitools/lab/issues">Issues</a>
</div>
<div class="footer-col">
<h4>Ecossistema</h4>
<a href="https://devi.tools">devi.tools</a>
<a href="https://github.com/devitools">GitHub Org</a>
</div>
</div>
<div class="footer-bot">
<span>© 2026 Devitools · open source MIT</span>
<span><code>lab</code> Go + Python · binário ~15MB</span>
</div>
</div>
</footer>
</body>
</html>