-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1644 lines (1490 loc) · 53.9 KB
/
Copy pathindex.html
File metadata and controls
1644 lines (1490 loc) · 53.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
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
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Bright Utils — color-enhanced, feature-extended BrightDate utilities: bfind, bping, btime, bgpucap, BSH, and unified % formatting across the ecosystem."
/>
<title>Bright Utils — BrightDate Ecosystem</title>
<style>
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--bg: #0f1320;
--bg2: #0a0d18;
--surface: #182033;
--accent: #61afef;
--accent2: #c678dd;
--green: #98c379;
--yellow: #e5c07b;
--orange: #d19a66;
--text: #abb2bf;
--text-bright: #e6e6e6;
--border: #25304a;
--radius: 10px;
--mono:
"JetBrains Mono", "Fira Code", "Cascadia Code", Consolas, monospace;
}
html {
scroll-behavior: smooth;
}
body {
background: var(--bg);
color: var(--text);
font-family:
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
sans-serif;
font-size: 16px;
line-height: 1.6;
}
nav {
position: sticky;
top: 0;
z-index: 100;
background: rgba(15, 19, 32, 0.92);
backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 2rem;
height: 56px;
}
.nav-brand {
font-family: var(--mono);
font-size: 1.05rem;
color: var(--accent);
font-weight: 700;
text-decoration: none;
}
.nav-links {
display: flex;
gap: 1.5rem;
list-style: none;
}
.nav-links a {
color: var(--text);
text-decoration: none;
font-size: 0.875rem;
transition: color 0.2s;
}
.nav-links a:hover {
color: var(--text-bright);
}
.hero {
text-align: center;
padding: 6rem 1.5rem 5rem;
background: radial-gradient(
ellipse 80% 50% at 50% 0%,
rgba(97, 175, 239, 0.14) 0%,
transparent 70%
);
}
.hero-eyebrow {
display: inline-block;
background: rgba(97, 175, 239, 0.15);
border: 1px solid rgba(97, 175, 239, 0.35);
color: var(--accent);
font-family: var(--mono);
font-size: 0.75rem;
letter-spacing: 0.1em;
text-transform: uppercase;
padding: 0.3rem 0.9rem;
border-radius: 999px;
margin-bottom: 1.5rem;
}
h1 {
font-size: clamp(2.5rem, 6vw, 4.5rem);
font-weight: 800;
color: var(--text-bright);
line-height: 1.15;
margin-bottom: 1.25rem;
}
h1 span {
color: var(--accent);
}
.hero-sub {
font-size: clamp(1rem, 2vw, 1.2rem);
color: var(--text);
max-width: 720px;
margin: 0 auto 1.5rem;
}
.terminal {
display: inline-flex;
flex-direction: column;
background: var(--bg2);
border: 1px solid var(--border);
border-radius: var(--radius);
text-align: left;
min-width: min(720px, 92vw);
max-width: 92vw;
overflow: hidden;
box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.terminal-bar {
background: var(--surface);
padding: 0.55rem 0.9rem;
display: flex;
align-items: center;
gap: 0.5rem;
border-bottom: 1px solid var(--border);
}
.dot {
width: 12px;
height: 12px;
border-radius: 50%;
}
.dot-red {
background: #ff5f57;
}
.dot-yellow {
background: #febc2e;
}
.dot-green {
background: #28c840;
}
.terminal-body {
padding: 1.25rem 1.5rem;
}
.cmd-line {
font-family: var(--mono);
font-size: 0.88rem;
line-height: 1.45;
white-space: pre;
overflow-x: auto;
}
.prompt {
color: var(--green);
}
.cmd {
color: var(--text-bright);
}
.out {
color: var(--yellow);
}
.out-bd-int {
color: #50c8dc;
font-weight: 700;
}
.out-bd-frac {
color: #c8ccd6;
}
.out-bd-path {
color: var(--text-bright);
font-weight: 700;
}
.cmt {
color: #6b7399;
}
.hero-ctas {
display: flex;
justify-content: center;
gap: 0.75rem;
margin-top: 1.75rem;
flex-wrap: wrap;
}
.btn {
display: inline-flex;
align-items: center;
gap: 0.4rem;
font-family: var(--mono);
font-size: 0.8rem;
padding: 0.55rem 1rem;
border-radius: 6px;
text-decoration: none;
transition:
background 0.15s,
border-color 0.15s;
}
.btn-primary {
background: rgba(97, 175, 239, 0.18);
border: 1px solid rgba(97, 175, 239, 0.45);
color: var(--accent);
}
.btn-primary:hover {
background: rgba(97, 175, 239, 0.3);
}
.btn-ghost {
border: 1px solid var(--border);
color: var(--text);
}
.btn-ghost:hover {
border-color: var(--accent);
color: var(--text-bright);
}
section {
padding: 5rem 1.5rem;
}
section + section {
border-top: 1px solid var(--border);
}
.container {
max-width: 960px;
margin: 0 auto;
}
.container-wide {
max-width: 1100px;
margin: 0 auto;
}
.section-label {
font-family: var(--mono);
font-size: 0.75rem;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--accent);
margin-bottom: 0.75rem;
}
h2 {
font-size: clamp(1.6rem, 3vw, 2.2rem);
color: var(--text-bright);
font-weight: 700;
margin-bottom: 1rem;
}
h3 {
color: var(--text-bright);
}
h4 {
color: var(--text-bright);
font-size: 1rem;
font-weight: 600;
margin: 2rem 0 0.75rem;
}
p {
color: var(--text);
margin-bottom: 1rem;
}
p:last-child {
margin-bottom: 0;
}
.callout {
font-size: 0.9rem;
margin-top: 1rem;
padding: 0.9rem 1.1rem;
background: rgba(97, 175, 239, 0.07);
border-left: 3px solid var(--accent);
border-radius: 0 var(--radius) var(--radius) 0;
}
.feature-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 1.25rem;
margin-top: 2.5rem;
}
.feature-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1.5rem;
transition:
border-color 0.2s,
transform 0.2s;
}
.feature-card:hover {
border-color: var(--accent);
transform: translateY(-2px);
}
.feature-card.span-double {
grid-column: span 2;
}
@media (max-width: 580px) {
.feature-card.span-double {
grid-column: span 1;
}
}
.feature-icon {
font-size: 1.75rem;
margin-bottom: 0.75rem;
}
.feature-card h3 {
font-size: 1rem;
font-weight: 600;
margin-bottom: 0.5rem;
}
.feature-card p {
font-size: 0.875rem;
margin: 0;
}
.tool-list {
margin-top: 0.75rem;
font-family: var(--mono);
font-size: 0.78rem;
color: var(--yellow);
line-height: 1.8;
}
.card-links {
margin-top: 0.75rem;
font-size: 0.85rem;
}
code {
font-family: var(--mono);
font-size: 0.85em;
background: rgba(255, 255, 255, 0.06);
border: 1px solid var(--border);
border-radius: 4px;
padding: 0.1em 0.4em;
color: var(--yellow);
}
pre {
background: var(--bg2);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1rem 1.25rem;
overflow-x: auto;
margin: 1rem 0;
}
pre code {
background: none;
border: none;
padding: 0;
color: var(--text-bright);
font-size: 0.85rem;
}
.bd-table {
width: 100%;
border-collapse: collapse;
margin-top: 1rem;
font-size: 0.85rem;
}
.bd-table th {
text-align: left;
color: var(--accent);
font-family: var(--mono);
font-weight: 600;
padding: 0.5rem 0.7rem;
border-bottom: 1px solid var(--border);
font-size: 0.78rem;
text-transform: uppercase;
letter-spacing: 0.06em;
}
.bd-table td {
padding: 0.5rem 0.7rem;
color: var(--text);
border-bottom: 1px solid rgba(46, 49, 80, 0.5);
vertical-align: top;
}
.bd-table tr:last-child td {
border-bottom: none;
}
.bd-table td:first-child {
color: var(--yellow);
font-family: var(--mono);
white-space: nowrap;
}
.tier-badge {
display: inline-block;
font-family: var(--mono);
font-size: 0.7rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--accent2);
background: rgba(198, 120, 221, 0.12);
border: 1px solid rgba(198, 120, 221, 0.35);
padding: 0.15rem 0.55rem;
border-radius: 999px;
margin-bottom: 0.5rem;
}
.format-section {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1.75rem;
margin-top: 2rem;
}
.format-section:first-of-type {
margin-top: 2.5rem;
}
.format-section p {
font-size: 0.9rem;
}
.pipeline {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 0.75rem;
margin-top: 2.5rem;
}
@media (max-width: 900px) {
.pipeline {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 520px) {
.pipeline {
grid-template-columns: 1fr;
}
.nav-links {
gap: 0.9rem;
}
}
.pipeline-step {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1.25rem;
text-align: center;
}
.pipeline-step .step-num {
font-family: var(--mono);
font-size: 0.7rem;
color: var(--accent);
letter-spacing: 0.1em;
text-transform: uppercase;
margin-bottom: 0.5rem;
}
.pipeline-step h3 {
font-size: 0.95rem;
margin-bottom: 0.35rem;
}
.pipeline-step p {
font-size: 0.8rem;
margin: 0;
}
.pipeline-arrow {
display: none;
}
a.link {
color: var(--accent);
text-decoration: none;
border-bottom: 1px solid transparent;
transition: border-color 0.2s;
}
a.link:hover {
border-color: var(--accent);
}
.steps {
margin-top: 2rem;
display: flex;
flex-direction: column;
gap: 1.25rem;
}
.step {
display: flex;
gap: 1.25rem;
align-items: flex-start;
}
.step-num {
flex-shrink: 0;
width: 32px;
height: 32px;
border-radius: 50%;
background: rgba(97, 175, 239, 0.15);
border: 1px solid rgba(97, 175, 239, 0.4);
color: var(--accent);
font-family: var(--mono);
font-size: 0.8rem;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
}
.step-body h3 {
font-size: 0.95rem;
font-weight: 600;
margin-bottom: 0.35rem;
}
.step-body p {
font-size: 0.875rem;
margin: 0;
}
footer {
border-top: 1px solid var(--border);
padding: 2rem 1.5rem;
text-align: center;
font-size: 0.8rem;
color: #555c7a;
}
footer a {
color: #6b7399;
text-decoration: none;
}
footer a:hover {
color: var(--text);
}
footer .footer-links {
display: flex;
justify-content: center;
gap: 1.5rem;
margin-top: 0.75rem;
flex-wrap: wrap;
}
.tag-row {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
margin-top: 0.75rem;
}
.tag {
font-family: var(--mono);
font-size: 0.68rem;
letter-spacing: 0.06em;
text-transform: uppercase;
padding: 0.18rem 0.5rem;
border-radius: 999px;
border: 1px solid var(--border);
}
.tag-color {
color: var(--accent2);
background: rgba(198, 120, 221, 0.12);
border-color: rgba(198, 120, 221, 0.35);
}
.tag-ext {
color: var(--green);
background: rgba(152, 195, 121, 0.1);
border-color: rgba(152, 195, 121, 0.35);
}
.extend-list {
margin-top: 0.75rem;
padding-left: 1.1rem;
font-size: 0.82rem;
color: var(--text);
}
.extend-list li {
margin-bottom: 0.35rem;
}
.extend-list li:last-child {
margin-bottom: 0;
}
.split {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
margin-top: 2.5rem;
}
@media (max-width: 760px) {
.split {
grid-template-columns: 1fr;
}
}
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1.75rem;
}
.card h3 {
font-size: 1.1rem;
font-weight: 700;
margin-bottom: 1rem;
}
.card p {
font-size: 0.9rem;
}
.out-label {
color: #50c8dc;
}
.out-value {
color: var(--text-bright);
font-weight: 700;
}
.out-unit {
color: #808080;
}
.out-dim {
color: #787878;
}
.out-good {
color: #64c864;
}
.out-warn {
color: var(--orange);
}
.out-hop {
color: var(--accent2);
}
</style>
</head>
<body>
<nav>
<a class="nav-brand" href="#">Bright Utils</a>
<ul class="nav-links">
<li><a href="#why">Why</a></li>
<li><a href="#enhanced">Enhanced</a></li>
<li><a href="#tools">Tools</a></li>
<li><a href="#format">Format</a></li>
<li><a href="#install">Install</a></li>
<li>
<a href="https://github.com/Digital-Defiance/bright-utils">GitHub</a>
</li>
</ul>
</nav>
<header class="hero">
<div class="hero-eyebrow">🛰️ find · ping · time · gpu · shell — one scalar</div>
<h1>Bright <span>Utils</span></h1>
<p class="hero-sub">
The unified home for
<a class="link" href="https://brightdate.org"><strong>BrightDate</strong></a>
utilities — file search, networking, timing, GPU profiling, and the
shell that ties them together. Every tool speaks the same timezone-free
decimal day count since J2000.0. No translation step between your prompt, your
logs, and your pipelines.
</p>
<p class="hero-sub">
Each utility uses a <code>b</code> prefix for <strong style="color: var(--text-bright)">Bright</strong>
(like <code>btime</code>, <code>bfind</code>, <code>bgpucap</code>) — a fork of a familiar GNU or system tool, not a thin
wrapper, but a <strong style="color: var(--text-bright)">color-enhanced,
feature-extended</strong> rebuild. BrightDate scalars, new predicates,
spacetime metrics, GPU/CPU/memory profiling, and TTY-aware color output — while
<code>-printf</code>, <code>-f</code>, and piped output stay plain for
scripts.
</p>
<div class="terminal">
<div class="terminal-bar">
<span class="dot dot-red"></span>
<span class="dot dot-yellow"></span>
<span class="dot dot-green"></span>
</div>
<div class="terminal-body">
<!-- prettier-ignore -->
<div class="cmd-line"><span class="cmt"># shell → files → timing → network → GPU/CPU/memory</span>
<span class="prompt">$</span><span class="cmd"> now=$BRIGHTEPOCH</span>
<span class="prompt">$</span><span class="cmd"> bfind . -after $now -name '*.rs' -printf '%Wt %p\n' | head -2</span>
<span class="out"><span class="out-bd-int">9628</span><span class="out-bd-frac">.197104</span> <span class="out-bd-path">./crates/btime/src/format.rs</span></span>
<span class="out"><span class="out-bd-int">9628</span><span class="out-bd-frac">.195697</span> <span class="out-bd-path">./find/print.c</span></span>
<span class="prompt">$</span><span class="cmd"> btime -f '%Wt %dE md' cargo test -q</span>
<span class="out"><span class="out-bd-int">9628</span><span class="out-bd-frac">.198441</span> 0.004861 md</span>
<span class="prompt">$</span><span class="cmd"> bgpucap -f json --metrics basic sleep 1 > report.json</span>
<span class="prompt">$</span><span class="cmd"> bgpucap compare before.json after.json</span>
<span class="out-label">gpu </span><span class="out-value"> 10.0</span> <span class="out-value">30.0</span> <span class="out-good">+20.0</span></div>
</div>
</div>
<div class="hero-ctas">
<a class="btn btn-primary" href="#enhanced">Color & extensions →</a>
<a class="btn btn-ghost" href="#tools">All tools</a>
<a class="btn btn-ghost" href="#format">Format spec</a>
<a class="btn btn-ghost" href="https://gpucap.digitaldefiance.org">bgpucap</a>
<a class="btn btn-ghost" href="https://brightdate.org">BrightDate.org</a>
<a class="btn btn-ghost" href="https://bsh.digitaldefiance.org">BSH</a>
</div>
</header>
<section id="why">
<div class="container">
<div class="section-label">The Idea</div>
<h2>One time representation. Every layer.</h2>
<p>
Unix timestamps, ISO 8601 strings, and local-midnight boundaries each
solve part of the problem — and each introduce invisible complexity
when tools disagree. BrightDate is a single <code>f64</code>: decimal
SI days since the astronomical epoch J2000.0, on a TAI substrate. No
timezone. No leap-second jumps. <code>b − a = elapsed days</code>,
always.
</p>
<p class="callout">
<strong style="color: var(--text-bright)">In one sentence:</strong>
BrightDate is a timezone-free SI-day count since J2000.0
(2000-01-01T11:58:55.816 UTC). BD 0.0 = the standard astronomical
epoch. BD 9628 ≈ May 2026. Machine interchange and log
correlation should prefer <code>%W*</code> at 9 decimal places.
</p>
<div class="pipeline">
<div class="pipeline-step">
<div class="step-num">Layer 1</div>
<h3>BSH</h3>
<p>
Shell prompt <code>%P</code>, <code>$BRIGHTEPOCH</code>,
<code>stat</code>, <code>ls -l</code>, <code>TIMEFMT</code>
</p>
</div>
<div class="pipeline-step">
<div class="step-num">Layer 2</div>
<h3>brightdate-rust</h3>
<p>
Core library + <code>bdate</code>, <code>btime</code>,
<code>buptime</code>, <code>bcal</code>, <code>bwatch</code>
</p>
</div>
<div class="pipeline-step">
<div class="step-num">Layer 3</div>
<h3>bright-findutils</h3>
<p>
<code>bfind</code>, <code>blocate</code>,
<code>bupdatedb</code>, <code>bxargs</code>
</p>
</div>
<div class="pipeline-step">
<div class="step-num">Layer 4</div>
<h3>bright-iputils</h3>
<p>
<code>bping</code>, <code>bclockdiff</code>,
<code>btraceroute</code>, <code>bmtr</code>, <code>baudit</code>
</p>
</div>
<div class="pipeline-step">
<div class="step-num">Layer 5</div>
<h3>bgpucap</h3>
<p>
<code>bgpucap</code> wraps any command — GPU, CPU, unified memory
on Apple Silicon; <code>gpuexercise</code>, <code>watch</code>,
<code>compare</code> subcommands (crate: <code>gpucap</code>)
</p>
</div>
</div>
</div>
</section>
<section id="enhanced">
<div class="container">
<div class="section-label">More than a rename</div>
<h2>Color-enhanced. Feature-extended.</h2>
<p>
Bright Utils are not drop-in aliases. Each project forks a mature
upstream (GNU findutils, iputils, GNU time/date, zsh) or adds a
new tool (<code>bgpucap</code>, crate <code>gpucap</code>) and extends it with BrightDate-native behavior <em>plus</em> interactive polish: semantic
color on TTYs, richer reports, and capabilities the stock tools never
had. Machine output stays script-safe — color applies to human-facing
reports; <code>-printf</code>, <code>-f</code>, and pipes remain
plain text.
</p>
<div class="split">
<div class="card">
<h3>🎨 Shared color system</h3>
<p>
Interactive tools share a consistent
<code>--color</code> / <code>--color-scheme</code> model:
</p>
<table class="bd-table">
<thead>
<tr>
<th>Flag</th>
<th>Behavior</th>
</tr>
</thead>
<tbody>
<tr>
<td>--color=auto</td>
<td>Colorize when stdout/stderr is a TTY (default)</td>
</tr>
<tr>
<td>--color=always</td>
<td>Force color even when piped</td>
</tr>
<tr>
<td>--color=never</td>
<td>Plain text everywhere</td>
</tr>
<tr>
<td>--color-scheme</td>
<td>Palette selection (e.g. default, bright)</td>
</tr>
</tbody>
</table>
<p style="margin-top: 1rem; font-size: 0.85rem">
Used by <code>bfind</code>, <code>btime</code>, <code>bgpucap</code>,
<code>bping</code>, <code>btraceroute</code>, <code>bmtr</code>,
<code>baudit</code>, and more. BrightDate integers, fractional
parts, labels, and efficiency scores each get distinct hues so
you can scan output at a glance.
</p>
</div>
<div class="card">
<h3>✨ What gets added</h3>
<table class="bd-table">
<thead>
<tr>
<th>Stock tool</th>
<th>Bright extension</th>
</tr>
</thead>
<tbody>
<tr>
<td>find</td>
<td><code>-after</code>/<code>-before</code>, <code>%W*</code>, BD <code>-daystart</code></td>
</tr>
<tr>
<td>ping</td>
<td>Light-floor, geo distance, efficiency %, ECEF coords, per-hop trace</td>
</tr>
<tr>
<td>time</td>
<td><code>%Wt</code>/<code>%Ws</code>, milliday durations, CPU heat colors</td>
</tr>
<tr>
<td>time (GPU)</td>
<td><code>bgpucap</code> — GPU/CPU/memory avg & peak, <code>-f json</code>, <code>watch</code>, <code>compare</code>, <code>gpuexercise</code></td>
</tr>
<tr>
<td>traceroute</td>
<td>Per-hop geoIP, RTT in md, path-length vs direct comparison</td>
</tr>
<tr>
<td>—</td>
<td><code>bmtr</code>, <code>baudit</code> — new tools, not upstream forks</td>
</tr>
</tbody>
</table>
</div>
</div>
<div
class="terminal"
style="display: block; margin-top: 2.5rem; max-width: 100%"
>
<div class="terminal-bar">
<span class="dot dot-red"></span>
<span class="dot dot-yellow"></span>
<span class="dot dot-green"></span>
</div>
<div class="terminal-body">
<!-- prettier-ignore -->
<div class="cmd-line"><span class="cmt"># same data — color on TTY, plain when piped to awk</span>
<span class="prompt">$</span><span class="cmd"> bfind . -maxdepth 2 -type f -printf '%Wt %p\n' | head -1</span>
<span class="out"><span class="out-bd-int">9628</span><span class="out-bd-frac">.197104</span> <span class="out-bd-path">./src/main.rs</span></span>
<span class="prompt">$</span><span class="cmd"> btime cargo build -q</span><span class="cmt"> # default report — colorized on TTY</span>
<span class="out-label">real </span><span class="out-value">0.420000</span><span class="out-unit"> md</span><span class="out-dim"> (36.288 s)</span>
<span class="out-label">user </span><span class="out-value">0.312500</span><span class="out-unit"> md</span><span class="out-dim"> CPU </span><span class="out-good">74%</span>
<span class="prompt">$</span><span class="cmd"> bping --color=always -c 1 8.8.8.8 2>&1 | tail -4</span>
<span class="out-label">geo distance </span><span class="out-value">= 3.644</span> <span class="out-unit">mBM</span><span class="out-dim"> (~1092 km)</span>
<span class="out-label">efficiency </span><span class="out-value">= </span><span class="out-good">34.90%</span>
<span class="prompt">$</span><span class="cmd"> bgpucap ffmpeg -i in.mp4 out.mp4</span><span class="cmt"> # colored GPU/CPU/memory report on stderr</span>
<span class="out-label">gpu </span><span class="out-value">avg 12.3%</span> <span class="out-warn">peak 45.6%</span>
<span class="out-label">cpu </span><span class="out-value">avg 8.1%</span> <span class="out-warn">peak 23.4%</span>
<span class="out-label">memory </span><span class="out-value">avg 52.0%</span> <span class="out-warn">peak 55.1%</span></div>
</div>
</div>
<h4 style="margin-top: 2.5rem">Extensions by project</h4>
<div class="feature-grid">
<div class="feature-card">
<div class="feature-icon">🔎</div>
<h3>bright-findutils</h3>
<div class="tag-row">
<span class="tag tag-color">--color</span>
<span class="tag tag-ext">new predicates</span>
</div>
<ul class="extend-list">
<li><code>-after</code> / <code>-before</code> — BD scalar time filters</li>
<li><code>%Wt</code>/<code>%Wa</code>/<code>%Wc</code>/<code>%WB</code> printf family</li>
<li><code>-daystart</code> floors to BD integer, not local midnight</li>
<li><code>-newer*</code> accepts BrightDate literals first</li>
<li><code>blocate --statistics</code> shows DB age as BD</li>
</ul>
</div>
<div class="feature-card">
<div class="feature-icon">📡</div>
<h3>bright-iputils</h3>
<div class="tag-row">
<span class="tag tag-color">--color</span>
<span class="tag tag-ext">BrightSpace</span>
</div>
<ul class="extend-list">
<li>Light-floor (RTT/2 at <em>c</em>) in mBM and km</li>
<li>Great-circle geo distance + efficiency scoring</li>
<li>RTT in millidays alongside milliseconds</li>
<li>ECEF coordinates via BrightNexus / BrightLink</li>
<li><code>bmtr</code> live rolling probe; <code>baudit</code> multi-anchor bounding</li>