index.html 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474
  1. <!DOCTYPE html>
  2. <html lang="es">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>NetPulse — El pulso de tu red, sin nube</title>
  7. <meta name="description" content="Monitorización de solo lectura para redes domésticas OpenWrt: topología en vivo, salud, WireGuard, AdGuard Home y alertas. Autoalojado, 100% libre (AGPL-3.0), sin nube." />
  8. <meta name="theme-color" content="#070B12" />
  9. <link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='10' y1='78' x2='90' y2='20' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%2322D3EE'/%3E%3Cstop offset='1' stop-color='%23A78BFA'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M10 60 H27 L33 60 L40 38 L48 78 L54 48 L58 60 H64' stroke='url(%23g)' stroke-width='5.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='73' cy='60' r='6' fill='url(%23g)'/%3E%3Cpath d='M62.4 49.4 A15 15 0 0 1 83.6 49.4' stroke='url(%23g)' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M55.3 39.7 A25 25 0 0 1 90.7 39.7' stroke='url(%23g)' stroke-width='5' stroke-linecap='round' opacity='0.6'/%3E%3C/svg%3E" />
  10. <link rel="preconnect" href="https://fonts.googleapis.com" />
  11. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
  12. <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet" />
  13. <link rel="stylesheet" href="styles.css" />
  14. </head>
  15. <body>
  16. <canvas id="bgCanvas" aria-hidden="true"></canvas>
  17. <!-- ============ NAV ============ -->
  18. <nav class="nav">
  19. <div class="container nav-inner">
  20. <a class="nav-logo" href="#" aria-label="NetPulse">
  21. <svg viewBox="0 0 96 96" fill="none" aria-hidden="true">
  22. <defs><linearGradient id="np-g" x1="10" y1="78" x2="90" y2="20" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#22D3EE"/><stop offset="1" stop-color="#A78BFA"/></linearGradient></defs>
  23. <path d="M10 60 H27 L33 60 L40 38 L48 78 L54 48 L58 60 H64" stroke="url(#np-g)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round"/>
  24. <circle cx="73" cy="60" r="6" fill="url(#np-g)"/>
  25. <path d="M62.4 49.4 A15 15 0 0 1 83.6 49.4" stroke="url(#np-g)" stroke-width="5" stroke-linecap="round"/>
  26. <path d="M55.3 39.7 A25 25 0 0 1 90.7 39.7" stroke="url(#np-g)" stroke-width="5" stroke-linecap="round" opacity="0.6"/>
  27. </svg>
  28. NetPulse
  29. </a>
  30. <div class="nav-links">
  31. <a href="#principles" data-i18n="nav.features">Funciones</a>
  32. <a href="#install" data-i18n="nav.install">Instalar</a>
  33. <a href="https://github.com/gnacho/netpulse" target="_blank" rel="noopener" data-i18n="nav.github">GitHub</a>
  34. </div>
  35. <select id="langSelect" aria-label="Language" style="margin-left:1rem;background:rgb(var(--surface));color:rgb(var(--text-secondary));border:1px solid rgb(var(--border));border-radius:var(--radius);padding:0.3rem 0.5rem;font-size:0.75rem;font-family:inherit;"></select>
  36. <a class="nav-cta" href="#install" data-i18n="hero.cta1">Instalar en tu red</a>
  37. </div>
  38. </nav>
  39. <!-- ============ HERO ============ -->
  40. <header class="hero mesh-bg">
  41. <div class="hero-halo" aria-hidden="true"></div>
  42. <div class="container">
  43. <span class="eyebrow" data-i18n="hero.eyebrow">Monitorización de solo lectura para tu red doméstica</span>
  44. <h1 class="font-display text-balance">
  45. <span data-i18n="hero.t1">El pulso de tu red.</span><br />
  46. <span class="text-accent" data-i18n="hero.t2">En tiempo real. Sin nube.</span>
  47. </h1>
  48. <p class="hero-sub" data-i18n="hero.sub">NetPulse vigila tus routers OpenWrt, dibuja la topología, puntúa la salud de la red y te avisa — todo desde un único binario autoalojado. Nada sale de tu LAN.</p>
  49. <div class="hero-actions">
  50. <a class="btn-primary" href="#install">
  51. <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
  52. <span data-i18n="hero.cta1">Instalar en tu red</span>
  53. </a>
  54. <a class="btn-ghost" href="https://github.com/gnacho/netpulse" target="_blank" rel="noopener">
  55. <svg width="15" height="15" viewBox="0 0 24 24" fill="currentColor"><path d="M12 .5C5.65.5.5 5.65.5 12c0 5.08 3.29 9.39 7.86 10.91.58.11.79-.25.79-.56 0-.27-.01-1.17-.02-2.12-3.2.7-3.87-1.36-3.87-1.36-.52-1.33-1.28-1.68-1.28-1.68-1.04-.71.08-.7.08-.7 1.15.08 1.76 1.19 1.76 1.19 1.03 1.75 2.69 1.25 3.34.95.1-.74.4-1.25.72-1.54-2.55-.29-5.23-1.28-5.23-5.68 0-1.26.45-2.28 1.19-3.09-.12-.29-.52-1.46.11-3.05 0 0 .97-.31 3.17 1.18a11 11 0 0 1 5.78 0c2.2-1.49 3.17-1.18 3.17-1.18.63 1.59.23 2.76.11 3.05.74.81 1.19 1.83 1.19 3.09 0 4.41-2.69 5.38-5.25 5.66.41.35.77 1.05.77 2.12 0 1.53-.01 2.76-.01 3.14 0 .31.21.67.8.56A11.52 11.52 0 0 0 23.5 12C23.5 5.65 18.35.5 12 .5z"/></svg>
  56. <span data-i18n="hero.cta2">Ver en GitHub</span>
  57. </a>
  58. <a class="btn-ghost" href="https://demo.netpulse.domatix.com" target="_blank" rel="noopener">
  59. <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polygon points="5 3 19 12 5 21 5 3"/></svg>
  60. <span data-i18n="hero.cta3">Probar la demo en vivo</span>
  61. </a>
  62. </div>
  63. <div class="hero-facts">
  64. <span class="chip"><svg viewBox="0 0 24 24" fill="none" stroke="rgb(var(--ok))" stroke-width="1.75" stroke-linecap="round"><path d="M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z"/><line x1="4" y1="4" x2="20" y2="20"/></svg><span data-i18n="facts.noCloud">Sin nube</span></span>
  65. <span class="chip"><svg viewBox="0 0 24 24" fill="none" stroke="rgb(var(--accent))" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg><span data-i18n="facts.free">100% libre · AGPL-3.0</span></span>
  66. <span class="chip"><svg viewBox="0 0 24 24" fill="none" stroke="rgb(var(--tunnel))" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg><span data-i18n="facts.data">Tu app, tus datos</span></span>
  67. <span class="chip"><svg viewBox="0 0 24 24" fill="none" stroke="rgb(var(--info))" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="2" width="20" height="8" rx="2"/><rect x="2" y="14" width="20" height="8" rx="2"/><line x1="6" y1="6" x2="6.01" y2="6"/><line x1="6" y1="18" x2="6.01" y2="18"/></svg><span data-i18n="facts.binary">Un solo binario</span></span>
  68. <span class="chip"><svg viewBox="0 0 24 24" fill="none" stroke="rgb(var(--warn))" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.55a11 11 0 0 1 14.08 0"/><path d="M1.42 9a16 16 0 0 1 21.16 0"/><path d="M8.53 16.11a6 6 0 0 1 6.95 0"/><line x1="12" y1="20" x2="12.01" y2="20"/></svg><span data-i18n="facts.hw">OpenWrt / GL.iNet</span></span>
  69. </div>
  70. <div class="demo-strip" id="heroStrip">
  71. <div class="mini-stat">
  72. <span class="k label text-muted uppercase"><svg viewBox="0 0 24 24" fill="none" stroke="rgb(var(--ok))" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M22 12h-4l-3 9L9 3l-3 9H2"/></svg><span data-i18n="strip.health">Salud</span></span>
  73. <span class="v font-mono text-ok" data-count="92" data-suffix="/100">0/100</span>
  74. </div>
  75. <div class="mini-stat">
  76. <span class="k label text-muted uppercase"><svg viewBox="0 0 24 24" fill="none" stroke="rgb(var(--accent))" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="19" x2="12" y2="5"/><polyline points="5 12 12 19 19 12"/></svg><span data-i18n="strip.down">Descarga</span></span>
  77. <span class="v font-mono text-accent" data-count="84.2" data-decimals="1" data-suffix=" Mbps">0 Mbps</span>
  78. </div>
  79. <div class="mini-stat">
  80. <span class="k label text-muted uppercase"><svg viewBox="0 0 24 24" fill="none" stroke="rgb(var(--tunnel))" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"/><polyline points="19 12 12 5 5 12"/></svg><span data-i18n="strip.up">Subida</span></span>
  81. <span class="v font-mono text-tunnel" data-count="12.6" data-decimals="1" data-suffix=" Mbps">0 Mbps</span>
  82. </div>
  83. <div class="mini-stat">
  84. <span class="k label text-muted uppercase"><svg viewBox="0 0 24 24" fill="none" stroke="rgb(var(--info))" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m12 14 4-4"/><path d="M3.34 19a10 10 0 1 1 17.32 0"/></svg><span data-i18n="strip.latency">Latencia</span></span>
  85. <span class="v font-mono text-info" data-count="8" data-suffix=" ms">0 ms</span>
  86. </div>
  87. <div class="mini-stat">
  88. <span class="k label text-muted uppercase"><svg viewBox="0 0 24 24" fill="none" stroke="rgb(var(--text-secondary))" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="4" width="20" height="12" rx="2"/><line x1="8" y1="20" x2="16" y2="20"/><line x1="12" y1="16" x2="12" y2="20"/></svg><span data-i18n="strip.devices">Dispositivos</span></span>
  89. <span class="v font-mono" data-count="65">0</span>
  90. </div>
  91. </div>
  92. </div>
  93. </header>
  94. <!-- ============ TICKER ============ -->
  95. <div class="ticker-wrap" aria-hidden="true">
  96. <div class="ticker" id="ticker"></div>
  97. </div>
  98. <!-- ============ PRINCIPIOS ============ -->
  99. <section class="block" id="principles">
  100. <div class="container">
  101. <div class="reveal">
  102. <span class="eyebrow">NetPulse</span>
  103. <h2 class="font-display text-balance" data-i18n="principles.title">Construido sobre tres principios tercos</h2>
  104. <p class="lead" data-i18n="principles.lead">No son frases de marketing. Son la razón de que NetPulse exista, y condicionan cada decisión.</p>
  105. </div>
  106. <div class="principles">
  107. <div class="card principle reveal">
  108. <svg class="big" viewBox="0 0 24 24" fill="none" stroke="rgb(var(--ok))" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z"/><line x1="4" y1="4" x2="20" y2="20"/></svg>
  109. <h3 data-i18n="principles.p1t">Sin nube</h3>
  110. <p data-i18n="principles.p1p">Sin cuentas, sin suscripción, sin telemetría llamando a casa. NetPulse corre en una caja pequeña dentro de tu red y en ningún otro sitio.</p>
  111. </div>
  112. <div class="card principle reveal">
  113. <svg class="big" viewBox="0 0 24 24" fill="none" stroke="rgb(var(--accent))" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/></svg>
  114. <h3 data-i18n="principles.p2t">100% libre y open source</h3>
  115. <p data-i18n="principles.p2p">AGPL-3.0, para siempre. Lee el código, audítalo, haz un fork, ejecútalo. No hay versión premium ni la habrá.</p>
  116. </div>
  117. <div class="card principle reveal">
  118. <svg class="big" viewBox="0 0 24 24" fill="none" stroke="rgb(var(--tunnel))" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>
  119. <h3 data-i18n="principles.p3t">Tu app, tus datos</h3>
  120. <p data-i18n="principles.p3p">El servidor lee de tus routers y nunca escribe. Las métricas viven en un SQLite local que es tuyo. Bórralo, haz copias, muévelo.</p>
  121. </div>
  122. </div>
  123. </div>
  124. </section>
  125. <!-- ============ TEATRO STICKY ============ -->
  126. <section class="block" id="theater" style="padding-top:1rem;">
  127. <div class="container">
  128. <div class="reveal">
  129. <span class="eyebrow" data-i18n="misc.demoBadge">datos demo</span>
  130. <h2 class="font-display text-balance" data-i18n="theater.title">Míralo cobrar vida</h2>
  131. <p class="lead" data-i18n="theater.lead">Sigue haciendo scroll. Estos son los widgets reales, alimentados con el dataset de demo.</p>
  132. </div>
  133. <div class="theater">
  134. <div class="theater-steps" id="theaterSteps">
  135. <div class="tstep" data-stage="0">
  136. <span class="num">01</span>
  137. <h3 data-i18n="theater.st1t">Un número que lo cuenta todo</h3>
  138. <p data-i18n="theater.st1p">La puntuación de salud condensa latencia, pérdidas, uptime y temperatura en 0–100. Se actualiza cada 5 segundos por SSE.</p>
  139. </div>
  140. <div class="tstep" data-stage="1">
  141. <span class="num">02</span>
  142. <h3 data-i18n="theater.st2t">Tráfico dibujado mientras ocurre</h3>
  143. <p data-i18n="theater.st2p">Caudal WAN en vivo contra tu plan contratado, con medias y totales de 24 h. Lo que ves es lo que cruza el cable.</p>
  144. </div>
  145. <div class="tstep" data-stage="2">
  146. <span class="num">03</span>
  147. <h3 data-i18n="theater.st3t">Un mapa que se infiere solo</h3>
  148. <p data-i18n="theater.st3p">Construido en vivo desde el FDB del bridge: clientes cableados e inalámbricos, switches inferidos y túneles WireGuard.</p>
  149. </div>
  150. <div class="tstep" data-stage="3">
  151. <span class="num">04</span>
  152. <h3 data-i18n="theater.st4t">Toda tu flota, de un vistazo</h3>
  153. <p data-i18n="theater.st4p">CPU, memoria, temperatura y uptime por router. Un Flint 2 y tres Xiaomi AX6 de segunda mano.</p>
  154. </div>
  155. <div class="tstep" data-stage="4">
  156. <span class="num">05</span>
  157. <h3 data-i18n="theater.st5t">AdGuard Home, integrado</h3>
  158. <p data-i18n="theater.st5p">Consultas DNS, porcentaje bloqueado y dominios más bloqueados. Tu bloqueo de anuncios, visible junto a todo lo demás.</p>
  159. </div>
  160. <div class="tstep" data-stage="5">
  161. <span class="num">06</span>
  162. <h3 data-i18n="theater.st6t">Alertas que te encuentran</h3>
  163. <p data-i18n="theater.st6p">Picos de temperatura, dispositivos nuevos, firmware disponible, handshakes de WireGuard — en la campana y en tu móvil.</p>
  164. </div>
  165. </div>
  166. <div class="theater-stage">
  167. <div class="stage-frame card glow-accent">
  168. <!-- Stage 0: Health -->
  169. <div class="stage" id="stage0">
  170. <div class="w-row">
  171. <div class="ring-wrap">
  172. <svg width="220" height="220" viewBox="0 0 220 220">
  173. <defs>
  174. <linearGradient id="ringGrad" x1="0%" y1="0%" x2="100%" y2="100%">
  175. <stop offset="0%" stop-color="rgb(var(--accent))"/>
  176. <stop offset="100%" stop-color="rgb(var(--ok))"/>
  177. </linearGradient>
  178. </defs>
  179. <circle cx="110" cy="110" r="94" fill="none" stroke="rgb(var(--border))" stroke-width="14"/>
  180. <circle id="ringArc" cx="110" cy="110" r="94" fill="none" stroke="url(#ringGrad)" stroke-width="14" stroke-linecap="round"
  181. stroke-dasharray="590.6" stroke-dashoffset="590.6" transform="rotate(-90 110 110)"/>
  182. </svg>
  183. <div class="ring-center">
  184. <span class="big font-display" id="ringNum">0</span>
  185. <span class="of font-mono">/100</span>
  186. </div>
  187. </div>
  188. <div class="health-box">
  189. <span class="pill ok"><span class="pill-dot"></span><span id="healthLabel" data-i18n="health.label">Excelente</span></span>
  190. <span class="caption text-muted" data-i18n="health.caption">Puntuación de salud de la red</span>
  191. <span class="health-note">
  192. <svg viewBox="0 0 24 24" fill="none" stroke="rgb(var(--warn))" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>
  193. <span data-i18n="health.note">Penalizado por la temperatura del Patio.</span>
  194. </span>
  195. <div class="health-stats">
  196. <span class="caption font-mono text-accent">↓ <span id="hDown">0.0</span> Mbps</span>
  197. <span class="caption font-mono text-tunnel">↑ <span id="hUp">0.0</span> Mbps</span>
  198. <span class="caption font-mono text-ok"><span data-i18n="strip.latency">Latencia</span> <span id="hLat">0</span> ms</span>
  199. </div>
  200. </div>
  201. </div>
  202. </div>
  203. <!-- Stage 1: WAN traffic -->
  204. <div class="stage" id="stage1">
  205. <div class="wan-card card" style="background:rgb(var(--elevated)/0.4);">
  206. <div class="wan-head">
  207. <span class="label uppercase text-muted" data-i18n="wan.title">Tráfico WAN</span>
  208. <div class="seg seg-ranges" id="trafficRanges" role="tablist" aria-label="Período">
  209. <button type="button" data-range="1h">1h</button>
  210. <button type="button" data-range="24h" class="on">24h</button>
  211. <button type="button" data-range="7d">7d</button>
  212. <button type="button" data-range="30d">30d</button>
  213. </div>
  214. <span class="wan-live"><span class="dot"></span><span data-i18n="wan.live">EN VIVO</span></span>
  215. </div>
  216. <svg id="trafficChart" viewBox="0 0 480 200">
  217. <defs>
  218. <linearGradient id="fillDown" x1="0" y1="0" x2="0" y2="1">
  219. <stop offset="0" stop-color="rgb(var(--accent))" stop-opacity="0.25"/>
  220. <stop offset="1" stop-color="rgb(var(--accent))" stop-opacity="0"/>
  221. </linearGradient>
  222. <linearGradient id="fillUp" x1="0" y1="0" x2="0" y2="1">
  223. <stop offset="0" stop-color="rgb(var(--tunnel))" stop-opacity="0.2"/>
  224. <stop offset="1" stop-color="rgb(var(--tunnel))" stop-opacity="0"/>
  225. </linearGradient>
  226. </defs>
  227. <g id="trafficGrid"></g>
  228. <path id="areaDown" fill="url(#fillDown)" opacity="0"/>
  229. <path id="areaUp" fill="url(#fillUp)" opacity="0"/>
  230. <path id="lineDown" fill="none" stroke="rgb(var(--accent))" stroke-width="2" stroke-linecap="round"/>
  231. <path id="lineUp" fill="none" stroke="rgb(var(--tunnel))" stroke-width="2" stroke-linecap="round"/>
  232. <g id="trafficXTicks" class="traffic-ticks"></g>
  233. </svg>
  234. <div class="wan-stats">
  235. <span class="caption font-mono"><span class="text-accent">↓ <span id="wanDown">0.0</span> Mbps</span></span>
  236. <span class="caption font-mono"><span class="text-tunnel">↑ <span id="wanUp">0.0</span> Mbps</span></span>
  237. <span class="caption font-mono text-muted"><span data-i18n="strip.latency">Latencia</span> <span id="wanLat">0</span> ms</span>
  238. </div>
  239. <div class="wan-footer">
  240. <div><span class="k" data-i18n="wan.peak">Pico hoy</span><span class="v font-mono" id="wanPeak">0 Mbps ↓</span></div>
  241. <div><span class="k" data-i18n="wan.avg">Media</span><span class="v font-mono" id="wanAvg">0 Mbps ↓</span></div>
  242. <div><span class="k" data-i18n="wan.total">Total 24 h</span><span class="v font-mono" id="wanTotal">—</span></div>
  243. <div><span class="k" data-i18n="wan.loss">Pérdida</span><span class="v font-mono" id="wanLoss">0 %</span></div>
  244. </div>
  245. </div>
  246. </div>
  247. <!-- Stage 2: Topology -->
  248. <div class="stage" id="stage2">
  249. <svg id="topoSvg" viewBox="0 0 1000 680"></svg>
  250. </div>
  251. <!-- Stage 3: Routers -->
  252. <div class="stage" id="stage3">
  253. <div class="rgrid" id="routerGrid"></div>
  254. </div>
  255. <!-- Stage 4: AdGuard -->
  256. <div class="stage" id="stage4">
  257. <div class="ag-card card" style="background:rgb(var(--elevated)/0.4);">
  258. <div class="ag-head">
  259. <span class="label uppercase text-muted"><svg viewBox="0 0 24 24" fill="none" stroke="rgb(var(--ok))" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg><span data-i18n="adguard.title">AdGuard Home</span></span>
  260. <span class="pill ok"><span class="pill-dot"></span><span data-i18n="adguard.active">Activo</span></span>
  261. </div>
  262. <div class="ag-main">
  263. <div>
  264. <div class="ag-pct font-mono text-ok" id="agBlockedPct">0%</div>
  265. <div class="ag-of font-mono" id="agBlockedOf">0</div>
  266. </div>
  267. <svg id="agDonut" width="88" height="88" viewBox="0 0 88 88" class="ag-donut" role="img">
  268. <circle cx="44" cy="44" r="39.5" fill="none" stroke="rgb(var(--border))" stroke-width="9"/>
  269. <circle id="agDonutArc" cx="44" cy="44" r="39.5" fill="none" stroke="rgb(var(--ok))" stroke-width="9" stroke-linecap="round"
  270. stroke-dasharray="248.2" stroke-dashoffset="248.2" transform="rotate(-90 44 44)"/>
  271. </svg>
  272. </div>
  273. <div class="ag-grid2">
  274. <div class="ag-cell"><span class="k" data-i18n="adguard.trackers">Rastreadores</span><span class="v font-mono" id="agTrackers">0</span></div>
  275. <div class="ag-cell"><span class="k" data-i18n="adguard.dns">DNS medio</span><span class="v font-mono" id="agDns">0 ms</span></div>
  276. </div>
  277. <div class="ag-domains">
  278. <span class="label uppercase text-muted" data-i18n="adguard.domains">Dominios más bloqueados</span>
  279. <div id="agBars"></div>
  280. </div>
  281. <a class="ag-open" id="agOpen" href="http://192.168.8.1:3000" target="_blank" rel="noreferrer">
  282. <span data-i18n="adguard.open">Abrir panel</span>
  283. <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M7 17 17 7"/><path d="M7 7h10v10"/></svg>
  284. </a>
  285. </div>
  286. </div>
  287. <!-- Stage 5: Alerts -->
  288. <div class="stage" id="stage5">
  289. <div class="label uppercase text-muted" style="margin-bottom:0.9rem;" data-i18n="alerts.title">Feed de alertas</div>
  290. <div class="feed" id="alertFeed"></div>
  291. </div>
  292. </div>
  293. </div>
  294. </div>
  295. </div>
  296. </section>
  297. <!-- ============ FEATURES ============ -->
  298. <section class="block" id="features" style="padding-top:2rem;">
  299. <div class="container">
  300. <div class="reveal">
  301. <span class="eyebrow" data-i18n="nav.features">Funciones</span>
  302. <h2 class="font-display text-balance" data-i18n="features.title">Todo lo que necesita un NOC doméstico</h2>
  303. <p class="lead" data-i18n="features.lead">Solo lectura por diseño: NetPulse puede ver tu red, nunca cambiarla.</p>
  304. </div>
  305. <div class="features">
  306. <div class="card feature reveal">
  307. <svg viewBox="0 0 24 24" fill="none" stroke="rgb(var(--accent))" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><circle cx="4" cy="5" r="2"/><circle cx="20" cy="5" r="2"/><circle cx="4" cy="19" r="2"/><circle cx="20" cy="19" r="2"/><path d="M5.5 6.5 9.5 10M18.5 6.5 14.5 10M5.5 17.5 9.5 14M18.5 17.5 14.5 14"/></svg>
  308. <h3 data-i18n="features.f1t">Topología en vivo</h3>
  309. <p data-i18n="features.f1p">Inferida del FDB del bridge + LLDP. Clientes cableados e inalámbricos, switches gestionados e inferidos, hipervisores con contenedores anidados.</p>
  310. </div>
  311. <div class="card feature reveal">
  312. <svg viewBox="0 0 24 24" fill="none" stroke="rgb(var(--info))" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="4" width="20" height="12" rx="2"/><line x1="8" y1="20" x2="16" y2="20"/><line x1="12" y1="16" x2="12" y2="20"/></svg>
  313. <h3 data-i18n="features.f2t">Dispositivos</h3>
  314. <p data-i18n="features.f2p">Cada cliente clasificado por patrones de hostname + OUI, con banda, señal, primer visto y el router al que habla.</p>
  315. </div>
  316. <div class="card feature reveal">
  317. <svg viewBox="0 0 24 24" fill="none" stroke="rgb(var(--tunnel))" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>
  318. <h3 data-i18n="features.f3t">WireGuard</h3>
  319. <p data-i18n="features.f3p">Peers, últimos handshakes y transferencia por peer, con túneles dibujados en el mapa.</p>
  320. </div>
  321. <div class="card feature reveal">
  322. <svg viewBox="0 0 24 24" fill="none" stroke="rgb(var(--danger))" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>
  323. <h3 data-i18n="features.f4t">AdGuard Home</h3>
  324. <p data-i18n="features.f4p">Estadísticas de consultas, porcentaje bloqueado y dominios más bloqueados, junto a tu red.</p>
  325. </div>
  326. <div class="card feature reveal">
  327. <svg viewBox="0 0 24 24" fill="none" stroke="rgb(var(--warn))" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"/><path d="M13.73 21a2 2 0 0 1-3.46 0"/></svg>
  328. <h3 data-i18n="features.f5t">Alertas y push</h3>
  329. <p data-i18n="features.f5p">Seis categorías con urgencia por categoría. Feed en la campana más Web Push nativo (VAPID).</p>
  330. </div>
  331. <div class="card feature reveal">
  332. <svg viewBox="0 0 24 24" fill="none" stroke="rgb(var(--ok))" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M23 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg>
  333. <h3 data-i18n="features.f6t">Multiusuario</h3>
  334. <p data-i18n="features.f6p">Contraseñas bcrypt, roles admin y viewer, idioma por usuario. Comparte la vista sin entregar las llaves.</p>
  335. </div>
  336. <div class="card feature reveal">
  337. <svg viewBox="0 0 24 24" fill="none" stroke="rgb(var(--accent))" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polygon points="5 3 19 12 5 21 5 3"/></svg>
  338. <h3 data-i18n="features.f7t">Modo demo</h3>
  339. <p data-i18n="features.f7p">DEMO_MODE=1 te da una red de muestra completa con 65 dispositivos — sin routers. Pruébalo antes de instalar.</p>
  340. </div>
  341. <div class="card feature reveal">
  342. <svg viewBox="0 0 24 24" fill="none" stroke="rgb(var(--info))" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/></svg>
  343. <h3 data-i18n="features.f8t">Collector de latencia</h3>
  344. <p data-i18n="features.f8p">Sidecar opcional que sondea latencia TCP por router, con sus propias series temporales de largo plazo.</p>
  345. </div>
  346. </div>
  347. </div>
  348. </section>
  349. <!-- ============ INSTALACIÓN ============ -->
  350. <section class="block" id="install">
  351. <div class="container">
  352. <div class="reveal">
  353. <span class="eyebrow" data-i18n="nav.install">Instalar</span>
  354. <h2 class="font-display text-balance" data-i18n="install.title">Una línea para instalar</h2>
  355. <p class="lead" data-i18n="install.lead">Un único binario Go estático con la app web embebida, corriendo como servicio systemd enjaulado. Sin Docker.</p>
  356. </div>
  357. <div class="install-grid">
  358. <div class="card codecard reveal">
  359. <h3 data-i18n="install.main">Recomendado</h3>
  360. <div class="codebox">
  361. <span class="prompt font-mono">$</span>
  362. <code id="installCmd">curl -fsSL https://raw.githubusercontent.com/gnacho/netpulse/main/install.sh | sh</code>
  363. <button class="copybtn" id="copyBtn" data-i18n-aria="misc.copy">Copiar</button>
  364. </div>
  365. <p class="install-note">
  366. <span data-i18n="install.inspector">El instalador es shell plano y legible —</span>
  367. <a href="https://github.com/gnacho/netpulse/blob/main/install.sh" target="_blank" rel="noopener" data-i18n="install.inspectorLink">inspecciónalo primero</a>.
  368. </p>
  369. <p class="install-note" data-i18n="install.update">Actualiza re-ejecutando la misma línea. Desinstala con sh install.sh --uninstall.</p>
  370. <h3 style="margin-top:1.75rem;" data-i18n="install.connect">Conecta tus routers</h3>
  371. <p class="install-note" style="font-size:0.85rem;color:rgb(var(--text-secondary));" data-i18n="install.connectp">El servidor genera su propio par de claves ed25519 y muestra la pública en Ajustes. Autorízala en cada router. El sondeo es estrictamente de solo lectura.</p>
  372. </div>
  373. <div class="card codecard reveal">
  374. <h3 data-i18n="install.req">Requisitos</h3>
  375. <ul class="req-list">
  376. <li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg><span data-i18n="install.r1">Linux con systemd (x86_64, arm64 o armv7)</span></li>
  377. <li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg><span data-i18n="install.r2">Routers OpenWrt / GL.iNet en tu LAN</span></li>
  378. <li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg><span data-i18n="install.r3">Unos 64 MB de RAM en un LXC o VM pequeña</span></li>
  379. <li><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg><span data-i18n="install.r4">WireGuard / AdGuard Home opcionales</span></li>
  380. </ul>
  381. </div>
  382. </div>
  383. <div class="card honest reveal" style="margin-top:1rem;padding:1.5rem 1.75rem;">
  384. <h3 class="font-display" style="margin:0;font-size:1.05rem;color:rgb(var(--warn));" data-i18n="honest.title">Lo que debes saber</h3>
  385. <p data-i18n="honest.p1">NetPulse es un proyecto personal…</p>
  386. <p data-i18n="honest.p2">Nota honesta de alcance…</p>
  387. </div>
  388. </div>
  389. </section>
  390. <!-- ============ FOOTER ============ -->
  391. <footer>
  392. <div class="container">
  393. <div class="foot-grid">
  394. <div class="foot-col" style="max-width:22rem;">
  395. <a class="nav-logo" href="#" style="margin-bottom:0.75rem;">
  396. <svg viewBox="0 0 96 96" fill="none" width="22" height="22" aria-hidden="true">
  397. <path d="M10 60 H27 L33 60 L40 38 L48 78 L54 48 L58 60 H64" stroke="url(#np-g)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round"/>
  398. <circle cx="73" cy="60" r="6" fill="url(#np-g)"/>
  399. </svg>
  400. NetPulse
  401. </a>
  402. <p class="caption text-muted" data-i18n="footer.tagline">Monitorización de solo lectura para redes domésticas, autoalojada y libre para siempre.</p>
  403. </div>
  404. <div class="foot-col">
  405. <h4 data-i18n="footer.project">Proyecto</h4>
  406. <a href="https://github.com/gnacho/netpulse/releases" target="_blank" rel="noopener" data-i18n="footer.releases">Releases</a>
  407. <a href="https://github.com/gnacho/netpulse/blob/main/docs/ROADMAP.md" target="_blank" rel="noopener" data-i18n="footer.roadmap">Roadmap</a>
  408. <a href="https://github.com/gnacho/netpulse/blob/main/LICENSE" target="_blank" rel="noopener" data-i18n="footer.license">Licencia</a>
  409. </div>
  410. <div class="foot-col">
  411. <h4 data-i18n="footer.community">Comunidad</h4>
  412. <a href="https://github.com/gnacho/netpulse/issues" target="_blank" rel="noopener" data-i18n="footer.issues">Issues</a>
  413. <a href="https://github.com/gnacho/netpulse/discussions" target="_blank" rel="noopener" data-i18n="footer.discussions">Discusiones</a>
  414. <a href="https://github.com/gnacho/netpulse" target="_blank" rel="noopener" data-i18n="footer.contribute">Contribuir</a>
  415. </div>
  416. <div class="foot-col">
  417. <h4>Ko-fi</h4>
  418. <a class="kofi" id="kofiLink" href="#" target="_blank" rel="noopener">
  419. <svg viewBox="0 0 24 24" fill="currentColor"><path d="M23.881 8.948c-.773-4.085-4.859-4.593-4.859-4.593H.723c-.604 0-.679.798-.679.798s-.082 7.324-.022 11.822c.24 2.437 2.057 3.134 3.957 3.134 2.806.001 5.825-.054 8.658-.065.147-.031 4.467-.842 5.393-4.63.266-1.088.05-1.574-.149-2.466zm-4.572 3.482c-.567 2.306-2.876 2.523-2.876 2.523H4.645c-1.846 0-1.833-1.873-1.833-1.873V6.94c0-1.293 1.164-1.48 1.164-1.48h11.639c1.895 0 2.088 1.509 2.088 1.509s.18 2.121.18 3.153c0 1.155-.193 2.308-.574 2.308zm-4.224-1.051c-.657-.526-1.219-1.298-1.743-2.236-.523.938-1.086 1.71-1.742 2.236-.952.762-2.352.506-2.764-.567-.177-.462-.141-1.068.069-1.711.479-1.475 1.862-3.511 3.406-4.83a1.53 1.53 0 0 1 2.06 0c1.545 1.319 2.928 3.355 3.407 4.83.21.643.246 1.249.069 1.711-.413 1.073-1.813 1.329-2.762.567z"/></svg>
  420. <span data-i18n="footer.kofi">Apoya el proyecto en Ko-fi</span>
  421. </a>
  422. </div>
  423. </div>
  424. <div class="foot-bottom">
  425. <span data-i18n="footer.rights">AGPL-3.0 · Hecho en casa, para redes de casa.</span>
  426. <span class="font-mono">demo: 92/100 · 84.2↓ Mbps · 8 ms · 65 devs</span>
  427. </div>
  428. </div>
  429. </footer>
  430. <!-- ============ WIDGET APARIENCIA ============ -->
  431. <button class="appearance-fab" id="appFab" aria-label="Appearance" data-i18n-aria="appearance.title">
  432. <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"/></svg>
  433. </button>
  434. <div class="appearance-panel" id="appPanel">
  435. <h5 data-i18n="appearance.title">Apariencia</h5>
  436. <div class="label text-muted" style="margin-bottom:0.4rem;" data-i18n="appearance.theme">Tema</div>
  437. <div class="seg" id="themeSeg">
  438. <button data-mode="dark" data-i18n="appearance.dark">Oscuro</button>
  439. <button data-mode="light" data-i18n="appearance.light">Claro</button>
  440. <button data-mode="system" data-i18n="appearance.system">Auto</button>
  441. </div>
  442. <div class="label text-muted" style="margin:0.9rem 0 0.5rem;" data-i18n="appearance.accent">Acento</div>
  443. <div class="swatches" id="accentSwatches">
  444. <button class="swatch" data-accent="cyan" style="--sw:#22D3EE" aria-label="Cyan"></button>
  445. <button class="swatch" data-accent="violet" style="--sw:#A78BFA" aria-label="Violet"></button>
  446. <button class="swatch" data-accent="emerald" style="--sw:#34D399" aria-label="Emerald"></button>
  447. <button class="swatch" data-accent="amber" style="--sw:#FBBF24" aria-label="Amber"></button>
  448. </div>
  449. <div class="panel-note" data-i18n="appearance.note">Mismos tokens que la app — pruébalo en vivo.</div>
  450. </div>
  451. <script src="i18n.js"></script>
  452. <script src="app.js"></script>
  453. </body>
  454. </html>