struct-cli 0.5.4

A smarter tree command with intelligent defaults. Filters out common clutter like node_modules and venv, supports custom ignore patterns, and includes advanced features such as file search, directory summaries, size-aware filtering, and git integration.
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
<!DOCTYPE html>
<html lang="en" class="scroll-smooth">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Struct: tree with a developer brain.</title>
    
    <!-- Tailwind CSS -->
    <script src="https://cdn.tailwindcss.com"></script>
    
    <!-- Lucide Icons -->
    <script src="https://unpkg.com/lucide@latest"></script>
    
    <!-- Fonts -->
    <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@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet">
    
    <!-- Tailwind Config -->
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    fontFamily: {
                        sans: ['Inter', 'sans-serif'],
                        mono: ['JetBrains Mono', 'monospace'],
                    },
                    colors: {
                        github: {
                            dark: '#0d1117',
                            darker: '#010409',
                            border: '#30363d',
                            text: '#c9d1d9',
                            muted: '#8b949e',
                            accent: '#58a6ff',
                            green: '#3fb950',
                            blue: '#58a6ff',
                            purple: '#a371f7',
                        }
                    },
                    animation: {
                        'fade-in': 'fadeIn 0.5s ease-out',
                        'slide-up': 'slideUp 0.6s ease-out',
                        'cursor': 'cursor 1s infinite',
                    },
                    keyframes: {
                        fadeIn: {
                            '0%': { opacity: '0' },
                            '100%': { opacity: '1' },
                        },
                        slideUp: {
                            '0%': { opacity: '0', transform: 'translateY(20px)' },
                            '100%': { opacity: '1', transform: 'translateY(0)' },
                        },
                        cursor: {
                            '0%, 100%': { opacity: '1' },
                            '50%': { opacity: '0' },
                        }
                    }
                }
            }
        }
    </script>
    
    <!-- External Stylesheet -->
    <link rel="stylesheet" href="style.css">
