narsil 0.3.0

A terminal-based system resource monitor — GPU-aware, Braille charts, per-char label inversion
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
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Narsil — The Blade Reforged</title>
  <meta name="description" content="narsil — A terminal-based system resource monitor for Linux, Windows and macOS. GPU-aware (Linux), Braille charts, per-character label inversion. Written in Rust." />
  <link rel="canonical" href="https://pommersche92.github.io/narsil/" />
  <meta property="og:title"       content="narsil — The Blade Reforged" />
  <meta property="og:description" content="A terminal system monitor sharper than the tools that came before it." />
  <meta property="og:type"        content="website" />
  <meta property="og:url"         content="https://pommersche92.github.io/narsil/" />
  <meta property="og:image"       content="https://pommersche92.github.io/narsil/assets/aragorn_narsil.png" />

  <link rel="stylesheet" href="assets/fonts/fonts.css" />
  <link rel="stylesheet" href="site.css" />
</head>
<body>

<!-- ── Starfield canvas ─────────────────────────────────── -->
<canvas id="cosmos"></canvas>

<!-- ── Navigation ──────────────────────────────────────── -->
<nav>
  <a href="#" class="nav-brand">
    <img src="assets/hero_image.png" width="30em" alt="Narsil">
    narsil
  </a>
  <ul class="nav-links">
    <li><a href="#features">Features</a></li>
    <li><a href="#install">Install</a></li>
    <li><a href="#gpu">GPU</a></li>
    <li><a href="#i18n">Languages</a></li>
    <li><a href="#comparison">Compare</a></li>
    <li><a href="#roadmap">Roadmap</a></li>
    <li><a href="https://github.com/Pommersche92/narsil" target="_blank" rel="noopener">GitHub ↗</a></li>
  </ul>
</nav>

<!-- ══════════════════════════════════════════════════════
     HERO
══════════════════════════════════════════════════════ -->
<section id="hero">
  <div class="rune-ring rune-ring-1"></div>
  <div class="rune-ring rune-ring-2"></div>

  <!-- Aragorn with the flame of Anor — positioned right, glows over the starfield -->
  <img class="hero-aragorn" src="assets/aragorn_narsil.png" alt="" aria-hidden="true" />

  <p><img src="assets/hero_image.png" width="300em" alt="Narsil"></p>
  <p class="hero-eyebrow">The Flame of the West · Reforged in Rust</p>

  <h1 class="hero-title">narsil</h1>
  <p class="hero-subtitle">A System Monitor Reforged</p>

  <p class="hero-tagline">
    Named after the blade shattered at the dawn of the Third Age<br>
    and reforged for a king — <em>narsil</em> is sharper<br>
    than the tools that came before it.
  </p>

  <div class="hero-cta">
    <a href="#install" class="btn-forge">
      <svg width="13" height="13" viewBox="0 0 16 16" fill="currentColor"><path d="M8 0a8 8 0 100 16A8 8 0 008 0zm.5 4.5v4.793l2.146-2.147a.5.5 0 01.708.708l-3 3a.5.5 0 01-.708 0l-3-3a.5.5 0 01.708-.708L7.5 9.293V4.5a.5.5 0 011 0z"/></svg>
      cargo install narsil
    </a>
    <a href="https://github.com/Pommersche92/narsil" class="btn-ghost" target="_blank" rel="noopener">
      GitHub ↗
    </a>
    <a href="https://crates.io/crates/narsil" class="btn-ghost" target="_blank" rel="noopener">
      crates.io ↗
    </a>
  </div>

  <div class="hero-badges">
    <span class="badge">🦀 Rust</span>
    <span class="badge">ratatui</span>
    <span class="badge">AMD + NVIDIA GPU (Linux)</span>
    <span class="badge">Linux &middot; Windows &middot; macOS</span>
    <span class="badge">🌍 EN &middot; DE &middot; FR &middot; ES</span>
    <span class="badge">GPL-3.0</span>
  </div>
</section>


<!-- ══════════════════════════════════════════════════════
     FEATURES
