-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstack-detector.html
More file actions
1094 lines (991 loc) · 84.7 KB
/
stack-detector.html
File metadata and controls
1094 lines (991 loc) · 84.7 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" />
<title>Tech Stack Detector — Analyze Any Website's Technology Stack</title>
<meta name="description" content="Enter any URL and instantly detect what technologies it uses: frontend frameworks, hosting, analytics, CMS, databases, auth, payments, and 100+ more. Free, no sign-up." />
<meta name="keywords" content="tech stack detector, website technology checker, what tech does a website use, wappalyzer alternative, builtwith alternative, detect framework, detect CMS, website analyzer 2026" />
<link rel="canonical" href="https://opentechstack.stitchwebsite.com/stack-detector.html" />
<meta property="og:title" content="Tech Stack Detector — Analyze Any Website's Technology Stack" />
<meta property="og:description" content="Enter any URL and instantly detect 100+ technologies: frameworks, hosting, analytics, CMS, databases, auth, payments, and more. Free, no sign-up." />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://opentechstack.stitchwebsite.com/stack-detector.html" />
<meta property="og:site_name" content="Open TechStack" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Tech Stack Detector — Analyze Any Website's Technology Stack" />
<meta name="twitter:description" content="Enter any URL and instantly detect 100+ technologies a website uses. Free, open-source." />
<meta name="robots" content="index, follow, max-snippet:-1, max-image-preview:large" />
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"WebApplication","name":"Tech Stack Detector","description":"Enter any URL and instantly detect what technologies a website uses: frontend frameworks, hosting, analytics, CMS, databases, auth, payments, and 100+ more.","url":"https://opentechstack.stitchwebsite.com/stack-detector.html","applicationCategory":"DeveloperApplication","offers":{"@type":"Offer","price":"0","priceCurrency":"USD"},"publisher":{"@type":"Organization","name":"Open TechStack","url":"https://opentechstack.stitchwebsite.com"}}
</script>
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>⚡</text></svg>" />
<script src="https://cdn.tailwindcss.com"></script>
<script>tailwind.config={darkMode:"class"}</script>
<link rel="stylesheet" href="dark-mode.css">
<script src="dark-mode.js"></script>
<style>
html { scroll-behavior: smooth; }
body { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-ring { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes scan-line { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.fade-in { animation: fadeIn .4s ease; }
.slide-up { animation: slideUp .5s ease both; }
.scan-bar { position: relative; overflow: hidden; }
.scan-bar::after { content: ''; position: absolute; top: 0; left: 0; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(99,102,241,.3), transparent); animation: scan-line 1.5s ease-in-out infinite; }
.spinner { width: 20px; height: 20px; border: 2.5px solid #e2e8f0; border-top-color: #6366f1; border-radius: 50%; animation: spin .7s linear infinite; }
.confidence-high { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.confidence-medium { background: #fef9c3; color: #854d0e; border: 1px solid #fef08a; }
.confidence-low { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
.dark .confidence-high { background: #14532d; color: #86efac; border-color: #166534; }
.dark .confidence-medium { background: #713f12; color: #fde047; border-color: #854d0e; }
.dark .confidence-low { background: #334155; color: #94a3b8; border-color: #475569; }
.tech-card { transition: all .2s ease; }
.tech-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.category-card { animation: slideUp .5s ease both; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: ''; display: inline-block; width: 0; height: 0; border-left: 5px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; margin-right: 6px; transition: transform .2s; }
details[open] summary::before { transform: rotate(90deg); }
.step-item { transition: all .3s ease; }
.step-item.active { color: #6366f1; }
.step-item.done { color: #22c55e; }
.step-check { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
</style>
</head>
<body class="bg-slate-50 text-slate-800 dark:bg-slate-950 dark:text-slate-200">
<nav class="bg-slate-900 text-white text-sm sticky top-0 z-50">
<div class="max-w-5xl mx-auto px-6 py-2.5 flex items-center justify-between">
<a href="index.html" class="font-bold tracking-tight hover:text-slate-300 transition">⚡ Open TechStack</a>
<div class="flex items-center gap-4 flex-wrap">
<a href="Frontend-Stacks-Visual-Guide.html" class="hover:text-slate-300 transition">Frontend</a>
<a href="Backend-Stacks-Visual-Guide.html" class="hover:text-slate-300 transition">Backend</a>
<a href="AIML-Stacks-Visual-Guide.html" class="hover:text-slate-300 transition">AI/ML</a>
<a href="AI-Coding-Tools-Visual-Guide.html" class="hover:text-slate-300 transition">AI Coding</a>
<a href="DevOps-Stacks-Visual-Guide.html" class="hover:text-slate-300 transition">DevOps</a>
<a href="Mobile-Stacks-Visual-Guide.html" class="hover:text-slate-300 transition">Mobile</a>
<a href="Stack-Combos.html" class="hover:text-slate-300 transition">Combos</a>
<a href="stack-picker.html" class="hover:text-slate-300 transition">Picker</a>
<a href="blog/" class="hover:text-slate-300 transition">Blog</a>
<a href="compare/" class="hover:text-slate-300 transition">Compare</a>
<a href="https://github.com/JagadeepPortfolio/awesome-vibecoding-techstacks" target="_blank" rel="noopener" class="hover:text-slate-300 transition">GitHub</a>
</div>
</div>
</nav>
<!-- Hero -->
<section id="heroSection" class="py-16 md:py-24">
<div class="max-w-3xl mx-auto px-6 text-center">
<div class="text-5xl mb-4">🔍</div>
<h1 class="text-3xl md:text-4xl font-extrabold tracking-tight mb-3">Tech Stack Detector</h1>
<p class="text-slate-500 dark:text-slate-400 text-lg mb-8 max-w-xl mx-auto">Enter any URL and we'll analyze the website to detect its entire technology stack — frameworks, hosting, analytics, CMS, payments, and more.</p>
<form id="urlForm" class="flex flex-col sm:flex-row gap-3 max-w-xl mx-auto" onsubmit="startScan(event)">
<input type="url" id="urlInput" required placeholder="https://example.com" class="flex-1 px-5 py-3.5 rounded-xl border-2 border-slate-200 dark:border-slate-700 bg-white dark:bg-slate-900 text-lg focus:outline-none focus:border-indigo-500 transition" />
<button type="submit" id="scanBtn" class="px-8 py-3.5 bg-slate-900 dark:bg-indigo-600 text-white font-bold rounded-xl hover:bg-slate-700 dark:hover:bg-indigo-500 transition text-lg whitespace-nowrap">Analyze</button>
</form>
<div class="flex flex-wrap justify-center gap-2 mt-4">
<button onclick="tryExample('https://vercel.com')" class="text-xs px-3 py-1 bg-slate-100 dark:bg-slate-800 rounded-full hover:bg-slate-200 dark:hover:bg-slate-700 transition">Try vercel.com</button>
<button onclick="tryExample('https://github.com')" class="text-xs px-3 py-1 bg-slate-100 dark:bg-slate-800 rounded-full hover:bg-slate-200 dark:hover:bg-slate-700 transition">Try github.com</button>
<button onclick="tryExample('https://stripe.com')" class="text-xs px-3 py-1 bg-slate-100 dark:bg-slate-800 rounded-full hover:bg-slate-200 dark:hover:bg-slate-700 transition">Try stripe.com</button>
<button onclick="tryExample('https://shopify.com')" class="text-xs px-3 py-1 bg-slate-100 dark:bg-slate-800 rounded-full hover:bg-slate-200 dark:hover:bg-slate-700 transition">Try shopify.com</button>
</div>
</div>
</section>
<!-- Scanning Progress -->
<section id="scanSection" class="hidden">
<div class="max-w-2xl mx-auto px-6 py-12">
<div class="text-center mb-8">
<div class="spinner mx-auto mb-4" style="width:32px;height:32px;border-width:3px;"></div>
<h2 class="text-xl font-bold mb-1">Analyzing <span id="scanningUrl" class="text-indigo-600 dark:text-indigo-400"></span></h2>
<p class="text-slate-500 dark:text-slate-400 text-sm">Running 5 detection methods in parallel...</p>
</div>
<div class="bg-white dark:bg-slate-900 rounded-2xl border border-slate-200 dark:border-slate-800 p-6 space-y-4">
<div id="step-html" class="step-item flex items-center gap-3">
<div class="step-check bg-slate-100 dark:bg-slate-800 text-slate-400"><div class="spinner" style="width:14px;height:14px;border-width:2px;"></div></div>
<span class="text-sm">Fetching HTML & headers via CORS proxy...</span>
</div>
<div id="step-dns" class="step-item flex items-center gap-3">
<div class="step-check bg-slate-100 dark:bg-slate-800 text-slate-400"><div class="spinner" style="width:14px;height:14px;border-width:2px;"></div></div>
<span class="text-sm">Querying DNS records (A, CNAME, MX, TXT, NS)...</span>
</div>
<div id="step-paths" class="step-item flex items-center gap-3">
<div class="step-check bg-slate-100 dark:bg-slate-800 text-slate-400"><div class="spinner" style="width:14px;height:14px;border-width:2px;"></div></div>
<span class="text-sm">Probing known paths (robots.txt, manifest, APIs)...</span>
</div>
<div id="step-csp" class="step-item flex items-center gap-3">
<div class="step-check bg-slate-100 dark:bg-slate-800 text-slate-400"><div class="spinner" style="width:14px;height:14px;border-width:2px;"></div></div>
<span class="text-sm">Parsing Content-Security-Policy headers...</span>
</div>
<div id="step-pattern" class="step-item flex items-center gap-3">
<div class="step-check bg-slate-100 dark:bg-slate-800 text-slate-400"><div class="spinner" style="width:14px;height:14px;border-width:2px;"></div></div>
<span class="text-sm">Running pattern matching against 150+ technologies...</span>
</div>
</div>
<div class="mt-4 h-1.5 bg-slate-100 dark:bg-slate-800 rounded-full scan-bar">
<div id="progressBar" class="h-full bg-indigo-500 rounded-full transition-all duration-500" style="width:0%"></div>
</div>
</div>
</section>
<!-- Results -->
<section id="resultsSection" class="hidden pb-16">
<div class="max-w-5xl mx-auto px-6">
<!-- Summary bar -->
<div id="summaryBar" class="bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-2xl p-5 mb-8 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 fade-in">
<div>
<h2 class="text-xl font-bold">Results for <span id="resultUrl" class="text-indigo-600 dark:text-indigo-400"></span></h2>
<p id="resultSummary" class="text-slate-500 dark:text-slate-400 text-sm mt-1"></p>
</div>
<div class="flex gap-2 flex-shrink-0">
<button onclick="shareResults()" class="px-4 py-2 bg-slate-100 dark:bg-slate-800 rounded-lg text-sm font-medium hover:bg-slate-200 dark:hover:bg-slate-700 transition">📋 Copy link</button>
<button onclick="resetScan()" class="px-4 py-2 bg-indigo-50 dark:bg-indigo-900/30 text-indigo-600 dark:text-indigo-400 rounded-lg text-sm font-medium hover:bg-indigo-100 dark:hover:bg-indigo-900/50 transition">Try another URL</button>
</div>
</div>
<!-- Category grid -->
<div id="resultsGrid" class="grid grid-cols-1 md:grid-cols-2 gap-5"></div>
</div>
</section>
<!-- Error -->
<section id="errorSection" class="hidden">
<div class="max-w-2xl mx-auto px-6 py-16 text-center">
<div class="text-5xl mb-4">⚠️</div>
<h2 class="text-xl font-bold mb-2">Could not analyze this site</h2>
<p id="errorMsg" class="text-slate-500 dark:text-slate-400 mb-6"></p>
<button onclick="resetScan()" class="px-6 py-3 bg-slate-900 dark:bg-indigo-600 text-white font-bold rounded-xl hover:bg-slate-700 dark:hover:bg-indigo-500 transition">Try another URL</button>
</div>
</section>
<footer class="bg-slate-950 text-slate-500 text-sm">
<div class="max-w-5xl mx-auto px-6 py-6 flex items-center justify-between flex-wrap gap-3">
<div>⚡ Open TechStack · <a href="https://stitchwebsite.com" class="hover:text-slate-300 transition">stitchwebsite.com</a></div>
<div class="text-xs">MIT License · Zero dependencies · No tracking</div>
</div>
</footer>
<script>
// ========== TECHNOLOGY DATABASE (150+ technologies) ==========
const TECHS = [
// --- Frontend Frameworks ---
{ name:"React", cat:"Frontend Framework", icon:"⚛️", patterns:{ html:[/__REACT/, /_reactRootContainer/, /data-reactroot/, /data-reactid/, /react-app/, /id="root"><\/div>/, /id="__next"/, /react\.version/], scripts:[/react\.production\.min\.js/, /react-dom/, /react\.development\.js/, /\/react@/, /\/react-dom@/, /_next\/static/], meta:{}, csp:[/unpkg\.com.*react/, /cdn\.jsdelivr\.net.*react/] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Detected React markers in HTML or script references" },
{ name:"Vue.js", cat:"Frontend Framework", icon:"💚", patterns:{ html:[/data-v-[a-f0-9]/, /__vue__/, /Vue\.js/, /\[Vue warn\]/], scripts:[/vue\.runtime/, /vue\.global/, /vue\.min\.js/, /vue@/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Vue.js data attributes or script references" },
{ name:"Angular", cat:"Frontend Framework", icon:"🅰️", patterns:{ html:[/ng-version=/, /ng-app/, /<app-root/, /ng-content/, /ng-reflect/], scripts:[/angular\.js/, /angular\.min\.js/, /@angular\/core/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Angular directives or ng-version attribute" },
{ name:"Svelte", cat:"Frontend Framework", icon:"🧡", patterns:{ html:[/svelte-[a-z0-9]/, /__svelte/, /class="svelte-/], scripts:[/svelte\/internal/, /svelte\.dev/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Svelte component class hashes or internal markers" },
{ name:"Solid.js", cat:"Frontend Framework", icon:"💎", patterns:{ html:[/_\$HY/, /solid-js/], scripts:[/solid-js/, /solid\.js/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Solid.js hydration markers" },
{ name:"Preact", cat:"Frontend Framework", icon:"⚡", patterns:{ html:[/preact/], scripts:[/preact\.min\.js/, /preact\/compat/, /preact\.module\.js/], meta:{}, csp:[/unpkg\.com.*preact/] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Preact script references" },
{ name:"HTMX", cat:"Frontend Framework", icon:"📡", patterns:{ html:[/hx-get/, /hx-post/, /hx-swap/, /hx-trigger/, /hx-target/], scripts:[/htmx\.org/, /htmx\.min\.js/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found HTMX attributes (hx-get, hx-post, etc.)" },
{ name:"Lit", cat:"Frontend Framework", icon:"🔥", patterns:{ html:[/lit-element/, /lit-html/], scripts:[/lit-element/, /lit-html/, /@lit\//], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Lit element references" },
{ name:"Alpine.js", cat:"Frontend Framework", icon:"🏔️", patterns:{ html:[/x-data\s*=/, /x-bind\s*=/, /x-on:/, /x-show/, /x-text/, /@click/], scripts:[/alpine\.js/, /alpinejs/, /cdn\.jsdelivr\.net.*alpine/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Alpine.js directives (x-data, x-bind)" },
{ name:"Ember.js", cat:"Frontend Framework", icon:"🐹", patterns:{ html:[/ember-view/, /data-ember/], scripts:[/ember\.js/, /ember\.min\.js/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Ember view markers" },
{ name:"Backbone.js", cat:"Frontend Framework", icon:"🦴", patterns:{ html:[], scripts:[/backbone\.js/, /backbone-min\.js/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Backbone.js script references" },
{ name:"Stimulus", cat:"Frontend Framework", icon:"⚡", patterns:{ html:[/data-controller=/, /data-action=/, /data-target=/], scripts:[/stimulus/, /@hotwired\/stimulus/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Stimulus data-controller attributes" },
{ name:"Turbo", cat:"Frontend Framework", icon:"🚀", patterns:{ html:[/data-turbo/, /turbo-frame/, /turbo-stream/], scripts:[/@hotwired\/turbo/, /turbo\.es2017/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Hotwire Turbo frames or streams" },
// --- Meta-Frameworks ---
{ name:"Next.js", cat:"Meta-Framework", icon:"▲", patterns:{ html:[/__NEXT_DATA__/, /id="__next"/, /next\/dist/, /_next\/static/, /_next\/image/, /nextjs/, /_buildManifest\.js/], scripts:[/_next\//, /next\/router/, /_ssgManifest/, /_buildManifest/], meta:{"generator":/Next\.js/}, csp:[/vercel\.live/, /vercel-insights/] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found __NEXT_DATA__ or _next/ paths" },
{ name:"Nuxt", cat:"Meta-Framework", icon:"💚", patterns:{ html:[/__NUXT__/, /_nuxt\//, /nuxt\.js/], scripts:[/_nuxt\//, /nuxt\.js/], meta:{"generator":/Nuxt/}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found __NUXT__ payload or _nuxt/ paths" },
{ name:"Astro", cat:"Meta-Framework", icon:"🚀", patterns:{ html:[/astro-island/, /astro-slot/, /data-astro/, /client:load/, /client:visible/], scripts:[], meta:{"generator":/Astro/}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Astro island components or generator meta" },
{ name:"Gatsby", cat:"Meta-Framework", icon:"💜", patterns:{ html:[/___gatsby/, /gatsby-/, /gatsby\.js/], scripts:[/gatsby-/, /gatsby\.js/], meta:{"generator":/Gatsby/}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Gatsby root element or script bundles" },
{ name:"SvelteKit", cat:"Meta-Framework", icon:"🧡", patterns:{ html:[/__sveltekit/, /sveltekit/, /data-sveltekit/], scripts:[/__sveltekit/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found SvelteKit internal markers" },
{ name:"Remix", cat:"Meta-Framework", icon:"💿", patterns:{ html:[/__remixContext/, /remix/, /__remix/], scripts:[/remix/, /@remix-run/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Remix context or script references" },
{ name:"Qwik", cat:"Meta-Framework", icon:"⚡", patterns:{ html:[/q:container/, /qwik/, /q:id/], scripts:[/qwik/, /@builder\.io\/qwik/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Qwik container markers" },
// --- CSS Frameworks ---
{ name:"Tailwind CSS", cat:"CSS Framework", icon:"🌊", patterns:{ html:[/class=["'][^"']*(?:flex |p-\d|m-\d|bg-\w|text-\w|rounded|shadow-|grid |gap-\d|w-\d|h-\d|min-w|max-w|space-[xy]|items-center|justify-)[^"']*["']/, /tailwindcss/, /tailwind\.css/, /tw-/], scripts:[/tailwindcss/, /tailwind\.min\.css/, /cdn\.tailwindcss\.com/], meta:{}, csp:[/cdn\.tailwindcss\.com/] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Detected high density of Tailwind utility classes" },
{ name:"Bootstrap", cat:"CSS Framework", icon:"🅱️", patterns:{ html:[/bootstrap\.min\.css/, /bootstrap\.min\.js/, /class="[^"]*btn btn-/, /class="[^"]*container/, /class="[^"]*navbar/], scripts:[/bootstrap\.bundle/, /bootstrap\.min\.js/], meta:{}, csp:[/cdn\.jsdelivr\.net.*bootstrap/, /stackpath\.bootstrapcdn\.com/] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Bootstrap CSS/JS references or class patterns" },
{ name:"Material UI / MUI", cat:"CSS Framework", icon:"🎨", patterns:{ html:[/MuiButton/, /MuiPaper/, /MuiTypography/, /css-[a-z0-9]{6,}-Mui/], scripts:[/@mui\//, /material-ui/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found MUI component class prefixes" },
{ name:"Chakra UI", cat:"CSS Framework", icon:"⚡", patterns:{ html:[/chakra-ui/, /chakra-/, /css-[a-z0-9]+/], scripts:[/chakra-ui/, /@chakra-ui/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Chakra UI component references" },
{ name:"Ant Design", cat:"CSS Framework", icon:"🐜", patterns:{ html:[/class="ant-/, /ant-btn/, /ant-layout/, /ant-table/], scripts:[/antd/, /ant-design/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Ant Design class prefixes (ant-*)" },
{ name:"Bulma", cat:"CSS Framework", icon:"🟢", patterns:{ html:[/bulma\.min\.css/, /class="[^"]*button is-/, /class="[^"]*columns/, /class="[^"]*hero/], scripts:[/bulma/], meta:{}, csp:[/cdn\.jsdelivr\.net.*bulma/] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Bulma CSS reference or class patterns" },
{ name:"Foundation", cat:"CSS Framework", icon:"🏗️", patterns:{ html:[/foundation\.min\.css/, /class="[^"]*callout/, /class="[^"]*reveal/], scripts:[/foundation\.min\.js/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Foundation framework references" },
{ name:"Radix UI", cat:"CSS Framework", icon:"🎯", patterns:{ html:[/data-radix/, /radix-/], scripts:[/@radix-ui/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Radix UI data attributes" },
{ name:"Styled Components", cat:"CSS Framework", icon:"💅", patterns:{ html:[/sc-[a-zA-Z]+-[a-zA-Z]+/, /class="[^"]*sc-/], scripts:[/styled-components/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found styled-components class hash pattern" },
{ name:"Emotion", cat:"CSS Framework", icon:"👩🎤", patterns:{ html:[/css-[a-z0-9]+-[a-z0-9]+/, /data-emotion/], scripts:[/@emotion/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Emotion CSS data attributes" },
{ name:"UnoCSS", cat:"CSS Framework", icon:"🎨", patterns:{ html:[/unocss/], scripts:[/unocss/, /uno\.css/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found UnoCSS references" },
// --- Hosting / CDN ---
{ name:"Vercel", cat:"Hosting / CDN", icon:"▲", patterns:{ html:[], scripts:[], headers:{"x-vercel-id":/./, "x-vercel-cache":/./, "server":/Vercel/}, dns:{cname:[/vercel-dns\.com/, /vercel\.app/]}, meta:{}, csp:[] }, guide:"DevOps-Stacks-Visual-Guide.html", why:"Detected Vercel headers (x-vercel-id) or DNS CNAME" },
{ name:"Netlify", cat:"Hosting / CDN", icon:"🔷", patterns:{ html:[], scripts:[], headers:{"x-nf-request-id":/./, "server":/Netlify/}, dns:{cname:[/netlify\.app/, /netlify\.com/]}, meta:{}, csp:[] }, guide:"DevOps-Stacks-Visual-Guide.html", why:"Detected Netlify headers or DNS CNAME" },
{ name:"Cloudflare", cat:"Hosting / CDN", icon:"🟠", patterns:{ html:[], scripts:[/cloudflareinsights\.com/, /cloudflare\.com\/ajax/], headers:{"cf-ray":/./, "cf-cache-status":/./, "server":/cloudflare/i}, dns:{ns:[/cloudflare\.com/]}, meta:{}, csp:[] }, guide:"DevOps-Stacks-Visual-Guide.html", why:"Detected Cloudflare headers (cf-ray) or NS records" },
{ name:"AWS (Amazon Web Services)", cat:"Hosting / CDN", icon:"☁️", patterns:{ html:[], scripts:[], headers:{"server":/AmazonS3|Amazon/, "x-amz-request-id":/./, "x-amz-cf-id":/./, "x-amz-cf-pop":/./}, dns:{cname:[/amazonaws\.com/, /cloudfront\.net/, /elasticbeanstalk\.com/, /s3\.amazonaws\.com/]}, meta:{}, csp:[] }, guide:"DevOps-Stacks-Visual-Guide.html", why:"Detected AWS headers or DNS pointing to AWS" },
{ name:"Google Cloud Platform", cat:"Hosting / CDN", icon:"🌐", patterns:{ html:[], scripts:[], headers:{"server":/Google Frontend|gws/, "x-gfe-request-trace":/./, "x-goog-":/./, "via":/google/i}, dns:{cname:[/googleapis\.com/, /googleusercontent\.com/]}, meta:{}, csp:[] }, guide:"DevOps-Stacks-Visual-Guide.html", why:"Detected GCP headers or DNS records" },
{ name:"Heroku", cat:"Hosting / CDN", icon:"🟣", patterns:{ html:[], scripts:[], headers:{"via":/heroku/i}, dns:{cname:[/herokuapp\.com/, /herokussl\.com/, /herokudns\.com/]}, meta:{}, csp:[] }, guide:"DevOps-Stacks-Visual-Guide.html", why:"Detected Heroku DNS CNAME" },
{ name:"Railway", cat:"Hosting / CDN", icon:"🚂", patterns:{ html:[], scripts:[], headers:{}, dns:{cname:[/railway\.app/]}, meta:{}, csp:[] }, guide:"DevOps-Stacks-Visual-Guide.html", why:"Detected Railway DNS CNAME" },
{ name:"Render", cat:"Hosting / CDN", icon:"🎨", patterns:{ html:[], scripts:[], headers:{"server":/Render/}, dns:{cname:[/onrender\.com/]}, meta:{}, csp:[] }, guide:"DevOps-Stacks-Visual-Guide.html", why:"Detected Render DNS CNAME" },
{ name:"Fly.io", cat:"Hosting / CDN", icon:"🪁", patterns:{ html:[], scripts:[], headers:{"fly-request-id":/./, "server":/Fly/}, dns:{cname:[/fly\.dev/, /edgeapp\.net/]}, meta:{}, csp:[] }, guide:"DevOps-Stacks-Visual-Guide.html", why:"Detected Fly.io headers or DNS" },
{ name:"GitHub Pages", cat:"Hosting / CDN", icon:"🐙", patterns:{ html:[], scripts:[], headers:{"server":/GitHub\.com/}, dns:{cname:[/github\.io/]}, meta:{}, csp:[] }, guide:"DevOps-Stacks-Visual-Guide.html", why:"Detected GitHub Pages server header or CNAME" },
{ name:"Firebase Hosting", cat:"Hosting / CDN", icon:"🔥", patterns:{ html:[], scripts:[], headers:{"x-firebase-hosting":/./, "server":/Google Frontend/}, dns:{cname:[/firebaseapp\.com/, /web\.app/]}, meta:{}, csp:[] }, guide:"DevOps-Stacks-Visual-Guide.html", why:"Detected Firebase hosting headers or DNS" },
{ name:"DigitalOcean", cat:"Hosting / CDN", icon:"🌊", patterns:{ html:[], scripts:[], headers:{}, dns:{cname:[/digitaloceanspaces\.com/, /ondigitalocean\.app/]}, meta:{}, csp:[] }, guide:"DevOps-Stacks-Visual-Guide.html", why:"Detected DigitalOcean DNS records" },
{ name:"Fastly", cat:"Hosting / CDN", icon:"⚡", patterns:{ html:[], scripts:[], headers:{"x-served-by":/cache-/, "x-fastly-request-id":/./, "via":/varnish/i}, dns:{cname:[/fastly\.net/]}, meta:{}, csp:[] }, guide:"DevOps-Stacks-Visual-Guide.html", why:"Detected Fastly CDN headers" },
{ name:"Akamai", cat:"Hosting / CDN", icon:"🌐", patterns:{ html:[], scripts:[], headers:{"x-akamai-transformed":/./, "server":/AkamaiGHost/i}, dns:{cname:[/akamaiedge\.net/, /akamaitechnologies\.com/, /edgekey\.net/]}, meta:{}, csp:[] }, guide:"DevOps-Stacks-Visual-Guide.html", why:"Detected Akamai CDN headers or DNS" },
// --- CMS ---
{ name:"WordPress", cat:"CMS", icon:"📝", patterns:{ html:[/wp-content/, /wp-includes/, /wordpress/i, /wp-json/], scripts:[/wp-content/, /wp-includes/, /wp-emoji/], meta:{"generator":/WordPress/}, csp:[] }, guide:"Backend-Stacks-Visual-Guide.html", why:"Found wp-content/wp-includes paths or WordPress generator meta" },
{ name:"Shopify", cat:"CMS", icon:"🛒", patterns:{ html:[/Shopify\.theme/, /cdn\.shopify\.com/, /myshopify\.com/, /shopify-section/], scripts:[/cdn\.shopify\.com/, /shopify\.js/], meta:{}, csp:[/cdn\.shopify\.com/] }, guide:"Backend-Stacks-Visual-Guide.html", why:"Found Shopify CDN or theme markers" },
{ name:"Webflow", cat:"CMS", icon:"🔵", patterns:{ html:[/webflow\.com/, /wf-/, /data-wf-/, /w-nav/, /w-slider/], scripts:[/webflow\.js/, /webflow\.[a-z0-9]+\.js/], meta:{"generator":/Webflow/}, csp:[/webflow\.com/] }, guide:"compare/", why:"Found Webflow data attributes or generator meta" },
{ name:"Squarespace", cat:"CMS", icon:"⬛", patterns:{ html:[/squarespace\.com/, /sqsp/, /sqs-/, /squarespace-cdn/], scripts:[/squarespace/, /static\.squarespace\.com/], meta:{}, csp:[/squarespace\.com/] }, guide:"compare/", why:"Found Squarespace CDN references" },
{ name:"Ghost", cat:"CMS", icon:"👻", patterns:{ html:[/ghost\//, /class="gh-/], scripts:[/ghost/], meta:{"generator":/Ghost/}, csp:[] }, guide:"Backend-Stacks-Visual-Guide.html", why:"Found Ghost CMS generator meta or paths" },
{ name:"Contentful", cat:"CMS", icon:"📦", patterns:{ html:[/contentful\.com/, /ctfassets\.net/, /images\.ctfassets\.net/], scripts:[/contentful/], meta:{}, csp:[/contentful\.com/, /ctfassets\.net/] }, guide:"Backend-Stacks-Visual-Guide.html", why:"Found Contentful CDN or API references" },
{ name:"Sanity", cat:"CMS", icon:"🔴", patterns:{ html:[/sanity\.io/, /cdn\.sanity\.io/], scripts:[/sanity/, /sanity\.io/], meta:{}, csp:[/sanity\.io/] }, guide:"Backend-Stacks-Visual-Guide.html", why:"Found Sanity.io CDN references" },
{ name:"Strapi", cat:"CMS", icon:"🚀", patterns:{ html:[/strapi/], scripts:[/strapi/], meta:{}, csp:[] }, guide:"Backend-Stacks-Visual-Guide.html", why:"Found Strapi API references" },
{ name:"Wix", cat:"CMS", icon:"🟡", patterns:{ html:[/wix\.com/, /parastorage\.com/, /wixstatic\.com/, /wix-code/], scripts:[/parastorage\.com/, /static\.wixstatic\.com/], meta:{"generator":/Wix/}, csp:[/wix\.com/, /parastorage\.com/] }, guide:"compare/", why:"Found Wix hosting or parastorage CDN" },
{ name:"Framer", cat:"CMS", icon:"🖼️", patterns:{ html:[/framer\.com/, /framer-/, /data-framer/], scripts:[/framer\.com/, /framerusercontent\.com/], meta:{}, csp:[/framer\.com/] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Framer data attributes or CDN" },
{ name:"Drupal", cat:"CMS", icon:"💧", patterns:{ html:[/drupal\.js/, /Drupal\.settings/, /drupal-/], scripts:[/drupal\.js/], meta:{"generator":/Drupal/}, csp:[] }, guide:"Backend-Stacks-Visual-Guide.html", why:"Found Drupal settings or generator meta" },
{ name:"Joomla", cat:"CMS", icon:"📰", patterns:{ html:[/joomla/, /\/media\/system\/js/], scripts:[], meta:{"generator":/Joomla/}, csp:[] }, guide:"Backend-Stacks-Visual-Guide.html", why:"Found Joomla generator meta" },
{ name:"Hugo", cat:"CMS", icon:"🐹", patterns:{ html:[], scripts:[], meta:{"generator":/Hugo/}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Hugo generator meta" },
{ name:"Jekyll", cat:"CMS", icon:"💎", patterns:{ html:[], scripts:[], meta:{"generator":/Jekyll/}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Jekyll generator meta" },
{ name:"Prismic", cat:"CMS", icon:"💜", patterns:{ html:[/prismic\.io/, /cdn\.prismic\.io/], scripts:[/prismic/], meta:{}, csp:[/prismic\.io/] }, guide:"Backend-Stacks-Visual-Guide.html", why:"Found Prismic CMS references" },
// --- Analytics ---
{ name:"Google Analytics", cat:"Analytics", icon:"📊", patterns:{ html:[/google-analytics\.com/, /googletagmanager\.com\/gtag/, /gtag\s*\(/, /UA-\d{4,}-\d{1,}/, /G-[A-Z0-9]+/], scripts:[/google-analytics\.com/, /gtag\.js/, /analytics\.js/], meta:{}, csp:[/google-analytics\.com/, /googletagmanager\.com/] }, guide:"compare/", why:"Found Google Analytics script or tracking ID" },
{ name:"Google Tag Manager", cat:"Analytics", icon:"🏷️", patterns:{ html:[/googletagmanager\.com\/gtm/, /GTM-[A-Z0-9]+/], scripts:[/googletagmanager\.com/], meta:{}, csp:[/googletagmanager\.com/] }, guide:"compare/", why:"Found Google Tag Manager container snippet" },
{ name:"Plausible Analytics", cat:"Analytics", icon:"📈", patterns:{ html:[/plausible\.io/, /data-domain=/], scripts:[/plausible\.io\/js/], meta:{}, csp:[/plausible\.io/] }, guide:"compare/", why:"Found Plausible analytics script" },
{ name:"Fathom Analytics", cat:"Analytics", icon:"📊", patterns:{ html:[/usefathom\.com/, /cdn\.usefathom\.com/], scripts:[/usefathom\.com/, /cdn\.usefathom\.com/], meta:{}, csp:[/usefathom\.com/] }, guide:"compare/", why:"Found Fathom Analytics script" },
{ name:"Mixpanel", cat:"Analytics", icon:"🔬", patterns:{ html:[/mixpanel\.com/, /cdn\.mxpnl\.com/], scripts:[/mixpanel/, /cdn\.mxpnl\.com/], meta:{}, csp:[/mixpanel\.com/, /mxpnl\.com/] }, guide:"compare/", why:"Found Mixpanel tracking script" },
{ name:"Hotjar", cat:"Analytics", icon:"🔥", patterns:{ html:[/hotjar\.com/, /hj\(/, /static\.hotjar\.com/], scripts:[/hotjar\.com/, /static\.hotjar\.com/], meta:{}, csp:[/hotjar\.com/] }, guide:"compare/", why:"Found Hotjar tracking script" },
{ name:"Amplitude", cat:"Analytics", icon:"📉", patterns:{ html:[/amplitude\.com/, /cdn\.amplitude\.com/], scripts:[/amplitude/, /cdn\.amplitude\.com/], meta:{}, csp:[/amplitude\.com/] }, guide:"compare/", why:"Found Amplitude analytics script" },
{ name:"PostHog", cat:"Analytics", icon:"🦔", patterns:{ html:[/posthog\.com/, /app\.posthog\.com/, /posthog-js/], scripts:[/posthog/, /app\.posthog\.com/], meta:{}, csp:[/posthog\.com/] }, guide:"compare/", why:"Found PostHog analytics script" },
{ name:"Segment", cat:"Analytics", icon:"🟢", patterns:{ html:[/segment\.com/, /cdn\.segment\.com/], scripts:[/cdn\.segment\.com/, /analytics\.min\.js.*segment/], meta:{}, csp:[/segment\.com/, /segment\.io/] }, guide:"compare/", why:"Found Segment analytics script" },
{ name:"Heap Analytics", cat:"Analytics", icon:"📦", patterns:{ html:[/heap-analytics/, /heapanalytics\.com/], scripts:[/heap-/, /heapanalytics\.com/], meta:{}, csp:[/heapanalytics\.com/] }, guide:"compare/", why:"Found Heap analytics script" },
{ name:"Vercel Analytics", cat:"Analytics", icon:"▲", patterns:{ html:[/vitals\.vercel-insights\.com/, /va\.vercel-scripts\.com/], scripts:[/vercel-insights/, /va\.vercel-scripts\.com/, /@vercel\/analytics/], meta:{}, csp:[/vercel-insights\.com/, /vercel-scripts\.com/] }, guide:"compare/", why:"Found Vercel Analytics or Web Vitals script" },
{ name:"Microsoft Clarity", cat:"Analytics", icon:"🔍", patterns:{ html:[/clarity\.ms/], scripts:[/clarity\.ms/], meta:{}, csp:[/clarity\.ms/] }, guide:"compare/", why:"Found Microsoft Clarity tracking script" },
{ name:"Matomo", cat:"Analytics", icon:"📊", patterns:{ html:[/matomo\.js/, /piwik\.js/], scripts:[/matomo\.js/, /matomo\.php/, /piwik\.js/], meta:{}, csp:[/matomo/] }, guide:"compare/", why:"Found Matomo (Piwik) analytics script" },
{ name:"Umami", cat:"Analytics", icon:"🍣", patterns:{ html:[/data-website-id=.*umami/, /umami\.is/], scripts:[/umami\.js/, /umami\.is/], meta:{}, csp:[] }, guide:"compare/", why:"Found Umami analytics script" },
// --- Authentication ---
{ name:"Clerk", cat:"Authentication", icon:"🔐", patterns:{ html:[/__clerk/, /clerk-js/, /clerk\./, /clerk\.com/], scripts:[/clerk\.com/, /clerk\.js/, /clerk-js/], meta:{}, csp:[/clerk\.com/, /clerk\.dev/] }, guide:"compare/", why:"Found Clerk authentication SDK" },
{ name:"Auth0", cat:"Authentication", icon:"🔑", patterns:{ html:[/auth0\.com/, /cdn\.auth0\.com/], scripts:[/auth0/, /cdn\.auth0\.com/], meta:{}, csp:[/auth0\.com/] }, guide:"compare/", why:"Found Auth0 SDK references" },
{ name:"Firebase Auth", cat:"Authentication", icon:"🔥", patterns:{ html:[/firebaseauth/, /identitytoolkit\.googleapis\.com/], scripts:[/firebase.*auth/, /identitytoolkit/], meta:{}, csp:[/identitytoolkit\.googleapis\.com/] }, guide:"compare/", why:"Found Firebase Authentication SDK" },
{ name:"Supabase Auth", cat:"Authentication", icon:"⚡", patterns:{ html:[/supabase\.co\/auth/, /supabase-auth/], scripts:[/supabase.*auth/], meta:{}, csp:[/supabase\.co/] }, guide:"compare/", why:"Found Supabase Auth references" },
{ name:"NextAuth / Auth.js", cat:"Authentication", icon:"🔒", patterns:{ html:[/next-auth/, /authjs/, /\/api\/auth\/session/], scripts:[/next-auth/], meta:{}, csp:[] }, guide:"compare/", why:"Found NextAuth.js / Auth.js references" },
{ name:"Okta", cat:"Authentication", icon:"🔷", patterns:{ html:[/okta\.com/], scripts:[/okta/, /okta\.com/], meta:{}, csp:[/okta\.com/] }, guide:"compare/", why:"Found Okta authentication references" },
{ name:"Keycloak", cat:"Authentication", icon:"🔐", patterns:{ html:[/keycloak/], scripts:[/keycloak\.js/], meta:{}, csp:[] }, guide:"compare/", why:"Found Keycloak authentication references" },
// --- Payments ---
{ name:"Stripe", cat:"Payments", icon:"💳", patterns:{ html:[/js\.stripe\.com/, /stripe\.com\/v3/, /__stripe/], scripts:[/js\.stripe\.com/, /stripe\.com\/v3/], meta:{}, csp:[/js\.stripe\.com/, /stripe\.com/] }, guide:"compare/", why:"Found Stripe.js payment SDK" },
{ name:"PayPal", cat:"Payments", icon:"💰", patterns:{ html:[/paypal\.com\/sdk/, /paypalobjects\.com/], scripts:[/paypal\.com/, /paypalobjects\.com/], meta:{}, csp:[/paypal\.com/, /paypalobjects\.com/] }, guide:"compare/", why:"Found PayPal SDK references" },
{ name:"Paddle", cat:"Payments", icon:"🏓", patterns:{ html:[/paddle\.com/, /cdn\.paddle\.com/], scripts:[/paddle\.com/, /cdn\.paddle\.com/], meta:{}, csp:[/paddle\.com/] }, guide:"compare/", why:"Found Paddle payment SDK" },
{ name:"Lemon Squeezy", cat:"Payments", icon:"🍋", patterns:{ html:[/lemonsqueezy\.com/], scripts:[/lemonsqueezy\.com/], meta:{}, csp:[/lemonsqueezy\.com/] }, guide:"compare/", why:"Found Lemon Squeezy references" },
{ name:"Razorpay", cat:"Payments", icon:"💸", patterns:{ html:[/razorpay\.com/], scripts:[/checkout\.razorpay\.com/], meta:{}, csp:[/razorpay\.com/] }, guide:"compare/", why:"Found Razorpay payment SDK" },
{ name:"Square", cat:"Payments", icon:"⬜", patterns:{ html:[/squareup\.com/, /square\.com/], scripts:[/squareup\.com/, /square\.com\/web/], meta:{}, csp:[/squareup\.com/] }, guide:"compare/", why:"Found Square payment references" },
// --- Database / BaaS ---
{ name:"Supabase", cat:"Database / BaaS", icon:"⚡", patterns:{ html:[/supabase\.co/, /supabase-js/], scripts:[/supabase/, /supabase\.co/], meta:{}, csp:[/supabase\.co/] }, guide:"Backend-Stacks-Visual-Guide.html", why:"Found Supabase client SDK or API references" },
{ name:"Firebase", cat:"Database / BaaS", icon:"🔥", patterns:{ html:[/firebaseio\.com/, /firebaseapp\.com/, /firebase\.js/, /firebase-app/], scripts:[/firebase/, /firebaseio\.com/, /gstatic\.com\/firebasejs/], meta:{}, csp:[/firebaseio\.com/, /firebaseapp\.com/] }, guide:"Backend-Stacks-Visual-Guide.html", why:"Found Firebase SDK or database references" },
{ name:"MongoDB Realm", cat:"Database / BaaS", icon:"🍃", patterns:{ html:[/realm\.mongodb\.com/], scripts:[/realm\.mongodb/, /mongodb-realm/], meta:{}, csp:[/realm\.mongodb\.com/] }, guide:"Backend-Stacks-Visual-Guide.html", why:"Found MongoDB Realm SDK references" },
{ name:"PlanetScale", cat:"Database / BaaS", icon:"🪐", patterns:{ html:[/psdb\.cloud/, /planetscale/], scripts:[/planetscale/], meta:{}, csp:[/psdb\.cloud/] }, guide:"Backend-Stacks-Visual-Guide.html", why:"Found PlanetScale database references" },
{ name:"Neon", cat:"Database / BaaS", icon:"🟢", patterns:{ html:[/neon\.tech/], scripts:[/neon\.tech/, /@neondatabase/], meta:{}, csp:[/neon\.tech/] }, guide:"Backend-Stacks-Visual-Guide.html", why:"Found Neon serverless Postgres references" },
{ name:"Appwrite", cat:"Database / BaaS", icon:"🏗️", patterns:{ html:[/appwrite\.io/], scripts:[/appwrite/], meta:{}, csp:[/appwrite\.io/] }, guide:"Backend-Stacks-Visual-Guide.html", why:"Found Appwrite BaaS references" },
{ name:"Convex", cat:"Database / BaaS", icon:"🔷", patterns:{ html:[/convex\.cloud/], scripts:[/convex/, /convex\.cloud/], meta:{}, csp:[/convex\.cloud/] }, guide:"Backend-Stacks-Visual-Guide.html", why:"Found Convex backend references" },
{ name:"Hasura", cat:"Database / BaaS", icon:"🌀", patterns:{ html:[/hasura\.io/, /hasura/], scripts:[/hasura/], meta:{}, csp:[/hasura\.io/] }, guide:"Backend-Stacks-Visual-Guide.html", why:"Found Hasura GraphQL references" },
{ name:"Fauna", cat:"Database / BaaS", icon:"🦎", patterns:{ html:[/fauna\.com/, /faunadb/], scripts:[/fauna/], meta:{}, csp:[/fauna\.com/] }, guide:"Backend-Stacks-Visual-Guide.html", why:"Found Fauna database references" },
// --- Monitoring / Error Tracking ---
{ name:"Sentry", cat:"Monitoring", icon:"🛡️", patterns:{ html:[/sentry\.io/, /browser\.sentry-cdn\.com/, /Sentry\.init/, /sentry-/], scripts:[/sentry/, /browser\.sentry-cdn\.com/], meta:{}, csp:[/sentry\.io/, /sentry-cdn\.com/] }, guide:"DevOps-Stacks-Visual-Guide.html", why:"Found Sentry error tracking SDK" },
{ name:"Datadog", cat:"Monitoring", icon:"🐕", patterns:{ html:[/datadoghq\.com/, /dd-/, /datadog/], scripts:[/datadoghq\.com/, /datadog/], meta:{}, csp:[/datadoghq\.com/] }, guide:"DevOps-Stacks-Visual-Guide.html", why:"Found Datadog monitoring script" },
{ name:"LogRocket", cat:"Monitoring", icon:"🚀", patterns:{ html:[/logrocket\.com/, /cdn\.lr-ingest\.io/, /lr-ingest/], scripts:[/logrocket/, /cdn\.lr-ingest\.io/], meta:{}, csp:[/logrocket\.com/, /lr-ingest\.io/, /lr-in\.com/] }, guide:"DevOps-Stacks-Visual-Guide.html", why:"Found LogRocket session replay SDK" },
{ name:"New Relic", cat:"Monitoring", icon:"📊", patterns:{ html:[/newrelic\.com/, /nr-data\.net/], scripts:[/newrelic/, /nr-data\.net/], meta:{}, csp:[/newrelic\.com/, /nr-data\.net/] }, guide:"DevOps-Stacks-Visual-Guide.html", why:"Found New Relic monitoring script" },
{ name:"Bugsnag", cat:"Monitoring", icon:"🐛", patterns:{ html:[/bugsnag\.com/, /d2wy8f7a9ursnm\.cloudfront\.net/], scripts:[/bugsnag/, /d2wy8f7a9ursnm\.cloudfront\.net/], meta:{}, csp:[/bugsnag\.com/] }, guide:"DevOps-Stacks-Visual-Guide.html", why:"Found Bugsnag error tracking script" },
{ name:"Rollbar", cat:"Monitoring", icon:"📋", patterns:{ html:[/rollbar\.com/], scripts:[/rollbar\.com/, /rollbar\.js/], meta:{}, csp:[/rollbar\.com/] }, guide:"DevOps-Stacks-Visual-Guide.html", why:"Found Rollbar error tracking script" },
{ name:"FullStory", cat:"Monitoring", icon:"🎥", patterns:{ html:[/fullstory\.com/, /fullstory/], scripts:[/fullstory\.com/], meta:{}, csp:[/fullstory\.com/] }, guide:"DevOps-Stacks-Visual-Guide.html", why:"Found FullStory session replay" },
// --- Email (DNS-based) ---
{ name:"Google Workspace", cat:"Email", icon:"📧", patterns:{ html:[], scripts:[], dns:{mx:[/google\.com/, /googlemail\.com/, /aspmx\.l\.google\.com/]}, meta:{}, csp:[] }, guide:"compare/", why:"Detected Google MX records indicating Google Workspace" },
{ name:"Microsoft 365", cat:"Email", icon:"📬", patterns:{ html:[], scripts:[], dns:{mx:[/outlook\.com/, /protection\.outlook\.com/, /mail\.protection\.outlook\.com/]}, meta:{}, csp:[] }, guide:"compare/", why:"Detected Microsoft 365 MX records" },
{ name:"SendGrid", cat:"Email", icon:"📨", patterns:{ html:[/sendgrid\.net/], scripts:[], dns:{cname:[/sendgrid\.net/]}, meta:{}, csp:[] }, guide:"compare/", why:"Detected SendGrid DNS records or references" },
{ name:"Postmark", cat:"Email", icon:"💌", patterns:{ html:[/postmarkapp\.com/], scripts:[], dns:{cname:[/postmarkapp\.com/]}, meta:{}, csp:[] }, guide:"compare/", why:"Detected Postmark DNS records" },
{ name:"Mailgun", cat:"Email", icon:"🔫", patterns:{ html:[/mailgun\.org/], scripts:[], dns:{cname:[/mailgun\.org/], txt:[/mailgun/]}, meta:{}, csp:[] }, guide:"compare/", why:"Detected Mailgun DNS records" },
{ name:"Amazon SES", cat:"Email", icon:"📧", patterns:{ html:[], scripts:[], dns:{mx:[/amazonses\.com/, /inbound-smtp.*amazonaws\.com/], txt:[/amazonses/]}, meta:{}, csp:[] }, guide:"compare/", why:"Detected Amazon SES MX or TXT records" },
// --- JavaScript Libraries ---
{ name:"jQuery", cat:"JavaScript Library", icon:"📜", patterns:{ html:[/jquery\.min\.js/, /jquery-\d/, /jQuery/], scripts:[/jquery\.min\.js/, /jquery-\d/, /code\.jquery\.com/], meta:{}, csp:[/code\.jquery\.com/] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found jQuery script references" },
{ name:"Lodash", cat:"JavaScript Library", icon:"🔧", patterns:{ html:[/lodash/, /lodash\.min\.js/], scripts:[/lodash/, /lodash\.min\.js/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Lodash utility library" },
{ name:"GSAP", cat:"JavaScript Library", icon:"🎬", patterns:{ html:[/gsap/, /greensock/, /TweenMax/, /TweenLite/], scripts:[/gsap/, /greensock/, /cdnjs\.cloudflare\.com.*gsap/], meta:{}, csp:[/greensock\.com/] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found GSAP animation library" },
{ name:"Three.js", cat:"JavaScript Library", icon:"🎮", patterns:{ html:[/three\.js/, /three\.min\.js/, /three\.module\.js/], scripts:[/three\.js/, /three\.min\.js/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Three.js 3D library" },
{ name:"D3.js", cat:"JavaScript Library", icon:"📊", patterns:{ html:[/d3\.js/, /d3\.min\.js/, /d3\.v\d/], scripts:[/d3\.js/, /d3\.min\.js/, /d3\.v\d/], meta:{}, csp:[/d3js\.org/] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found D3.js data visualization library" },
{ name:"Moment.js", cat:"JavaScript Library", icon:"🕐", patterns:{ html:[/moment\.min\.js/, /moment\.js/], scripts:[/moment\.min\.js/, /moment\.js/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Moment.js date library" },
{ name:"Axios", cat:"JavaScript Library", icon:"🌐", patterns:{ html:[/axios\.min\.js/, /axios/], scripts:[/axios\.min\.js/, /cdn\.jsdelivr\.net.*axios/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Axios HTTP library" },
{ name:"Socket.io", cat:"JavaScript Library", icon:"🔌", patterns:{ html:[/socket\.io/, /socket\.io\.js/], scripts:[/socket\.io/], meta:{}, csp:[] }, guide:"Backend-Stacks-Visual-Guide.html", why:"Found Socket.io real-time library" },
{ name:"Anime.js", cat:"JavaScript Library", icon:"✨", patterns:{ html:[/anime\.min\.js/], scripts:[/anime\.min\.js/, /animejs/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Anime.js animation library" },
{ name:"Chart.js", cat:"JavaScript Library", icon:"📈", patterns:{ html:[/chart\.js/, /chart\.min\.js/], scripts:[/chart\.js/, /chart\.min\.js/, /chartjs/], meta:{}, csp:[/cdn\.jsdelivr\.net.*chart\.js/] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Chart.js visualization library" },
{ name:"Lottie", cat:"JavaScript Library", icon:"🎞️", patterns:{ html:[/lottie/, /bodymovin/], scripts:[/lottie/, /bodymovin/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Lottie animation player" },
{ name:"Swiper", cat:"JavaScript Library", icon:"👆", patterns:{ html:[/swiper-/, /swiper\.min/, /class="swiper/], scripts:[/swiper\.min/, /swiper-bundle/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Swiper slider library" },
// --- Fonts ---
{ name:"Google Fonts", cat:"Fonts", icon:"🔤", patterns:{ html:[/fonts\.googleapis\.com/, /fonts\.gstatic\.com/], scripts:[], meta:{}, csp:[/fonts\.googleapis\.com/, /fonts\.gstatic\.com/] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Google Fonts stylesheet references" },
{ name:"Adobe Fonts / Typekit", cat:"Fonts", icon:"🔠", patterns:{ html:[/use\.typekit\.net/, /p\.typekit\.net/, /adobe.*fonts/i], scripts:[/typekit\.net/, /use\.typekit\.net/], meta:{}, csp:[/typekit\.net/] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Adobe Fonts / Typekit references" },
{ name:"Font Awesome", cat:"Fonts", icon:"🅰️", patterns:{ html:[/font-awesome/, /fontawesome/, /fa-[a-z]/, /class="fa /], scripts:[/fontawesome/, /font-awesome/], meta:{}, csp:[/fontawesome\.com/] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Font Awesome icon references" },
// --- Customer Support / Chat ---
{ name:"Intercom", cat:"Customer Support", icon:"💬", patterns:{ html:[/intercom\.io/, /widget\.intercom\.io/, /intercomSettings/], scripts:[/intercom/, /widget\.intercom\.io/], meta:{}, csp:[/intercom\.io/] }, guide:"compare/", why:"Found Intercom chat widget" },
{ name:"Crisp", cat:"Customer Support", icon:"💬", patterns:{ html:[/crisp\.chat/, /client\.crisp\.chat/], scripts:[/crisp\.chat/], meta:{}, csp:[/crisp\.chat/] }, guide:"compare/", why:"Found Crisp chat widget" },
{ name:"Drift", cat:"Customer Support", icon:"💬", patterns:{ html:[/drift\.com/, /js\.driftt\.com/], scripts:[/drift\.com/, /driftt\.com/], meta:{}, csp:[/drift\.com/] }, guide:"compare/", why:"Found Drift chat widget" },
{ name:"Zendesk", cat:"Customer Support", icon:"💬", patterns:{ html:[/zendesk\.com/, /zdassets\.com/, /zopim/], scripts:[/zendesk\.com/, /zdassets\.com/], meta:{}, csp:[/zendesk\.com/, /zdassets\.com/] }, guide:"compare/", why:"Found Zendesk support widget" },
{ name:"HubSpot", cat:"Customer Support", icon:"🟠", patterns:{ html:[/hubspot\.com/, /hs-scripts\.com/, /js\.hs-analytics\.net/, /hbspt/, /hs-banner/], scripts:[/hubspot\.com/, /hs-scripts\.com/, /hs-analytics\.net/], meta:{}, csp:[/hubspot\.com/, /hs-scripts\.com/, /hsforms\.com/] }, guide:"compare/", why:"Found HubSpot scripts or tracking" },
{ name:"Freshdesk", cat:"Customer Support", icon:"💬", patterns:{ html:[/freshdesk\.com/, /freshworks\.com/], scripts:[/freshdesk/, /freshworks/], meta:{}, csp:[/freshdesk\.com/] }, guide:"compare/", why:"Found Freshdesk support widget" },
{ name:"Tawk.to", cat:"Customer Support", icon:"💬", patterns:{ html:[/tawk\.to/], scripts:[/tawk\.to/, /embed\.tawk\.to/], meta:{}, csp:[/tawk\.to/] }, guide:"compare/", why:"Found Tawk.to live chat widget" },
// --- Other Services ---
{ name:"GraphQL", cat:"API / Other", icon:"🔗", patterns:{ html:[/\/graphql/, /__graphql/, /graphql/], scripts:[/graphql/], meta:{}, csp:[] }, guide:"Backend-Stacks-Visual-Guide.html", why:"Found GraphQL endpoint or references" },
{ name:"PWA (Progressive Web App)", cat:"API / Other", icon:"📱", patterns:{ html:[/manifest\.json/, /service-worker/, /serviceWorker/, /rel="manifest"/], scripts:[/service-worker/, /serviceWorker/, /workbox/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found manifest.json or service worker registration" },
{ name:"AMP", cat:"API / Other", icon:"⚡", patterns:{ html:[/amp-/, /cdn\.ampproject\.org/, /<html\s[^>]*amp/], scripts:[/cdn\.ampproject\.org/], meta:{}, csp:[/ampproject\.org/] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found AMP components or AMP CDN" },
{ name:"reCAPTCHA", cat:"API / Other", icon:"🤖", patterns:{ html:[/recaptcha/, /google\.com\/recaptcha/, /g-recaptcha/], scripts:[/recaptcha/, /google\.com\/recaptcha/], meta:{}, csp:[/google\.com.*recaptcha/, /gstatic\.com.*recaptcha/] }, guide:"compare/", why:"Found Google reCAPTCHA references" },
{ name:"hCaptcha", cat:"API / Other", icon:"🤖", patterns:{ html:[/hcaptcha\.com/, /h-captcha/], scripts:[/hcaptcha\.com/], meta:{}, csp:[/hcaptcha\.com/] }, guide:"compare/", why:"Found hCaptcha references" },
{ name:"Cloudinary", cat:"API / Other", icon:"🖼️", patterns:{ html:[/cloudinary\.com/, /res\.cloudinary\.com/], scripts:[/cloudinary/], meta:{}, csp:[/cloudinary\.com/] }, guide:"compare/", why:"Found Cloudinary image CDN references" },
{ name:"Imgix", cat:"API / Other", icon:"🖼️", patterns:{ html:[/imgix\.net/], scripts:[/imgix/], meta:{}, csp:[/imgix\.net/] }, guide:"compare/", why:"Found Imgix image CDN references" },
{ name:"LaunchDarkly", cat:"API / Other", icon:"🚀", patterns:{ html:[/launchdarkly\.com/], scripts:[/launchdarkly/, /ld\.js/], meta:{}, csp:[/launchdarkly\.com/] }, guide:"compare/", why:"Found LaunchDarkly feature flag SDK" },
{ name:"Algolia", cat:"API / Other", icon:"🔍", patterns:{ html:[/algolia\.com/, /algolia\.net/, /algoliasearch/], scripts:[/algolia/, /algoliasearch/], meta:{}, csp:[/algolia\.net/, /algolia\.com/] }, guide:"compare/", why:"Found Algolia search SDK references" },
{ name:"Twilio", cat:"API / Other", icon:"📞", patterns:{ html:[/twilio\.com/], scripts:[/twilio/], meta:{}, csp:[/twilio\.com/] }, guide:"compare/", why:"Found Twilio communication references" },
{ name:"Mapbox", cat:"API / Other", icon:"🗺️", patterns:{ html:[/mapbox\.com/, /api\.mapbox\.com/], scripts:[/mapbox-gl/, /mapbox\.com/], meta:{}, csp:[/mapbox\.com/] }, guide:"compare/", why:"Found Mapbox mapping SDK" },
{ name:"Google Maps", cat:"API / Other", icon:"🗺️", patterns:{ html:[/maps\.googleapis\.com/, /maps\.google\.com/], scripts:[/maps\.googleapis\.com/], meta:{}, csp:[/maps\.googleapis\.com/] }, guide:"compare/", why:"Found Google Maps API references" },
{ name:"Webpack", cat:"Build Tool", icon:"📦", patterns:{ html:[/webpackJsonp/, /webpack/, /__webpack_require__/], scripts:[/bundle\.js/, /webpack/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Webpack bundle markers" },
{ name:"Vite", cat:"Build Tool", icon:"⚡", patterns:{ html:[/@vite/, /vite\/modulepreload/, /type="module".*crossorigin/], scripts:[/@vite/, /vite/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Vite module preload or markers" },
{ name:"Parcel", cat:"Build Tool", icon:"📦", patterns:{ html:[/parcelRequire/], scripts:[/parcel/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Parcel bundler markers" },
{ name:"Turbopack", cat:"Build Tool", icon:"⚡", patterns:{ html:[/turbopack/], scripts:[/turbopack/], meta:{}, csp:[] }, guide:"Frontend-Stacks-Visual-Guide.html", why:"Found Turbopack bundler markers" },
{ name:"Vercel Speed Insights", cat:"Performance", icon:"⚡", patterns:{ html:[/vercel\.com\/speed-insights/, /speed-insights/], scripts:[/speed-insights/, /@vercel\/speed-insights/], meta:{}, csp:[/vercel-scripts\.com/] }, guide:"DevOps-Stacks-Visual-Guide.html", why:"Found Vercel Speed Insights script" },
{ name:"Optimizely", cat:"A/B Testing", icon:"🧪", patterns:{ html:[/optimizely\.com/], scripts:[/optimizely\.com/, /cdn\.optimizely\.com/], meta:{}, csp:[/optimizely\.com/] }, guide:"compare/", why:"Found Optimizely A/B testing script" },
{ name:"LaunchDarkly", cat:"A/B Testing", icon:"🏴", patterns:{ html:[/launchdarkly\.com/], scripts:[/launchdarkly/], meta:{}, csp:[/launchdarkly\.com/] }, guide:"compare/", why:"Found LaunchDarkly feature flags" },
{ name:"VWO", cat:"A/B Testing", icon:"🧪", patterns:{ html:[/visualwebsiteoptimizer\.com/, /vwo_/, /dev\.visualwebsiteoptimizer/], scripts:[/visualwebsiteoptimizer\.com/], meta:{}, csp:[/visualwebsiteoptimizer\.com/] }, guide:"compare/", why:"Found VWO testing script" },
{ name:"Cookiebot", cat:"Privacy", icon:"🍪", patterns:{ html:[/cookiebot\.com/, /CookieConsent/], scripts:[/cookiebot\.com/, /consent\.cookiebot\.com/], meta:{}, csp:[/cookiebot\.com/] }, guide:"compare/", why:"Found Cookiebot consent management" },
{ name:"OneTrust", cat:"Privacy", icon:"🍪", patterns:{ html:[/onetrust\.com/, /optanon/, /OneTrust/], scripts:[/onetrust\.com/, /cdn\.cookielaw\.org/], meta:{}, csp:[/onetrust\.com/, /cookielaw\.org/] }, guide:"compare/", why:"Found OneTrust privacy management" },
{ name:"TrustArc", cat:"Privacy", icon:"🍪", patterns:{ html:[/trustarc\.com/, /truste\.com/], scripts:[/trustarc\.com/], meta:{}, csp:[/trustarc\.com/] }, guide:"compare/", why:"Found TrustArc privacy management" },
{ name:"Unpkg CDN", cat:"CDN", icon:"📦", patterns:{ html:[/unpkg\.com/], scripts:[/unpkg\.com/], meta:{}, csp:[/unpkg\.com/] }, guide:"compare/", why:"Found unpkg CDN references" },
{ name:"jsDelivr CDN", cat:"CDN", icon:"📦", patterns:{ html:[/cdn\.jsdelivr\.net/], scripts:[/cdn\.jsdelivr\.net/], meta:{}, csp:[/cdn\.jsdelivr\.net/] }, guide:"compare/", why:"Found jsDelivr CDN references" },
{ name:"cdnjs", cat:"CDN", icon:"📦", patterns:{ html:[/cdnjs\.cloudflare\.com/], scripts:[/cdnjs\.cloudflare\.com/], meta:{}, csp:[/cdnjs\.cloudflare\.com/] }, guide:"compare/", why:"Found cdnjs CDN references" },
{ name:"Ruby on Rails", cat:"Backend Framework", icon:"💎", patterns:{ html:[/csrf-token/, /turbo-frame/, /data-turbo/], scripts:[/turbo\.es2017/, /rails-ujs/, /actioncable/], headers:{"x-powered-by":/Phusion Passenger/, "server":/Passenger|nginx.*rails/i, "x-request-id":/./, "x-runtime":/./}, meta:{"csrf-param":/authenticity_token/}, csp:[] }, guide:"Backend-Stacks-Visual-Guide.html", why:"Found Rails CSRF token or Turbo/UJS scripts" },
{ name:"Django", cat:"Backend Framework", icon:"🐍", patterns:{ html:[/csrfmiddlewaretoken/, /django/], scripts:[], headers:{"x-frame-options":/DENY|SAMEORIGIN/}, meta:{}, csp:[] }, guide:"Backend-Stacks-Visual-Guide.html", why:"Found Django CSRF middleware token" },
{ name:"Laravel", cat:"Backend Framework", icon:"🔴", patterns:{ html:[/laravel/, /csrf-token.*content/, /app\.js.*laravel/], scripts:[/laravel/, /app\.js/], headers:{"x-powered-by":/Laravel/}, meta:{}, csp:[] }, guide:"Backend-Stacks-Visual-Guide.html", why:"Found Laravel framework markers" },
{ name:"Express.js", cat:"Backend Framework", icon:"🟢", patterns:{ html:[], scripts:[], headers:{"x-powered-by":/Express/}, meta:{}, csp:[] }, guide:"Backend-Stacks-Visual-Guide.html", why:"Found Express.js x-powered-by header" },
{ name:"ASP.NET", cat:"Backend Framework", icon:"🟣", patterns:{ html:[/__VIEWSTATE/, /__EVENTVALIDATION/, /aspnetForm/], scripts:[], headers:{"x-powered-by":/ASP\.NET/, "x-aspnet-version":/./, "server":/Microsoft-IIS/}, meta:{}, csp:[] }, guide:"Backend-Stacks-Visual-Guide.html", why:"Found ASP.NET ViewState or IIS headers" },
{ name:"PHP", cat:"Backend Framework", icon:"🐘", patterns:{ html:[/\.php/, /PHPSESSID/], scripts:[], headers:{"x-powered-by":/PHP/, "server":/PHP/}, meta:{}, csp:[] }, guide:"Backend-Stacks-Visual-Guide.html", why:"Found PHP x-powered-by header or .php paths" },
{ name:"Spring Boot", cat:"Backend Framework", icon:"🍃", patterns:{ html:[], scripts:[], headers:{"x-application-context":/./, "server":/Apache-Coyote/}, meta:{}, csp:[] }, guide:"Backend-Stacks-Visual-Guide.html", why:"Found Spring Boot application context header" },
{ name:"Nginx", cat:"Web Server", icon:"🟩", patterns:{ html:[], scripts:[], headers:{"server":/nginx/i}, meta:{}, csp:[] }, guide:"DevOps-Stacks-Visual-Guide.html", why:"Detected nginx server header" },
{ name:"Apache", cat:"Web Server", icon:"🪶", patterns:{ html:[], scripts:[], headers:{"server":/Apache/i}, meta:{}, csp:[] }, guide:"DevOps-Stacks-Visual-Guide.html", why:"Detected Apache server header" },
{ name:"Caddy", cat:"Web Server", icon:"🟢", patterns:{ html:[], scripts:[], headers:{"server":/Caddy/i}, meta:{}, csp:[] }, guide:"DevOps-Stacks-Visual-Guide.html", why:"Detected Caddy server header" },
];
// Remove duplicate LaunchDarkly (keep in API/Other category)
const seen = new Set();
const TECH_DB = TECHS.filter(t => {
const key = t.name + t.cat;
if (seen.has(key)) return false;
seen.add(key);
return true;
});
// ========== CATEGORY CONFIG ==========
const CATEGORIES = [
{ id:"Frontend Framework", label:"Frontend Framework", icon:"⚛️" },
{ id:"Meta-Framework", label:"Meta-Framework", icon:"▲" },
{ id:"CSS Framework", label:"Styling", icon:"🎨" },
{ id:"Hosting / CDN", label:"Hosting / CDN", icon:"☁️" },
{ id:"CMS", label:"CMS / Website Builder", icon:"📝" },
{ id:"Analytics", label:"Analytics", icon:"📊" },
{ id:"Authentication", label:"Authentication", icon:"🔐" },
{ id:"Payments", label:"Payments", icon:"💳" },
{ id:"Database / BaaS", label:"Database / BaaS", icon:"🗄️" },
{ id:"Monitoring", label:"Monitoring / Errors", icon:"🛡️" },
{ id:"Email", label:"Email Provider", icon:"📧" },
{ id:"JavaScript Library", label:"JavaScript Libraries", icon:"📜" },
{ id:"Backend Framework", label:"Backend Framework", icon:"🖥️" },
{ id:"Web Server", label:"Web Server", icon:"🌐" },
{ id:"Build Tool", label:"Build Tool", icon:"🔨" },
{ id:"Customer Support", label:"Customer Support", icon:"💬" },
{ id:"Fonts", label:"Fonts", icon:"🔤" },
{ id:"CDN", label:"CDN Provider", icon:"📦" },
{ id:"A/B Testing", label:"A/B Testing", icon:"🧪" },
{ id:"Privacy", label:"Privacy / Consent", icon:"🍪" },
{ id:"Performance", label:"Performance", icon:"⚡" },
{ id:"API / Other", label:"Other / APIs", icon:"🔗" },
];
// ========== GLOBALS ==========
let scanResults = {};
let detectedTechs = [];
let htmlContent = '';
let responseHeaders = {};
let cspDomains = [];
let dnsRecords = { a:[], cname:[], mx:[], txt:[], ns:[] };
let pathResponses = {};
let stepsCompleted = 0;
// ========== FETCHING LAYER ==========
// Primary: Our own Cloudflare Worker (returns HTML + ALL response headers as JSON)
const WORKER_URL = 'https://stack-detector-proxy.totsyclicks.workers.dev/';
// Fallback: Free CORS proxies (less reliable, strips headers)
const FALLBACK_PROXIES = [
url => `https://api.allorigins.win/raw?url=${encodeURIComponent(url)}`,
url => `https://corsproxy.io/?${encodeURIComponent(url)}`,
];
async function fetchWithHeaders(url) {
// Primary: Our Cloudflare Worker — returns JSON with {html, headers, status}
try {
const r = await fetch(`${WORKER_URL}?url=${encodeURIComponent(url)}`, { signal: AbortSignal.timeout(20000) });
if (r.ok) {
const data = await r.json();
if (data.ok && data.html) {
return { content: data.html, headers: data.headers || {}, ok: true, source: 'worker' };
}
}
} catch(e) { console.warn('Worker fetch failed, trying fallbacks:', e); }
// Fallback: Free CORS proxies (headers will be limited)
for (const mkUrl of FALLBACK_PROXIES) {
try {
const r = await fetch(mkUrl(url), { signal: AbortSignal.timeout(15000) });
if (r.ok) {
const hdrs = {};
r.headers.forEach((v, k) => { hdrs[k.toLowerCase()] = v; });
const text = await r.text();
if (text.length > 100) return { content: text, headers: hdrs, ok: true, source: 'fallback' };
}
} catch(e) { continue; }
}
return { content: '', headers: {}, ok: false };
}
async function proxyFetch(url) {
// For path probing, also use worker first
try {
const r = await fetch(`${WORKER_URL}?url=${encodeURIComponent(url)}`, { signal: AbortSignal.timeout(12000) });
if (r.ok) {
const data = await r.json();
if (data.ok) return { content: data.html || '', ok: true };
}
} catch(e) {}
// Fallback
for (const mkUrl of FALLBACK_PROXIES) {
try {
const r = await fetch(mkUrl(url), { signal: AbortSignal.timeout(10000) });
if (r.ok) { const t = await r.text(); if (t.length > 10) return { content: t, ok: true }; }
} catch(e) { continue; }
}
return { content: '', ok: false };
}
// ========== DETECTION METHODS ==========
// Method 1: HTML + Headers
async function fetchHtmlAndHeaders(url) {
updateStep('step-html', 'active');
try {
const result = await fetchWithHeaders(url);
htmlContent = result.content || '';
responseHeaders = result.headers || {};
// Also extract pseudo-headers from HTML content itself
const htmlHeaders = extractHeadersFromHtml(htmlContent);
Object.assign(responseHeaders, htmlHeaders);
// Extract CSP
const csp = responseHeaders['content-security-policy'] || '';
if (csp) {
cspDomains = csp.match(/[a-z0-9-]+\.[a-z0-9.-]+/gi) || [];
}
// Extract ALL external domains from script src, link href, img src
const domainRx = /(?:src|href|action)=["'](?:https?:)?\/\/([a-z0-9][\w.-]+\.[a-z]{2,})/gi;
let m;
while ((m = domainRx.exec(htmlContent)) !== null) {
cspDomains.push(m[1].toLowerCase());
}
// Also from inline URLs and fetch/XMLHttpRequest patterns
const inlineUrls = htmlContent.match(/https?:\/\/[a-z0-9][\w.-]+\.[a-z]{2,}/gi) || [];
inlineUrls.forEach(u => {
try { cspDomains.push(new URL(u).hostname); } catch(e) {}
});
cspDomains = [...new Set(cspDomains)];
updateStep('step-html', 'done');
stepsCompleted++;
updateProgress();
runPatternMatching();
} catch(e) {
updateStep('step-html', 'error');
stepsCompleted++;
updateProgress();
}
}
// Method 2: DNS Records
async function fetchDnsRecords(domain) {
updateStep('step-dns', 'active');
const types = ['A', 'CNAME', 'MX', 'TXT', 'NS'];
try {
const results = await Promise.all(types.map(async type => {
try {
const r = await fetch(`https://dns.google/resolve?name=${domain}&type=${type}`, { signal: AbortSignal.timeout(8000) });
if (r.ok) {
const data = await r.json();
return { type, answers: (data.Answer || []).map(a => a.data || '') };
}
} catch(e) {}
return { type, answers: [] };
}));
results.forEach(r => {
dnsRecords[r.type.toLowerCase()] = r.answers;
});
updateStep('step-dns', 'done');
} catch(e) {
updateStep('step-dns', 'error');
}
stepsCompleted++;
updateProgress();
runPatternMatching();
}
// Method 3: Path Probing
async function probePaths(url) {
updateStep('step-paths', 'active');
const base = url.replace(/\/$/, '');
const paths = [
'/robots.txt',
'/manifest.json',
'/wp-json/wp/v2/',
'/sitemap.xml',
'/favicon.ico',
];
try {
const results = await Promise.all(paths.map(async path => {
try {
const r = await proxyFetch(base + path);
return { path, content: r.ok ? r.content : '', ok: r.ok };
} catch(e) {
return { path, content: '', ok: false };
}
}));
results.forEach(r => { pathResponses[r.path] = r; });
updateStep('step-paths', 'done');
} catch(e) {
updateStep('step-paths', 'error');
}
stepsCompleted++;
updateProgress();
runPatternMatching();
}
// Method 4: CSP + Deep Domain Extraction
function parseCspStep() {
updateStep('step-csp', 'active');
// Build a comprehensive domain-to-service map for CSP/script detection
const DOMAIN_MAP = {
// Analytics
'google-analytics.com': 'Google Analytics', 'www.google-analytics.com': 'Google Analytics',
'googletagmanager.com': 'Google Tag Manager', 'www.googletagmanager.com': 'Google Tag Manager',
'plausible.io': 'Plausible Analytics', 'analytics.google.com': 'Google Analytics',
'cdn.usefathom.com': 'Fathom Analytics', 'usefathom.com': 'Fathom Analytics',
'cdn.mxpnl.com': 'Mixpanel', 'mixpanel.com': 'Mixpanel',
'static.hotjar.com': 'Hotjar', 'script.hotjar.com': 'Hotjar',
'cdn.amplitude.com': 'Amplitude', 'api.amplitude.com': 'Amplitude',
'app.posthog.com': 'PostHog', 'us.posthog.com': 'PostHog',
'cdn.segment.com': 'Segment', 'api.segment.io': 'Segment',
'heapanalytics.com': 'Heap', 'cdn.heapanalytics.com': 'Heap',
'clarity.ms': 'Microsoft Clarity', 'www.clarity.ms': 'Microsoft Clarity',
'vitals.vercel-insights.com': 'Vercel Analytics', 'va.vercel-scripts.com': 'Vercel Analytics',
'cdn.matomo.cloud': 'Matomo', 'umami.is': 'Umami',
// Auth
'clerk.com': 'Clerk', 'accounts.dev': 'Clerk',
'cdn.auth0.com': 'Auth0', 'auth0.com': 'Auth0',
'identitytoolkit.googleapis.com': 'Firebase Auth',
'accounts.google.com': 'Google Sign-In',
// Payments
'js.stripe.com': 'Stripe', 'm.stripe.network': 'Stripe', 'r.stripe.com': 'Stripe',
'www.paypal.com': 'PayPal', 'www.paypalobjects.com': 'PayPal',
'cdn.paddle.com': 'Paddle', 'checkout.paddle.com': 'Paddle',
'assets.lemonsqueezy.com': 'Lemon Squeezy',
// Database/BaaS
'supabase.co': 'Supabase', 'supabase.com': 'Supabase',
'firebaseio.com': 'Firebase', 'firebaseapp.com': 'Firebase',
'googleapis.com': 'Google Cloud',
// Monitoring
'browser.sentry-cdn.com': 'Sentry', 'sentry.io': 'Sentry',
'cdn.lr-ingest.io': 'LogRocket', 'cdn.logrocket.io': 'LogRocket',
'js-agent.newrelic.com': 'New Relic', 'bam.nr-data.net': 'New Relic',
'd2wy8f7a9ursnm.cloudfront.net': 'Bugsnag',
'rum.datadog.com': 'Datadog', 'datadoghq.com': 'Datadog',
'rs.fullstory.com': 'FullStory', 'fullstory.com': 'FullStory',
// CDN
'cdn.jsdelivr.net': 'jsDelivr CDN', 'unpkg.com': 'unpkg CDN',
'cdnjs.cloudflare.com': 'Cloudflare CDN',
// Chat / Support
'widget.intercom.io': 'Intercom', 'js.intercomcdn.com': 'Intercom',
'client.crisp.chat': 'Crisp', 'static.zdassets.com': 'Zendesk',
'js.driftt.com': 'Drift', 'embed.tawk.to': 'Tawk.to',
'js.hs-scripts.com': 'HubSpot', 'js.hs-analytics.net': 'HubSpot',
// Fonts
'fonts.googleapis.com': 'Google Fonts', 'fonts.gstatic.com': 'Google Fonts',
'use.typekit.net': 'Adobe Fonts', 'p.typekit.net': 'Adobe Fonts',
// A/B Testing
'cdn.optimizely.com': 'Optimizely', 'cdn.split.io': 'Split.io',
'cdn.launchdarkly.com': 'LaunchDarkly',
// Privacy
'cdn.cookielaw.org': 'OneTrust', 'cookielaw.org': 'OneTrust',
'consent.cookiebot.com': 'Cookiebot',
// Images
'res.cloudinary.com': 'Cloudinary', 'images.unsplash.com': 'Unsplash',
// Maps
'maps.googleapis.com': 'Google Maps', 'api.mapbox.com': 'Mapbox',
// reCAPTCHA
'www.google.com/recaptcha': 'reCAPTCHA', 'www.gstatic.com/recaptcha': 'reCAPTCHA',
// Misc
'connect.facebook.net': 'Facebook SDK', 'platform.twitter.com': 'Twitter/X Widgets',
'platform.linkedin.com': 'LinkedIn SDK',
};
// Match detected domains against our map
const domainDetections = new Set();
cspDomains.forEach(domain => {
const d = domain.toLowerCase();
// Direct match
if (DOMAIN_MAP[d]) { domainDetections.add(DOMAIN_MAP[d]); return; }
// Subdomain match — check if any key is a suffix
for (const [key, service] of Object.entries(DOMAIN_MAP)) {
if (d.endsWith('.' + key) || d === key) { domainDetections.add(service); return; }
}
// Partial match for known patterns
if (d.includes('clerk')) domainDetections.add('Clerk');
if (d.includes('supabase')) domainDetections.add('Supabase');
if (d.includes('firebase')) domainDetections.add('Firebase');
if (d.includes('stripe')) domainDetections.add('Stripe');
if (d.includes('sentry')) domainDetections.add('Sentry');
if (d.includes('auth0')) domainDetections.add('Auth0');
if (d.includes('hotjar')) domainDetections.add('Hotjar');
if (d.includes('intercom')) domainDetections.add('Intercom');
if (d.includes('hubspot')) domainDetections.add('HubSpot');
if (d.includes('datadog')) domainDetections.add('Datadog');
if (d.includes('newrelic')) domainDetections.add('New Relic');
if (d.includes('posthog')) domainDetections.add('PostHog');
if (d.includes('mixpanel')) domainDetections.add('Mixpanel');
if (d.includes('amplitude')) domainDetections.add('Amplitude');
if (d.includes('segment')) domainDetections.add('Segment');
if (d.includes('cloudinary')) domainDetections.add('Cloudinary');
if (d.includes('mapbox')) domainDetections.add('Mapbox');
});
// Force-add domain-based detections to detectedTechs
domainDetections.forEach(serviceName => {
if (detectedTechs.find(d => d.name === serviceName)) return;
const tech = TECH_DB.find(t => t.name === serviceName);
if (tech) {
detectedTechs.push({ ...tech, confidence: 'high', signals: 2, maxSignals: 2, reasons: ['External domain reference found in page'] });
} else {
// Service detected but not in our DB — still show it
detectedTechs.push({
name: serviceName, cat: 'API / Other', icon: '🔗',
confidence: 'medium', signals: 1, maxSignals: 1,
reasons: ['Domain reference found in page scripts/links'],
guide: '', why: 'Detected from external domain reference'
});
}
});
// Store detected domains count for display
window._detectedDomains = cspDomains;
updateStep('step-csp', 'done');
stepsCompleted++;
updateProgress();
}
// Method 5: Pattern Matching (runs progressively)
let matchRuns = 0;
function runPatternMatching() {
matchRuns++;
if (matchRuns < 1 && stepsCompleted < 2) return; // Run sooner
updateStep('step-pattern', 'active');
const newDetections = [];
TECH_DB.forEach(tech => {
if (detectedTechs.find(d => d.name === tech.name)) return;
let signals = 0;
let maxSignals = 0;
const reasons = [];
// HTML patterns
if (tech.patterns.html && tech.patterns.html.length > 0) {
maxSignals++;
const matched = tech.patterns.html.some(rx => rx.test(htmlContent));
if (matched) { signals++; reasons.push('HTML content match'); }
}
// Script patterns
if (tech.patterns.scripts && tech.patterns.scripts.length > 0) {
maxSignals++;
const matched = tech.patterns.scripts.some(rx => rx.test(htmlContent));
if (matched) { signals++; reasons.push('Script reference found'); }
}
// Header patterns
if (tech.patterns.headers) {
Object.entries(tech.patterns.headers).forEach(([hdr, rx]) => {
maxSignals++;
const val = responseHeaders[hdr.toLowerCase()] || '';
if (rx.test(val)) { signals++; reasons.push(`Header: ${hdr}`); }
});
}
// Meta tag patterns
if (tech.patterns.meta) {
Object.entries(tech.patterns.meta).forEach(([name, rx]) => {
maxSignals++;
const metaMatch = htmlContent.match(new RegExp(`<meta[^>]+name=["']${name}["'][^>]+content=["']([^"']*)["']`, 'i'))
|| htmlContent.match(new RegExp(`<meta[^>]+content=["']([^"']*)["'][^>]+name=["']${name}["']`, 'i'));
if (metaMatch && rx.test(metaMatch[1])) { signals++; reasons.push(`Meta tag: ${name}`); }
});
}
// DNS patterns
if (tech.patterns.dns) {
Object.entries(tech.patterns.dns).forEach(([type, rxArr]) => {
if (!rxArr || !rxArr.length) return;
maxSignals++;
const records = dnsRecords[type] || [];
const matched = records.some(rec => rxArr.some(rx => rx.test(rec)));
if (matched) { signals++; reasons.push(`DNS ${type.toUpperCase()} record`); }
});
}
// CSP domain patterns
if (tech.patterns.csp && tech.patterns.csp.length > 0) {
maxSignals++;
const cspStr = cspDomains.join(' ');
const matched = tech.patterns.csp.some(rx => rx.test(cspStr));
if (matched) { signals++; reasons.push('CSP / script domain'); }
}
// Path probe patterns
Object.entries(pathResponses).forEach(([path, resp]) => {
if (!resp.ok) return;
// Check for WordPress in robots/wp-json
if (path === '/wp-json/wp/v2/' && resp.content.length > 10 && tech.name === 'WordPress') {
signals++; reasons.push('WordPress REST API responded');
}
if (path === '/robots.txt') {
if (/wp-admin|wp-includes/i.test(resp.content) && tech.name === 'WordPress') {
signals++; reasons.push('robots.txt references wp-admin');
}
if (/Shopify/i.test(resp.content) && tech.name === 'Shopify') {
signals++; reasons.push('robots.txt references Shopify');
}
if (/Drupal/i.test(resp.content) && tech.name === 'Drupal') {
signals++; reasons.push('robots.txt references Drupal');
}
}
if (path === '/manifest.json' && resp.ok && tech.name === 'PWA (Progressive Web App)') {
try {
JSON.parse(resp.content);
signals++; reasons.push('Valid manifest.json found');
} catch(e) {}
}
});
if (signals > 0) {
let confidence = 'low';
if (signals >= 3 || (signals >= 2 && maxSignals <= 4)) confidence = 'high';
else if (signals >= 2) confidence = 'medium';
else if (maxSignals <= 2) confidence = 'medium';
newDetections.push({
...tech,
confidence,
signals,
maxSignals,
reasons,
});
}
});
// Merge
newDetections.forEach(d => {
const existing = detectedTechs.find(e => e.name === d.name);
if (existing) {
if (d.signals > existing.signals) Object.assign(existing, d);
} else {
detectedTechs.push(d);
}
});
// Update results if visible
if (stepsCompleted >= 3) {
renderResults();
}
}
// ========== UI HELPERS ==========
function updateStep(id, state) {
const el = document.getElementById(id);
if (!el) return;
const check = el.querySelector('.step-check');
el.classList.remove('active', 'done');
if (state === 'active') {
el.classList.add('active');
check.innerHTML = '<div class="spinner" style="width:14px;height:14px;border-width:2px;"></div>';
} else if (state === 'done') {
el.classList.add('done');
check.innerHTML = '<span style="color:#22c55e">✓</span>';
check.style.background = '#f0fdf4';
} else if (state === 'error') {
check.innerHTML = '<span style="color:#ef4444">✗</span>';
check.style.background = '#fef2f2';
}
}
function updateProgress() {
const pct = Math.min(100, Math.round((stepsCompleted / 5) * 100));
document.getElementById('progressBar').style.width = pct + '%';
}
function renderResults() {
const grid = document.getElementById('resultsGrid');
const resultUrl = document.getElementById('resultUrl');
const summary = document.getElementById('resultSummary');
// Count categories with detections
const catCounts = {};
detectedTechs.forEach(t => {
catCounts[t.cat] = (catCounts[t.cat] || 0) + 1;
});
const totalTechs = detectedTechs.length;
const totalCats = Object.keys(catCounts).length;
summary.textContent = `${totalTechs} technolog${totalTechs === 1 ? 'y' : 'ies'} detected across ${totalCats} categor${totalCats === 1 ? 'y' : 'ies'}`;
// Build category cards
let html = '';
const delayStep = 60;
let idx = 0;
CATEGORIES.forEach(cat => {
const techs = detectedTechs.filter(t => t.cat === cat.id);
const isEmpty = techs.length === 0;
html += `<div class="category-card bg-white dark:bg-slate-900 border ${isEmpty ? 'border-slate-100 dark:border-slate-800 opacity-50' : 'border-slate-200 dark:border-slate-800'} rounded-2xl p-5" style="animation-delay:${idx * delayStep}ms">`;
html += `<div class="flex items-center gap-2 mb-3"><span class="text-lg">${cat.icon}</span><h3 class="font-bold text-sm">${cat.label}</h3>`;
if (!isEmpty) html += `<span class="ml-auto text-xs px-2 py-0.5 bg-indigo-50 dark:bg-indigo-900/30 text-indigo-600 dark:text-indigo-400 rounded-full font-medium">${techs.length}</span>`;
html += `</div>`;
if (isEmpty) {
html += `<p class="text-xs text-slate-400">Not detected</p>`;
} else {
// Sort by confidence
const order = { high: 0, medium: 1, low: 2 };
techs.sort((a, b) => order[a.confidence] - order[b.confidence]);
techs.forEach(tech => {
html += `<div class="tech-card mb-2 p-3 rounded-xl bg-slate-50 dark:bg-slate-800/50 border border-slate-100 dark:border-slate-700/50">`;
html += `<div class="flex items-center gap-2 flex-wrap">`;
html += `<span class="text-base">${tech.icon}</span>`;
html += `<span class="font-semibold text-sm">${tech.name}</span>`;
html += `<span class="text-[10px] px-1.5 py-0.5 rounded confidence-${tech.confidence} font-medium uppercase">${tech.confidence}</span>`;
if (tech.guide) {
html += `<a href="${tech.guide}" class="ml-auto text-[11px] text-indigo-500 hover:text-indigo-700 dark:text-indigo-400 font-medium">Guide →</a>`;
}
html += `</div>`;
html += `<details class="mt-1.5"><summary class="text-[11px] text-slate-500 dark:text-slate-400">How detected</summary>`;
html += `<div class="text-[11px] text-slate-500 dark:text-slate-400 mt-1 pl-3">${tech.why}`;
if (tech.reasons && tech.reasons.length) {
html += `<ul class="mt-1 list-disc pl-4">`;
tech.reasons.forEach(r => { html += `<li>${r}</li>`; });
html += `</ul>`;
}
html += `</div></details>`;
html += `</div>`;
});
}
html += `</div>`;
idx++;
});
// Add external domains section
if (cspDomains.length > 0) {
const uniqueDomains = [...new Set(cspDomains)].sort();
html += `<div class="md:col-span-2 lg:col-span-3 bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-2xl p-5 mt-2">`;
html += `<details><summary class="font-bold text-sm cursor-pointer">🌐 ${uniqueDomains.length} External Domains Detected <span class="text-xs font-normal text-slate-400">(click to expand)</span></summary>`;
html += `<div class="mt-3 flex flex-wrap gap-1.5">`;
uniqueDomains.forEach(d => {
html += `<span class="text-[11px] bg-slate-100 dark:bg-slate-800 text-slate-600 dark:text-slate-400 rounded-full px-2 py-0.5">${d}</span>`;
});
html += `</div></details></div>`;
}
// Add DNS records section
const allDns = [...dnsRecords.a, ...dnsRecords.cname, ...dnsRecords.mx, ...dnsRecords.txt].filter(Boolean);
if (allDns.length > 0) {
html += `<div class="md:col-span-2 lg:col-span-3 bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-2xl p-5">`;
html += `<details><summary class="font-bold text-sm cursor-pointer">📡 DNS Records <span class="text-xs font-normal text-slate-400">(click to expand)</span></summary>`;
html += `<div class="mt-3 text-xs text-slate-600 dark:text-slate-400 space-y-1">`;
if (dnsRecords.a.length) html += `<div><strong>A:</strong> ${dnsRecords.a.join(', ')}</div>`;
if (dnsRecords.cname.length) html += `<div><strong>CNAME:</strong> ${dnsRecords.cname.join(', ')}</div>`;
if (dnsRecords.mx.length) html += `<div><strong>MX:</strong> ${dnsRecords.mx.join(', ')}</div>`;
if (dnsRecords.txt.length) html += `<div><strong>TXT:</strong> ${dnsRecords.txt.slice(0, 10).join(', ')}${dnsRecords.txt.length > 10 ? '...' : ''}</div>`;
if (dnsRecords.ns.length) html += `<div><strong>NS:</strong> ${dnsRecords.ns.join(', ')}</div>`;
html += `</div></details></div>`;
}
grid.innerHTML = html;
// Show results section
document.getElementById('scanSection').classList.add('hidden');
document.getElementById('resultsSection').classList.remove('hidden');
}
// ========== MAIN SCAN FLOW ==========
async function startScan(e) {
e.preventDefault();
let url = document.getElementById('urlInput').value.trim();
if (!url) return;
if (!url.startsWith('http')) url = 'https://' + url;
// Reset state
detectedTechs = [];
htmlContent = '';
responseHeaders = {};
cspDomains = [];
dnsRecords = { a:[], cname:[], mx:[], txt:[], ns:[] };
pathResponses = {};
stepsCompleted = 0;
matchRuns = 0;
// Extract domain
let domain;
try {
domain = new URL(url).hostname;
} catch(e) {
showError('Invalid URL. Please enter a valid website address.');
return;
}
// Show scan section
document.getElementById('heroSection').classList.add('hidden');
document.getElementById('resultsSection').classList.add('hidden');
document.getElementById('errorSection').classList.add('hidden');
document.getElementById('scanSection').classList.remove('hidden');
document.getElementById('scanningUrl').textContent = domain;
document.getElementById('resultUrl').textContent = domain;
document.getElementById('progressBar').style.width = '0%';
// Reset step states
['step-html','step-dns','step-paths','step-csp','step-pattern'].forEach(id => {
const el = document.getElementById(id);
el.classList.remove('active','done');
const check = el.querySelector('.step-check');
check.innerHTML = '<div class="spinner" style="width:14px;height:14px;border-width:2px;"></div>';
check.style.background = '';
});
// Run all detection methods in parallel