</head>
<body class="antialiased">
    <!-- Background -->
    <div class="fixed inset-0 star-bg pointer-events-none"></div>
    
    <!-- Navigation -->
    <nav class="fixed top-0 w-full z-50 border-b border-github-border bg-github-dark/80 backdrop-blur-md">
        <div class="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex items-center justify-between h-16">
                <div class="flex items-center gap-3">
                    <div class="w-10 h-10 rounded-xl bg-gradient-to-br from-github-accent to-github-purple flex items-center justify-center shadow-lg shadow-github-accent/20">
                        <i data-lucide="folder-tree" class="w-6 h-6 text-white"></i>
                    </div>
                    <span class="font-bold text-xl tracking-tight text-white">struct</span>
                </div>
                <div class="flex items-center gap-4">
                    <a href="#features" class="text-sm text-github-muted hover:text-github-text transition-colors hidden sm:block">Features</a>
                    <a href="#install" class="text-sm text-github-muted hover:text-github-text transition-colors hidden sm:block">Install</a>
                    <button id="theme-toggle" class="theme-toggle" title="Toggle theme">
                        <i data-lucide="sun" class="w-5 h-5" id="theme-sun"></i>
                        <i data-lucide="moon" class="w-5 h-5 hidden" id="theme-moon"></i>
                    </button>
                    <a href="https://github.com/caffienerd/struct-cli" target="_blank" rel="noopener" class="inline-flex items-center gap-2 px-4 py-2 rounded-lg border border-github-border hover:border-github-accent hover:text-github-accent transition-all text-sm font-medium group">
                        <i data-lucide="github" class="w-4 h-4"></i>
                        <span>Star on GitHub</span>
                    </a>
                </div>
            </div>
        </div>
    </nav>

    <!-- Hero Section -->
    <section class="relative pt-32 pb-20 px-4 sm:px-6 lg:px-8 max-w-6xl mx-auto">
        <div class="text-center space-y-8 animate-fade-in">
            <div class="inline-flex items-center gap-2 px-3 py-1 rounded-full bg-github-border/30 border border-github-border text-xs font-medium text-github-accent mb-4">
                <span class="flex w-2 h-2 rounded-full bg-orange-500 animate-pulse"></span>
                v0.4.2 • Built with Rust 🦀 
            </div>
            
            <h1 class="text-5xl sm:text-6xl lg:text-7xl font-bold tracking-tight text-white">
                A <span class="gradient-text">tree</span> alternative
            </h1>
            
            <p class="max-w-2xl mx-auto text-lg sm:text-xl text-github-muted leading-relaxed">
                Stop drowning in dependency folders. Struct cuts through the clutter, shows your project's actual structure while intelligently hiding the noise you don't ask for.
            </p>

            <div class="flex flex-col sm:flex-row items-center justify-center gap-4 pt-4">
                <a href="#install" class="inline-flex items-center gap-2 px-6 py-3 rounded-lg bg-github-accent hover:bg-blue-600 text-white font-medium transition-all hover-lift">
                    <i data-lucide="download" class="w-5 h-5"></i>
                    Install Now
                </a>
                <a href="https://github.com/caffienerd/struct-cli" target="_blank" rel="noopener" class="inline-flex items-center gap-2 px-6 py-3 rounded-lg border border-github-border hover:bg-github-border/30 text-github-text font-medium transition-all">
                    <i data-lucide="external-link" class="w-5 h-5"></i>
                    View on GitHub
                </a>
            </div>
        </div>

        <!-- Terminal Demo -->
        <div class="mt-16 relative max-w-3xl mx-auto animate-slide-up" style="animation-delay: 0.2s">
            <div class="rounded-xl overflow-hidden border border-github-border terminal-shadow" style="background-color: var(--bg-secondary);">
                <!-- Terminal Header -->
                <div class="flex items-center gap-2 px-4 py-3 border-b border-github-border" style="background-color: var(--bg-primary);">
                    <div class="flex gap-2">
                        <div class="w-3 h-3 rounded-full bg-red-500"></div>
                        <div class="w-3 h-3 rounded-full bg-yellow-500"></div>
                        <div class="w-3 h-3 rounded-full bg-green-500"></div>
                    </div>
                    <div class="flex-1 text-center">
                        <span class="text-xs text-github-muted font-mono">bash — struct</span>
                    </div>
                    <div class="w-16"></div>
                </div>
                
                <!-- Terminal Content -->
                <div class="p-6 font-mono text-sm overflow-x-auto">
                    <div class="space-y-4">
                        <!-- Before -->
                        <div>
                            <div class="text-github-muted mb-2"># Before: tree command - chaos</div>
                            <div class="text-red-400 flex items-center gap-2">
                                <span>$</span>
                                <span class="text-github-text">tree -L 3</span>
                            </div>
                            <div class="text-github-muted mt-2 pl-4 opacity-70">
                                venv/<br>
                                ├── lib/<br>
                                │   ├── python3.11/<br>
                                │   │   ├── site-packages/<br>
                                │   │   │   ├── pip/<br>
                                │   │   │   │   ├── __init__.py<br>
                                │   │   │   │   ├── ... (2000+ files you didn't ask for)
                            </div>
                        </div>
                        
                        <!-- After -->
                        <div class="pt-2 border-t border-github-border/30">
                            <div class="text-github-muted mb-2"># After: struct</div>
                            <div class="text-github-green flex items-center gap-2">
                                <span>$</span>
                                <span class="text-github-text">struct 3</span>
                            </div>
                            <div class="mt-2 pl-4">
                                <div class="text-github-text">venv/ <span class="syntax-ignored">(2741 files ignored)</span></div>
                                <div class="syntax-dir">src/</div>
                                <div class="pl-4 syntax-file">├── main.rs</div>
                                <div class="pl-4 syntax-file">└── lib.rs</div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- Glow effect -->
            <div class="absolute -inset-1 bg-gradient-to-r from-github-accent/20 to-purple-500/20 rounded-xl blur-2xl -z-10 opacity-50"></div>
        </div>
    </section>

    <!-- Support Section -->
    <section class="py-16 px-4 sm:px-6 lg:px-8 max-w-6xl mx-auto">
        <div class="relative overflow-hidden rounded-2xl border border-github-accent/20 p-8 sm:p-12" style="background: linear-gradient(to right, rgba(9, 105, 218, 0.1), rgba(111, 66, 193, 0.1), rgba(9, 105, 218, 0.1));">
            <!-- Accent line top -->
            <div class="absolute top-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-github-accent/50 to-transparent"></div>
            
            <div class="relative z-10 flex flex-col sm:flex-row items-center justify-between gap-8">
                <div class="flex-1">
                    <h3 class="text-xl sm:text-2xl font-bold text-white mb-2">Like the project?</h3>
                    <p class="text-github-muted leading-relaxed">
                        A star on GitHub helps to keep it alive and thriving. Your support means everything to the development of Struct. Thanks for being part of this journey!
                    </p>
                </div>
                <div class="flex-shrink-0">
                    <a href="https://github.com/caffienerd/struct-cli" target="_blank" rel="noopener" class="inline-flex items-center gap-2 px-6 py-3 rounded-lg bg-github-accent hover:bg-blue-600 text-white font-semibold transition-all hover-lift shadow-lg shadow-github-accent/20">
                        <i data-lucide="star" class="w-5 h-5"></i>
                        Star on GitHub
                    </a>
                </div>
            </div>

            <!-- Accent line bottom -->
            <div class="absolute bottom-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-github-accent/50 to-transparent"></div>
        </div>
    </section>

    <!-- Why Struct Section -->
    <section id="why" class="py-20 px-4 sm:px-6 lg:px-8 max-w-6xl mx-auto border-t border-github-border">
        <div class="text-center mb-16">
            <h2 class="text-3xl sm:text-4xl font-bold text-white mb-4">Why Struct?</h2>
            <p class="text-github-muted max-w-2xl mx-auto">Built by developer, for developers. No more scrolling through endless dependency folders.</p>
        </div>

        <div class="grid sm:grid-cols-2 lg:grid-cols-3 gap-6">
            <!-- Signal over noise -->
            <div class="feature-card group p-6 rounded-xl border border-github-border hover:border-github-accent/50 transition-all hover-lift" style="background-color: rgba(22, 27, 34, 0.5);">
                <div class="w-12 h-12 rounded-lg bg-blue-500/10 flex items-center justify-center mb-4 group-hover:scale-110 transition-transform">
                    <i data-lucide="eye-off" class="w-6 h-6 text-github-accent"></i>
                </div>
                <h3 class="text-lg font-semibold text-white mb-2">Signal over noise</h3>
                <p class="text-github-muted text-sm leading-relaxed">Automatically hides venv, node_modules, .git, and 20+ other noise directories while showing you the file count.</p>
            </div>

            <!-- Intelligent defaults -->
            <div class="feature-card group p-6 rounded-xl border border-github-border hover:border-github-accent/50 transition-all hover-lift" style="background-color: rgba(22, 27, 34, 0.5);">
                <div class="w-12 h-12 rounded-lg bg-green-500/10 flex items-center justify-center mb-4 group-hover:scale-110 transition-transform">
                    <i data-lucide="brain" class="w-6 h-6 text-github-green"></i>
                </div>
                <h3 class="text-lg font-semibold text-white mb-2">Intelligent defaults</h3>
                <p class="text-github-muted text-sm leading-relaxed">Knows about Python, JavaScript, Rust, and more. No configuration needed to get started.</p>
            </div>

            <!-- Directory summaries -->
            <div class="feature-card group p-6 rounded-xl border border-github-border hover:border-github-accent/50 transition-all hover-lift" style="background-color: rgba(22, 27, 34, 0.5);">
                <div class="w-12 h-12 rounded-lg bg-purple-500/10 flex items-center justify-center mb-4 group-hover:scale-110 transition-transform">
                    <i data-lucide="bar-chart-3" class="w-6 h-6 text-github-purple"></i>
                </div>
                <h3 class="text-lg font-semibold text-white mb-2">Directory summaries</h3>
                <p class="text-github-muted text-sm leading-relaxed"><code class="text-github-accent bg-github-border/30 px-1 rounded">struct 0</code> gives you detailed stats: file counts, sizes, types, and what's being ignored.</p>
            </div>

            <!-- Built-in search -->
            <div class="feature-card group p-6 rounded-xl border border-github-border hover:border-github-accent/50 transition-all hover-lift" style="background-color: rgba(22, 27, 34, 0.5);">
                <div class="w-12 h-12 rounded-lg bg-yellow-500/10 flex items-center justify-center mb-4 group-hover:scale-110 transition-transform">
                    <i data-lucide="search" class="w-6 h-6 text-yellow-500"></i>
                </div>
                <h3 class="text-lg font-semibold text-white mb-2">Built-in search</h3>
                <p class="text-github-muted text-sm leading-relaxed">Find files across your project with <code class="text-github-accent bg-github-border/30 px-1 rounded">struct search "*.py"</code>. Tree or flat output modes.</p>
            </div>

            <!-- Git-aware -->
            <div class="feature-card group p-6 rounded-xl border border-github-border hover:border-github-accent/50 transition-all hover-lift" style="background-color: rgba(22, 27, 34, 0.5);">
                <div class="w-12 h-12 rounded-lg bg-orange-500/10 flex items-center justify-center mb-4 group-hover:scale-110 transition-transform">
                    <i data-lucide="git-branch" class="w-6 h-6 text-orange-500"></i>
                </div>
                <h3 class="text-lg font-semibold text-white mb-2">Comprehensive Git Integration</h3>
                <p class="text-github-muted text-sm leading-relaxed">Multiple git modes: tracked (<code class="text-github-accent bg-github-border/30 px-1 rounded">-g</code>), untracked (<code class="text-github-accent bg-github-border/30 px-1 rounded">--gu</code>), staged (<code class="text-github-accent bg-github-border/30 px-1 rounded">--gs</code>), modified (<code class="text-github-accent bg-github-border/30 px-1 rounded">--gc</code>). Color-coded output with branch display.</p>
            </div>

            <!-- Blazing fast -->
            <div class="feature-card group p-6 rounded-xl border border-github-border hover:border-github-accent/50 transition-all hover-lift" style="background-color: rgba(22, 27, 34, 0.5);">
                <div class="w-12 h-12 rounded-lg bg-red-500/10 flex items-center justify-center mb-4 group-hover:scale-110 transition-transform">
                    <i data-lucide="zap" class="w-6 h-6 text-red-400"></i>
                </div>
                <h3 class="text-lg font-semibold text-white mb-2">Blazing fast</h3>
                <p class="text-github-muted text-sm leading-relaxed">Written in Rust for performance. Scan thousands of files in milliseconds, not seconds.</p>
            </div>
        </div>
    </section>

    <!-- Features Detail -->
    <section id="features" class="py-20 px-4 sm:px-6 lg:px-8 max-w-6xl mx-auto border-t border-github-border">
        <div class="grid lg:grid-cols-2 gap-12 items-start">
            <div class="space-y-6">
                <h2 class="text-3xl sm:text-4xl font-bold text-white">Everything you need,<br>nothing you don't</h2>
                <p class="text-github-muted text-lg">Struct is designed to be powerful yet intuitive. Here are the features that make it stand out:</p>
                
                <div class="space-y-4 pt-4">
                    <div class="flex items-start gap-4">
                        <div class="w-6 h-6 rounded bg-github-accent/20 flex items-center justify-center flex-shrink-0 mt-0.5">
                            <i data-lucide="check" class="w-4 h-4 text-github-accent"></i>
                        </div>
                        <div>
                            <h4 class="text-white font-medium">Depth Control</h4>
                            <p class="text-github-muted text-sm">Infinite depth by default, or limit with <code class="text-github-accent">struct 3</code></p>
                        </div>
                    </div>
                    
                    <div class="flex items-start gap-4">
                        <div class="w-6 h-6 rounded bg-github-accent/20 flex items-center justify-center flex-shrink-0 mt-0.5">
                            <i data-lucide="check" class="w-4 h-4 text-github-accent"></i>
                        </div>
                        <div>
                            <h4 class="text-white font-medium">Git Integration</h4>
                            <p class="text-github-muted text-sm">Track (<code class="text-github-accent">-g</code>), staged (<code class="text-github-accent">--gs</code>), modified (<code class="text-github-accent">--gc</code>), untracked (<code class="text-github-accent">--gu</code>) with color-coding</p>
                        </div>
                    </div>
                    
                    <div class="flex items-start gap-4">
                        <div class="w-6 h-6 rounded bg-github-accent/20 flex items-center justify-center flex-shrink-0 mt-0.5">
                            <i data-lucide="check" class="w-4 h-4 text-github-accent"></i>
                        </div>
                        <div>
                            <h4 class="text-white font-medium">Size Awareness</h4>
                            <p class="text-github-muted text-sm">Show file sizes with <code class="text-github-accent">-z</code> or skip large folders with <code class="text-github-accent">-s 100</code></p>
                        </div>
                    </div>
                    
                    <div class="flex items-start gap-4">
                        <div class="w-6 h-6 rounded bg-github-accent/20 flex items-center justify-center flex-shrink-0 mt-0.5">
                            <i data-lucide="check" class="w-4 h-4 text-github-accent"></i>
                        </div>
                        <div>
                            <h4 class="text-white font-medium">Custom Ignores</h4>
                            <p class="text-github-muted text-sm">Add permanent ignore patterns with <code class="text-github-accent">struct add "pattern"</code></p>
                        </div>
                    </div>
                    
                    <div class="flex items-start gap-4">
                        <div class="w-6 h-6 rounded bg-github-accent/20 flex items-center justify-center flex-shrink-0 mt-0.5">
                            <i data-lucide="check" class="w-4 h-4 text-github-accent"></i>
                        </div>
                        <div>
                            <h4 class="text-white font-medium">Flexible Output</h4>
                            <p class="text-github-muted text-sm">Tree view or flat list with full paths for easy grep/scripting</p>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Code Examples -->
            <div class="space-y-4">
                <div class="rounded-lg overflow-hidden border border-github-border" style="background-color: var(--bg-secondary);">
                    <div class="flex items-center gap-2 px-4 py-2 border-b border-github-border" style="background-color: var(--bg-primary);">
                        <span class="text-xs text-github-muted font-mono">Usage Examples</span>
                    </div>
                    <div class="p-4 font-mono text-sm space-y-3 overflow-x-auto">
                        <div class="code-line">
                            <span class="syntax-comment"># Show current directory structure</span>
                        </div>
                        <div class="code-line">
                            <span class="text-github-green">$</span> <span class="text-github-text">struct</span>
                        </div>
                        <div class="code-line">
                            <span class="syntax-comment"># Show 3 levels deep with sizes</span>
                        </div>
                        <div class="code-line">
                            <span class="text-github-green">$</span> <span class="text-github-text">struct 3 -z</span>
                        </div>
                        <div class="code-line">
                            <span class="syntax-comment"># Git-tracked files only</span>
                        </div>
                        <div class="code-line">
                            <span class="text-github-green">$</span> <span class="text-github-text">struct 2 -g</span>
                        </div>
                        <div class="code-line">
                            <span class="syntax-comment"># Show staged files with green color</span>
                        </div>
                        <div class="code-line">
                            <span class="text-github-green">$</span> <span class="text-github-text">struct 3 --gs --gr</span>
                        </div>
                        <div class="code-line">
                            <span class="syntax-comment"># Search for Python files & folders</span>
                        </div>
                        <div class="code-line">
                            <span class="text-github-green">$</span> <span class="text-github-text">struct search "*.py" -f</span>
                        </div>
                        <div class="code-line">
                            <span class="syntax-comment"># Summary mode with stats</span>
                        </div>
                        <div class="code-line">
                            <span class="text-github-green">$</span> <span class="text-github-text">struct 0</span>
                        </div>
                    </div>
                </div>
                
                <!-- Ignore list preview -->
                <div class="rounded-lg overflow-hidden border border-github-border" style="background-color: var(--bg-secondary);">
                    <div class="flex items-center justify-between px-4 py-2 border-b border-github-border" style="background-color: var(--bg-primary);">
                        <span class="text-xs text-github-muted font-mono">Auto-ignored Directories</span>
                        <span class="text-xs text-github-accent">20+ patterns</span>
                    </div>
                    <div class="p-4 font-mono text-xs text-github-muted">
                        <div class="grid grid-cols-2 gap-2">
                            <span>venv, .venv, env</span>
                            <span>node_modules</span>
                            <span>__pycache__, .pytest_cache</span>
                            <span>target, build, dist</span>
                            <span>.git, .svn, .hg</span>
                            <span>.vscode, .idea</span>
                            <span>.next, .nuxt</span>
                            <span>*.pyc, *.pyo</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Installation -->
    <section id="install" class="py-20 px-4 sm:px-6 lg:px-8 max-w-4xl mx-auto border-t border-github-border">
        <div class="text-center mb-12">
            <h2 class="text-3xl sm:text-4xl font-bold text-white mb-4">Installation</h2>
            <p class="text-github-muted">Get started in seconds. Struct is lightweight and dependency-free.</p>
        </div>

        <div class="space-y-6">
            <!-- Option 1: Install from crates.io -->
            <div class="rounded-xl overflow-hidden border border-github-border terminal-shadow" style="background-color: var(--bg-secondary);">
                <div class="flex items-center justify-between px-4 py-3 border-b border-github-border" style="background-color: var(--bg-primary);">
                    <span class="text-sm text-github-muted font-mono">Option 1: Install from crates.io</span>
                    <button onclick="copyCode('cargo install struct-cli')" class="text-xs flex items-center gap-1 text-github-muted hover:text-github-accent transition-colors copy-btn">
                        <i data-lucide="copy" class="w-3 h-3"></i>
                        <span>Copy</span>
                    </button>
                </div>
                <div class="p-4 font-mono text-sm space-y-1">
                    <div class="text-github-muted mb-2">The easiest way is to install directly via Cargo (make sure you have Rust installed):</div>
                    <div class="text-github-green">$ cargo install struct-cli</div>
                    <div class="text-github-muted mt-3 text-xs">View on <a href="https://crates.io/crates/struct-cli" target="_blank" rel="noopener" class="text-github-accent hover:underline">crates.io</a></div>
                </div>
            </div>

            <!-- Option 2: Install from source -->
            <div class="rounded-xl overflow-hidden border border-github-border terminal-shadow" style="background-color: var(--bg-secondary);">
                <div class="flex items-center justify-between px-4 py-3 border-b border-github-border" style="background-color: var(--bg-primary);">
                    <span class="text-sm text-github-muted font-mono">Option 2: Install from source</span>
                    <button onclick="copyCode('git clone https://github.com/caffienerd/struct-cli.git && cd struct-cli && chmod +x install.sh && ./install.sh')" class="text-xs flex items-center gap-1 text-github-muted hover:text-github-accent transition-colors copy-btn">
                        <i data-lucide="copy" class="w-3 h-3"></i>
                        <span>Copy</span>
                    </button>
                </div>
                <div class="p-4 font-mono text-sm space-y-1">
                    <div class="text-github-green">$ git clone https://github.com/caffienerd/struct-cli.git</div>
                    <div class="text-github-green">$ cd struct-cli</div>
                    <div class="text-github-green">$ chmod +x install.sh && ./install.sh</div>
                </div>
            </div>

            <!-- Compatibility Note -->
            <div class="flex items-center gap-3 px-4 py-3 rounded-lg border border-github-border/50" style="background-color: rgba(22, 27, 34, 0.3);">
                <i data-lucide="linux" class="w-5 h-5 text-github-muted"></i>
                <span class="text-sm text-github-muted">Works on RHEL, Arch, Ubuntu, Debian, Fedora, and other Linux distributions</span>
            </div>

            <!-- Quick Start -->
            <div class="mt-8 p-6 rounded-xl border border-github-accent/20" style="background: linear-gradient(to right, rgba(9, 105, 218, 0.1), rgba(111, 66, 193, 0.1));">
                <h3 class="text-white font-semibold mb-2 flex items-center gap-2">
                    <i data-lucide="rocket" class="w-5 h-5 text-github-accent"></i>
                    Quick Start
                </h3>
                <div class="font-mono text-sm space-y-2 text-github-text">
                    <div><span class="text-github-muted"># Show everything (infinite depth)</span></div>
                    <div>struct</div>
                    <div class="mt-2"><span class="text-github-muted"># Search for python files in your folder</span></div>
                    <div>struct search "*.py"</div>
                    <div class="mt-2"><span class="text-github-muted"># Summary of current directory</span></div>
                    <div>struct 0</div>
                    <div class="mt-2"><span class="text-github-muted"># show git tracked files from the root git folder</span></div>
                    <div>struct --gr</div>
                </div>
            </div>
        </div>
    </section>

    <!-- GitHub CTA -->
    <section class="py-20 px-4 sm:px-6 lg:px-8 max-w-4xl mx-auto border-t border-github-border mb-20">
        <div class="text-center space-y-6">
            <div class="w-16 h-16 mx-auto rounded-full bg-github-border/30 flex items-center justify-center">
                <i data-lucide="github" class="w-8 h-8 text-white"></i>
            </div>
            <h2 class="text-3xl font-bold text-white">Open Source</h2>
            <p class="text-github-muted max-w-lg mx-auto">
                Struct is MIT licensed and open source. Found a bug? Want a feature? Contributions are welcome.
            </p>
            <div class="flex flex-col sm:flex-row items-center justify-center gap-4 pt-4">
                <a href="https://github.com/caffienerd/struct-cli" target="_blank" rel="noopener" class="inline-flex items-center gap-2 px-6 py-3 rounded-lg border border-github-border hover:bg-github-border/30 text-github-text font-medium transition-all">
                    <i data-lucide="star" class="w-5 h-5"></i>
                    Star on GitHub
                </a>
                <a href="https://github.com/caffienerd/struct-cli/issues" target="_blank" rel="noopener" class="inline-flex items-center gap-2 px-6 py-3 rounded-lg border border-github-border hover:bg-github-border/30 text-github-text font-medium transition-all">
                    <i data-lucide="alert-circle" class="w-5 h-5"></i>
                    Report Issue
                </a>
            </div>
            <div class="pt-4 text-sm text-github-muted font-mono">
                <span class="text-github-accent">MIT</span> License • Built with <span class="text-orange-500">Rust</span>
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer class="border-t border-github-border py-8 px-4 sm:px-6 lg:px-8 max-w-6xl mx-auto">
        <div class="flex flex-col sm:flex-row items-center justify-between gap-4 text-sm text-github-muted">
            <div class="flex items-center gap-2 font-mono text-xs">
                <div class="w-5 h-5 rounded-md bg-gradient-to-br from-github-accent to-github-purple flex items-center justify-center">
                    <i data-lucide="folder-tree" class="w-3 h-3 text-white"></i>
                </div>
                <span>struct</span>
            </div>
            <div class="flex items-center gap-6">
                <a href="https://github.com/caffienerd/struct-cli" target="_blank" rel="noopener" class="hover:text-github-text transition-colors">GitHub</a>
                <a href="https://github.com/caffienerd/struct-cli/issues" target="_blank" rel="noopener" class="hover:text-github-text transition-colors">Issues</a>
                <span class="text-github-border">|</span>
                <span>© 2026 caffienerd</span>
            </div>
        </div>
    </footer>

    <!-- External JavaScript -->
    <script src="script.js"></script></body>
</html>