══════════════════════════════════════════════════════ -->
<section id="features">
  <div class="container">

    <div class="s-header fade-in-up">
      <p class="s-eyebrow">What Narsil Sees</p>
      <h2 class="s-title">Seven Views. One Kingdom.</h2>
      <p class="s-desc">Every metric your system holds, rendered in Braille and flame — without ever leaving the terminal. Runs on Linux, Windows and macOS. GPU monitoring is Linux-only for now.</p>
    </div>

    <div class="features-grid">

      <!-- Unique highlight feature -->
      <div class="feat-card hero-feat fade-in-up">
        <span class="feat-icon">🎨</span>
        <div>
          <h3 class="feat-title">Split-Colour Gauge Inversion</h3>
          <p class="feat-desc">Every percentage label inside a gauge automatically inverts its colour <strong>character-by-character</strong> at the fill boundary — so text is always readable, even when the bar sits at exactly 50%. No other terminal monitor does this.</p>
          <span class="feat-tag">unique to narsil</span>
        </div>
      </div>

      <div class="feat-card fade-in-up">
        <span class="feat-icon">🗺️</span>
        <h3 class="feat-title">Overview</h3>
        <p class="feat-desc">CPU & RAM gauges, live RX/TX sparklines, and a process list that fills every available line of your terminal.</p>
      </div>

      <div class="feat-card fade-in-up">
        <span class="feat-icon">🧠</span>
        <h3 class="feat-title">CPU</h3>
        <p class="feat-desc">Global usage history rendered in Braille dot art, followed by per-core gauges colour-coded by load intensity.</p>
        <span class="feat-tag">Braille charts</span>
      </div>

      <div class="feat-card fade-in-up">
        <span class="feat-icon">💾</span>
        <h3 class="feat-title">Memory</h3>
        <p class="feat-desc">RAM and Swap history charts with live GiB usage gauges. See exactly how much of your kingdom's silver remains.</p>
      </div>

      <div class="feat-card fade-in-up">
        <span class="feat-icon">🌐</span>
        <h3 class="feat-title">Network</h3>
        <p class="feat-desc">Combined RX/TX history chart alongside live per-direction throughput — every packet a message from the realm.</p>
      </div>

      <div class="feat-card fade-in-up">
        <span class="feat-icon">💿</span>
        <h3 class="feat-title">Disks</h3>
        <p class="feat-desc">Per-partition usage bars at fixed height, with ▲ ▼ scroll indicators when your vaults exceed the visible height.</p>
        <span class="feat-tag">scrollable</span>
      </div>

      <div class="feat-card fade-in-up">
        <span class="feat-icon">🔬</span>
        <h3 class="feat-title">Processes</h3>
        <p class="feat-desc">Process table sorted by CPU usage — the lords of the realm and their burdens, always filling the visible height.</p>
      </div>

      <div class="feat-card fade-in-up">
        <span class="feat-icon">🎮</span>
        <h3 class="feat-title">GPU <span style="font-size:.7em;opacity:.7">(Linux)</span></h3>
        <p class="feat-desc">Per-GPU cards with utilisation and VRAM history charts, live gauges, temperature, and power draw. AMD and NVIDIA fully supported. GPU monitoring requires Linux with the <code>amdgpu</code> or NVIDIA proprietary driver.</p>
        <span class="feat-tag">AMD ✓&nbsp;&nbsp;NVIDIA ✓</span>
      </div>

      <div class="feat-card fade-in-up">
        <span class="feat-icon"></span>
        <h3 class="feat-title">Configurable Refresh Rate</h3>
        <p class="feat-desc">Pass <code>--interval &lt;ms&gt;</code> to tune between low-latency and low-CPU usage. Defaults to 1 000 ms. Key events are processed between ticks with zero busy-waiting — swift and silent as a ranger.</p>
        <span class="feat-tag"><code>--interval &lt;ms&gt;</code></span>
      </div>
      <div class="feat-card fade-in-up">
        <span class="feat-icon">🌍</span>
        <h3 class="feat-title">Multilingual UI</h3>
        <p class="feat-desc">English, German, French, and Spanish built in. Language is auto-detected from the OS locale (<code>LANG</code>, <code>LANGUAGE</code>, native API) and overridable with <code>--lang de</code>. Translations are plain TOML files — adding a new language requires no Rust knowledge.</p>
        <span class="feat-tag"><code>--lang &lt;code&gt;</code></span>
      </div>
    </div>
  </div>
</section>


<div class="container">
  <div class="divider fade-in-up"><span class="divider-rune">✦ ᚾ ✦</span></div>
</div>


<!-- ══════════════════════════════════════════════════════
     INSTALL
══════════════════════════════════════════════════════ -->
<section id="install">
  <div class="container">

    <div class="s-header fade-in-up">
      <p class="s-eyebrow">Forge Your Blade</p>
      <h2 class="s-title">Installation</h2>
      <p class="s-desc">Runs on <strong>Linux</strong>, <strong>Windows 10+</strong>, and <strong>macOS 12+</strong>. Rust is only needed for the crates.io and source options. GPU support requires Linux.</p>
    </div>

    <div class="channels-grid fade-in-up">
      <div class="channel-card">
        <div class="channel-icon"><img src="assets/crates-io.png" alt="crates.io"></div>
        <div class="channel-name">crates.io</div>
        <div class="channel-desc">All platforms · Rust needed</div>
        <code class="channel-cmd">cargo install narsil</code>
      </div>
      <div class="channel-card">
        <div class="channel-icon"><img src="assets/archlinux.svg" alt="Arch Linux"></div>
        <div class="channel-name">AUR</div>
        <div class="channel-desc">Arch Linux · 4 packages</div>
        <code class="channel-cmd">yay -S narsil-bin</code>
      </div>
      <div class="channel-card">
        <div class="channel-icon"><img src="assets/appimage.svg" alt="AppImage"></div>
        <div class="channel-name">AppImage</div>
        <div class="channel-desc">Linux x86_64 · self-contained</div>
        <code class="channel-cmd">./narsil-*.AppImage</code>
      </div>
      <div class="channel-card">
        <div class="channel-icon"><img src="assets/windows.svg" alt="Windows"></div>
        <div class="channel-name">Windows</div>
        <div class="channel-desc">x86_64 · zip from Releases</div>
        <code class="channel-cmd">narsil.exe</code>
      </div>
      <div class="channel-card">
        <div class="channel-icon">🗃️</div>
        <div class="channel-name">Tarball</div>
        <div class="channel-desc">Linux x86_64 · GitHub Releases</div>
        <code class="channel-cmd">tar xzf narsil-*.tar.gz</code>
      </div>
      <div class="channel-card">
        <div class="channel-icon">🔨</div>
        <div class="channel-name">Source</div>
        <div class="channel-desc">All platforms · Rust needed</div>
        <code class="channel-cmd">cargo build --release</code>
      </div>
    </div>

    <div class="install-wrap fade-in-up">
      <div class="tab-bar">
        <button class="tab-btn active" onclick="switchTab('crates',   this)">crates.io</button>
        <button class="tab-btn"        onclick="switchTab('aur',      this)">AUR</button>
        <button class="tab-btn"        onclick="switchTab('appimage', this)">AppImage</button>
        <button class="tab-btn"        onclick="switchTab('windows',  this)">Windows</button>
        <button class="tab-btn"        onclick="switchTab('tarball',  this)">Tarball</button>
        <button class="tab-btn"        onclick="switchTab('source',   this)">From source</button>
        <button class="tab-btn"        onclick="switchTab('nvidia',   this)">NVIDIA support</button>
      </div>

      <!-- crates.io -->
      <div class="tab-panel active" id="tab-crates">
        <p class="tab-intro">The quickest path. Cargo fetches, compiles with full optimisations, and installs the binary to <code>~/.cargo/bin/</code>. Works on Linux, Windows, and macOS.</p>
        <div class="code-wrap">
          <button class="copy-btn" onclick="copyCode(this, 'cargo install narsil')">copy</button>
          <div class="code-block">
<span class="c-cmd">cargo</span> <span class="c-arg">install</span> <span class="c-string">narsil</span>
          </div>
        </div>
        <div class="install-note">
          Make sure <code>~/.cargo/bin/</code> is on your <code>$PATH</code>. For NVIDIA GPU support see the <em>NVIDIA support</em> tab.
        </div>
      </div>

      <!-- AUR -->
      <div class="tab-panel" id="tab-aur">
        <p class="tab-intro">Four AUR packages cover every combination of source/binary and standard/NVIDIA.</p>
        <div class="aur-table">
          <div class="aur-row header">
            <span>Package</span><span>Type</span><span>NVIDIA</span>
          </div>
          <div class="aur-row">
            <a href="https://aur.archlinux.org/packages/narsil" target="_blank" rel="noopener"><code>narsil</code></a>
            <span>source</span><span class="chip-no"></span>
          </div>
          <div class="aur-row">
            <a href="https://aur.archlinux.org/packages/narsil-nvidia" target="_blank" rel="noopener"><code>narsil-nvidia</code></a>
            <span>source</span><span class="chip-yes"></span>
          </div>
          <div class="aur-row">
            <a href="https://aur.archlinux.org/packages/narsil-bin" target="_blank" rel="noopener"><code>narsil-bin</code></a>
            <span>binary</span><span class="chip-no"></span>
          </div>
          <div class="aur-row">
            <a href="https://aur.archlinux.org/packages/narsil-nvidia-bin" target="_blank" rel="noopener"><code>narsil-nvidia-bin</code></a>
            <span>binary</span><span class="chip-yes"></span>
          </div>
        </div>
        <div class="code-wrap" style="margin-top:1.2rem">
          <button class="copy-btn" onclick="copyCode(this, 'yay -S narsil-bin')">copy</button>
          <div class="code-block">
<span class="c-comment"># Prebuilt binary — fastest install</span>
<span class="c-cmd">yay</span> <span class="c-flag">-S</span> <span class="c-string">narsil-bin</span>

<span class="c-comment"># Or build from source</span>
<span class="c-cmd">yay</span> <span class="c-flag">-S</span> <span class="c-string">narsil</span>
          </div>
        </div>
      </div>

      <!-- AppImage -->
      <div class="tab-panel" id="tab-appimage">
        <p class="tab-intro">Self-contained Linux bundle — no installation needed. Download, make executable, run.</p>
        <div class="code-wrap">
          <button class="copy-btn" onclick="copyCode(this, 'chmod +x narsil-*-x86_64.AppImage\n./narsil-*-x86_64.AppImage')">copy</button>
          <div class="code-block">
<span class="c-comment"># Download from GitHub Releases, then:</span>
<span class="c-cmd">chmod</span> <span class="c-arg">+x</span> <span class="c-string">narsil-*-x86_64.AppImage</span>
<span class="c-cmd">./narsil-*-x86_64.AppImage</span>
          </div>
        </div>
        <div class="install-note">
          Two variants per release:
          <code>narsil-{version}-x86_64.AppImage</code> (standard) and
          <code>narsil-nvidia-{version}-x86_64.AppImage</code> (with NVIDIA support).
          Requires a Linux x86_64 system.<br><br>
          <a href="https://github.com/Pommersche92/narsil/releases/latest" target="_blank" rel="noopener">→ Latest GitHub Release ↗</a>
        </div>
      </div>

      <!-- Windows -->
      <div class="tab-panel" id="tab-windows">
        <p class="tab-intro">Prebuilt Windows x86_64 executable — no Rust, no compiler needed. Download, extract, run in PowerShell or cmd.</p>
        <div class="code-wrap">
          <button class="copy-btn" onclick="copyCode(this, '.\\narsil.exe')">copy</button>
          <div class="code-block">
<span class="c-comment"># After extracting the zip:</span>
<span class="c-cmd">.\narsil.exe</span>
          </div>
        </div>
        <div class="install-note">
          Download <code>narsil-{version}-x86_64-windows.zip</code> from
          <a href="https://github.com/Pommersche92/narsil/releases/latest" target="_blank" rel="noopener">GitHub Releases ↗</a>.
          A NVIDIA variant (<code>narsil-nvidia-…-windows.zip</code>) is also provided.<br><br>
          The GPU tab is not compiled into the Windows build. All other tabs work normally.
        </div>
      </div>

      <!-- Tarball -->
      <div class="tab-panel" id="tab-tarball">
        <p class="tab-intro">Plain Linux tarball — drop the binary wherever you like. No package manager needed.</p>
        <div class="code-wrap">
          <button class="copy-btn" onclick="copyCode(this, 'tar xzf narsil-VERSION-x86_64.tar.gz\n./narsil-VERSION/narsil')">copy</button>
          <div class="code-block">
<span class="c-comment"># Replace VERSION with the actual release tag</span>
<span class="c-cmd">tar</span> <span class="c-arg">xzf</span> <span class="c-string">narsil-VERSION-x86_64.tar.gz</span>
<span class="c-cmd">./narsil-VERSION/narsil</span>
          </div>
        </div>
        <div class="install-note">
          Download from
          <a href="https://github.com/Pommersche92/narsil/releases/latest" target="_blank" rel="noopener">GitHub Releases ↗</a>.
          Two variants: <code>narsil-{version}-x86_64.tar.gz</code> (standard) and
          <code>narsil-nvidia-{version}-x86_64.tar.gz</code> (with NVIDIA support).
        </div>
      </div>

      <!-- source -->
      <div class="tab-panel" id="tab-source">
        <p class="tab-intro">Clone and build locally — ideal for development or inspecting the forge.</p>
        <div class="code-wrap">
          <button class="copy-btn" onclick="copyCode(this, 'git clone https://github.com/Pommersche92/narsil\ncd narsil\ncargo build --release')">copy</button>
          <div class="code-block">
<span class="c-cmd">git</span> <span class="c-arg">clone</span> <span class="c-string">https://github.com/Pommersche92/narsil</span>
<span class="c-cmd">cd</span> <span class="c-arg">narsil</span>
<span class="c-cmd">cargo</span> <span class="c-arg">build</span> <span class="c-flag">--release</span>

<span class="c-comment"># Linux / macOS</span>
<span class="c-cmd">./target/release/narsil</span>
<span class="c-comment"># Windows</span>
<span class="c-cmd">.\target\release\narsil.exe</span>
          </div>
        </div>
      </div>

      <!-- nvidia -->
      <div class="tab-panel" id="tab-nvidia">
        <p class="tab-intro">Enable NVIDIA GPU monitoring via NVML. Requires proprietary NVIDIA drivers at link time. Linux only.</p>
        <div class="code-wrap">
          <button class="copy-btn" onclick="copyCode(this, 'cargo install narsil --features nvidia')">copy</button>
          <div class="code-block">
<span class="c-comment"># From crates.io</span>
<span class="c-cmd">cargo</span> <span class="c-arg">install</span> <span class="c-string">narsil</span> <span class="c-flag">--features</span> <span class="c-arg">nvidia</span>

<span class="c-comment"># From source</span>
<span class="c-cmd">cargo</span> <span class="c-arg">build</span> <span class="c-flag">--release --features</span> <span class="c-arg">nvidia</span>

<span class="c-comment"># AUR</span>
<span class="c-cmd">yay</span> <span class="c-flag">-S</span> <span class="c-string">narsil-nvidia-bin</span>
          </div>
        </div>
        <div class="install-note">
          The <code>nvidia</code> feature links against <code>libnvidia-ml.so</code>. If the NVML library is absent at link time, the build fails — this is by design.
        </div>
      </div>
    </div><!-- /.install-wrap -->

  </div>
</section>


<div class="container">
  <div class="divider fade-in-up"><span class="divider-rune">✦ ᛊ ✦</span></div>
</div>


<!-- ══════════════════════════════════════════════════════
     GPU
══════════════════════════════════════════════════════ -->
<section id="gpu">
  <div class="container">

    <div class="s-header fade-in-up">
      <p class="s-eyebrow">The Stewards of Silicon</p>
      <h2 class="s-title">GPU Support</h2>
      <p class="s-desc">GPU monitoring is <strong>Linux-only</strong> — narsil reads deep into the kernel’s sysfs and NVML to bring you real GPU metrics. On Windows and macOS the GPU tab is not compiled in; all other tabs work normally.</p>
    </div>

    <div class="gpu-grid">

      <div class="gpu-card ok fade-in-up">
        <div class="gpu-vendor"><img src="assets/amd-48.png" alt="AMD Discrete"></div>
        <div class="gpu-name">AMD Discrete</div>
        <div class="gpu-driver">amdgpu kernel driver</div>
        <div class="chips">
          <span class="chip ok">Utilisation</span>
          <span class="chip ok">VRAM</span>
          <span class="chip ok">Temperature</span>
          <span class="chip ok">Power</span>
        </div>
        <span class="gpu-label ok">Fully Supported</span>
      </div>

      <div class="gpu-card ok fade-in-up">
        <div class="gpu-vendor"><img src="assets/amd-48.png" alt="AMD APU / iGPU"></div>
        <div class="gpu-name">AMD APU / iGPU</div>
        <div class="gpu-driver">amdgpu kernel driver</div>
        <div class="chips">
          <span class="chip ok">Utilisation</span>
          <span class="chip ok">GTT Memory</span>
          <span class="chip ok">Temperature</span>
          <span class="chip ok">Power</span>
        </div>
        <span class="gpu-label ok">Fully Supported</span>
      </div>

      <div class="gpu-card ok fade-in-up">
        <div class="gpu-vendor"><img src="assets/nvidia-48.png" alt="NVIDIA"></div>
        <div class="gpu-name">NVIDIA</div>
        <div class="gpu-driver">proprietary + --features nvidia</div>
        <div class="chips">
          <span class="chip ok">Utilisation</span>
          <span class="chip ok">VRAM</span>
          <span class="chip ok">Temperature</span>
          <span class="chip ok">Power</span>
        </div>
        <span class="gpu-label ok">Fully Supported</span>
      </div>

      <div class="gpu-card dim fade-in-up">
        <div class="gpu-vendor"><img src="assets/intel-48.png" alt="Intel iGPU / Arc"></div>
        <div class="gpu-name">Intel iGPU / Arc</div>
        <div class="gpu-driver">i915 / xe kernel driver</div>
        <div class="chips">
          <span class="chip none">Utilisation</span>
          <span class="chip none">Memory</span>
          <span class="chip none">Temperature</span>
          <span class="chip none">Power</span>
        </div>
        <span class="gpu-label dim">Planned</span>
      </div>

    </div>

    <p class="gpu-footnote fade-in-up">
      AMD APU memory figures reflect GTT — system RAM dynamically shared with the GPU. narsil detects this automatically and labels the memory panel <strong>GTT</strong> instead of VRAM.
    </p>

  </div>
</section>


<div class="container">
  <div class="divider fade-in-up"><span class="divider-rune">✦ ᛏ ✦</span></div>
</div>


<!-- ══════════════════════════════════════════════════════
     KEYBINDINGS
══════════════════════════════════════════════════════ -->
<section id="keybindings">
  <div class="container">

    <div class="s-header fade-in-up">
      <p class="s-eyebrow">Command the Blade</p>
      <h2 class="s-title">Keybindings</h2>
    </div>

    <div class="keys-grid fade-in-up">
      <div class="key-row"><kbd>Tab</kbd>         <span class="key-desc">Next tab (wraps around)</span></div>
      <div class="key-row"><kbd>Shift+Tab</kbd>   <span class="key-desc">Previous tab</span></div>
      <div class="key-row"><kbd>1</kbd><kbd>6</kbd> <span class="key-desc">Jump directly to tab (all platforms)</span></div>
      <div class="key-row"><kbd>7</kbd> <span class="key-desc">Jump to GPU tab (Linux only)</span></div>
      <div class="key-row"><kbd></kbd> / <kbd>l</kbd> <span class="key-desc">Next tab</span></div>
      <div class="key-row"><kbd></kbd> / <kbd>h</kbd> <span class="key-desc">Previous tab</span></div>
      <div class="key-row"><kbd></kbd> / <kbd>j</kbd> <span class="key-desc">Scroll down</span></div>
      <div class="key-row"><kbd></kbd> / <kbd>k</kbd> <span class="key-desc">Scroll up</span></div>
      <div class="key-row"><kbd>q</kbd> / <kbd>Ctrl‑C</kbd> <span class="key-desc">Quit</span></div>
    </div>

  </div>
</section>


<div class="container">  <div class="divider fade-in-up"><span class="divider-rune">❖ ᚪ ❖</span></div>
</div>


<!-- ══════════════════════════════════════════════════════
     I18N
══════════════════════════════════════════════════════ -->
<section id="i18n">
  <div class="container">

    <div class="s-header fade-in-up">
      <p class="s-eyebrow">Speak Every Tongue of Middle-earth</p>
      <h2 class="s-title">Multilingual UI</h2>
      <p class="s-desc">narsil detects your OS language automatically and renders the entire interface in your tongue. Pass <code>--lang &lt;code&gt;</code> to override. Translations are plain TOML files — adding a new language needs no Rust knowledge.</p>
    </div>

    <div class="keys-grid fade-in-up" style="max-width:36rem;margin:0 auto 1.5rem">
      <div class="key-row"><kbd>en</kbd><span class="key-desc">English &mdash; default fallback</span></div>
      <div class="key-row"><kbd>de</kbd><span class="key-desc">Deutsch &mdash; German</span></div>
      <div class="key-row"><kbd>fr</kbd><span class="key-desc">Fran&ccedil;ais &mdash; French</span></div>
      <div class="key-row"><kbd>es</kbd><span class="key-desc">Espa&ntilde;ol &mdash; Spanish</span></div>
    </div>

    <div class="features-grid fade-in-up" style="grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;max-width:50rem;margin:0 auto">
      <div class="feat-card">
        <span class="feat-icon">🤖</span>
        <div>
          <h3 class="feat-title">Auto-detection</h3>
          <p class="feat-desc">Reads <code>LANGUAGE</code>, <code>LC_ALL</code>, <code>LC_MESSAGES</code>, <code>LANG</code> in order, then falls back to the native OS locale API (<code>GetUserDefaultLocaleName</code> on Windows, <code>CFLocale</code> on macOS).</p>
        </div>
      </div>
      <div class="feat-card">
        <span class="feat-icon">🛠️</span>
        <div>
          <h3 class="feat-title">CLI Override</h3>
          <p class="feat-desc">Force any language at startup: <code>narsil --lang de</code>. Unknown codes fall back to English silently &mdash; no crash, no complaint.</p>
        </div>
      </div>
      <div class="feat-card">
        <span class="feat-icon">📝</span>
        <div>
          <h3 class="feat-title">Translator-friendly</h3>
          <p class="feat-desc">Strings are plain <code>key = "value"</code> TOML. No Rust, no recompile for the translator. One binary ships all languages &mdash; no language-specific builds.</p>
        </div>
      </div>
    </div>

  </div>
</section>


<div class="container">  <div class="divider fade-in-up"><span class="divider-rune">✦ ᚨ ✦</span></div>
</div>


<!-- ══════════════════════════════════════════════════════
     COMPARISON
══════════════════════════════════════════════════════ -->
<section id="comparison">
  <div class="container">

    <div class="s-header fade-in-up">
      <p class="s-eyebrow">Measured Against Heroes of Old</p>
      <h2 class="s-title">How does it compare?</h2>
      <p class="s-desc">The blades that came before, and what sets narsil apart.</p>
    </div>

    <div class="table-scroll fade-in-up">
      <table>
        <thead>
          <tr>
            <th>Feature</th>
            <th><code>top</code></th>
            <th><code>htop</code></th>
            <th><code>gotop</code></th>
            <th>⚔️ narsil</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>Language</td>
            <td>C</td><td>C</td><td>Go</td>
            <td>🦀 Rust</td>
          </tr>
          <tr>
            <td>GPU metrics</td>
            <td class="crss"></td><td class="crss"></td><td class="part">partial</td>
            <td class="chk">AMD + NVIDIA (Linux)</td>
          </tr>
          <tr>
            <td>Braille charts</td>
            <td class="crss"></td><td class="crss"></td><td class="chk"></td>
            <td class="chk"></td>
          </tr>
          <tr>
            <td>Per-char label inversion</td>
            <td class="crss"></td><td class="crss"></td><td class="crss"></td>
            <td class="chk"></td>
          </tr>
          <tr>
            <td>Disk usage bars</td>
            <td class="crss"></td><td class="crss"></td><td class="chk"></td>
            <td class="chk"></td>
          </tr>
          <tr>
            <td>Scroll indicators</td>
            <td class="crss"></td><td class="chk"></td><td class="crss"></td>
            <td class="chk"></td>
          </tr>
          <tr>
            <td>Keybinding status bar</td>
            <td class="crss"></td><td class="crss"></td><td class="crss"></td>
            <td class="chk"></td>
          </tr>
          <tr>
            <td>Localised UI</td>
            <td class="crss"></td><td class="crss"></td><td class="crss"></td>
            <td class="chk">EN DE FR ES</td>
          </tr>
          <tr>
            <td>Log tail panel</td>
            <td class="crss"></td><td class="crss"></td><td class="crss"></td>
            <td class="part">planned</td>
          </tr>
          <tr>
            <td>Alert rules</td>
            <td class="crss"></td><td class="crss"></td><td class="crss"></td>
            <td class="part">planned</td>
          </tr>
          <tr>
            <td>Remote / SSH mode</td>
            <td class="crss"></td><td class="crss"></td><td class="crss"></td>
            <td class="part">planned</td>
          </tr>
        </tbody>
      </table>
    </div>

  </div>
</section>


<div class="container">
  <div class="divider fade-in-up"><span class="divider-rune">✦ ᛚ ✦</span></div>
</div>


<!-- ══════════════════════════════════════════════════════
     ROADMAP
══════════════════════════════════════════════════════ -->
<section id="roadmap">
  <div class="container">

    <div class="s-header fade-in-up">
      <p class="s-eyebrow">What the Palantír Foretells</p>
      <h2 class="s-title">Roadmap</h2>
    </div>

    <div class="roadmap-grid">

      <div class="rm-col fade-in-up">
        <h3>🔜 Near-term</h3>
        <div class="rm-item"><div class="rm-dot near"></div><div class="rm-text">🔵 Intel GPU support via i915 / xe sysfs and hwmon</div></div>
        <div class="rm-item done"><div class="rm-dot done"></div><div class="rm-text done-text">🏷️ AMD APU label fix — GTT vs dedicated VRAM, auto-detected and labelled correctly</div><span class="rm-done-tag" aria-label="Done">DONE</span></div>
        <div class="rm-item done"><div class="rm-dot done"></div><div class="rm-text done-text">⏱️ Configurable refresh rate via <code>--interval &lt;ms&gt;</code></div><span class="rm-done-tag" aria-label="Done">DONE</span></div>
        <div class="rm-item"><div class="rm-dot near"></div><div class="rm-text">🎨 Built-in colour themes — dark, light, high-contrast</div></div>
      </div>

      <div class="rm-col fade-in-up">
        <h3>🔧 Medium-term</h3>
        <div class="rm-item"><div class="rm-dot mid"></div><div class="rm-text">🔬 Per-process GPU attribution via NVML or DRM fdinfo</div></div>
        <div class="rm-item"><div class="rm-dot mid"></div><div class="rm-text">🌡️ Temperature history sparklines for CPU and GPU</div></div>
        <div class="rm-item"><div class="rm-dot mid"></div><div class="rm-text">💨 Fan speed display in GPU card view</div></div>
        <div class="rm-item"><div class="rm-dot mid"></div><div class="rm-text">💽 Disk I/O throughput — read/write MB/s per device</div></div>
        <div class="rm-item"><div class="rm-dot mid"></div><div class="rm-text">🔋 Battery & power panel for laptops</div></div>
      </div>

      <div class="rm-col fade-in-up">
        <h3>🚀 Long-term</h3>
        <div class="rm-item"><div class="rm-dot far"></div><div class="rm-text">📋 Log tail panel with regex highlight rules</div></div>
        <div class="rm-item"><div class="rm-dot far"></div><div class="rm-text">🚨 Alert rules with desktop / webhook notifications</div></div>
        <div class="rm-item"><div class="rm-dot far"></div><div class="rm-text">🖥️ SSH remote mode — monitor a remote host locally</div></div>
        <div class="rm-item"><div class="rm-dot far"></div><div class="rm-text">📼 Session recording &amp; replay for post-mortem analysis</div></div>
        <div class="rm-item"><div class="rm-dot far"></div><div class="rm-text">📊 <code>--json</code> / <code>--prometheus</code> export for Grafana</div></div>
      </div>

    </div>
  </div>
</section>


<!-- ══════════════════════════════════════════════════════
     FOOTER
══════════════════════════════════════════════════════ -->
<footer>
  <p class="footer-quote">"All that is gold does not glitter,<br>not all those who wander are lost."</p>
  <p class="footer-attr">— J.R.R. Tolkien, The Fellowship of the Ring</p>

  <div class="footer-links">
    <a href="https://github.com/Pommersche92/narsil" target="_blank" rel="noopener">GitHub</a>
    <a href="https://crates.io/crates/narsil" target="_blank" rel="noopener">crates.io</a>
    <a href="https://docs.rs/narsil" target="_blank" rel="noopener">docs.rs</a>
    <a href="https://github.com/Pommersche92/narsil/blob/main/LICENSE">GPL-3.0 License</a>
  </div>

  <p class="footer-copy">narsil · written in Rust · named after the shards of a broken blade</p>

  <details class="impressum">
    <summary><span class="impressum-arrow"></span> Impressum (Angaben gemäß § 5 TMG)</summary>
    <div class="impressum-body">
      <div class="impressum-col">
        <h4>Angaben gemäß § 5 TMG</h4>
        <p>Raimo Geisel<br>Uhlandstraße 15<br>75385 Bad Teinach</p>
      </div>
      <div class="impressum-col">
        <h4>Kontakt</h4>
        <p>E-Mail: <a href="mailto:raimog92@protonmail.com">raimog92@protonmail.com</a></p>
      </div>
      <div class="impressum-col">
        <h4>Streitschlichtung</h4>
        <p>Die Europäische Kommission stellt eine Plattform zur Online-Streitbeilegung (OS) bereit:
        <a href="https://ec.europa.eu/consumers/odr" target="_blank" rel="noopener">https://ec.europa.eu/consumers/odr</a>.<br><br>
        Wir sind nicht bereit oder verpflichtet, an Streitbeilegungsverfahren vor einer
        Verbraucherschlichtungsstelle teilzunehmen.</p>
      </div>
    </div>
  </details>
</footer>


<!-- ══════════════════════════════════════════════════════
     DSGVO BANNER
══════════════════════════════════════════════════════ -->
<div id="dsgvo-banner" role="dialog" aria-live="polite" aria-label="Datenschutzhinweis" hidden>
  <div class="dsgvo-inner">
    <p class="dsgvo-text">
      Diese Seite verwendet <strong>keine Cookies</strong> und kein Tracking.
      Sie wird auf GitHub&nbsp;Pages gehostet — GitHub&nbsp;Inc. kann dabei
      IP-Adressen in Server-Logs erfassen (vgl.
      <a href="https://docs.github.com/en/pages/getting-started-with-github-pages/about-github-pages#data-collection" target="_blank" rel="noopener">GitHub&nbsp;Privacy</a>).
      Weitere Angaben im
      <a href="#" onclick="document.querySelector('.impressum').open=true; document.querySelector('.impressum').scrollIntoView({behavior:'smooth'}); return false;">Impressum</a>.
    </p>
    <button class="dsgvo-btn" id="dsgvo-accept">Verstanden</button>
  </div>
</div>

<!-- ══════════════════════════════════════════════════════
     SCRIPTS
══════════════════════════════════════════════════════ -->
<script src="site.js"></script>

</body>
</html>