Files
sigpro/docs/index.html
2026-03-26 19:57:31 +01:00

26 lines
14 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="en-US" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>SigPro</title>
<meta name="description" content="Minimalist Reactive Library">
<meta name="generator" content="VitePress v1.6.4">
<link rel="preload stylesheet" href="/sigpro/assets/style.7j_EAAZ2.css" as="style">
<link rel="preload stylesheet" href="/sigpro/vp-icons.css" as="style">
<script type="module" src="/sigpro/assets/app.DtmzNmNl.js"></script>
<link rel="preload" href="/sigpro/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
<link rel="modulepreload" href="/sigpro/assets/chunks/theme.yfWKMLQM.js">
<link rel="modulepreload" href="/sigpro/assets/chunks/framework.C8AWLET_.js">
<link rel="modulepreload" href="/sigpro/assets/index.md.By6smViD.lean.js">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/daisyui@5/dist/full.css">
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
<script id="check-mac-os">document.documentElement.classList.toggle("mac",/Mac|iPhone|iPod|iPad/i.test(navigator.platform));</script>
</head>
<body>
<div id="app"><div class="Layout" data-v-a9a9e638><!--[--><!--]--><!--[--><span tabindex="-1" data-v-492508fc></span><a href="#VPContent" class="VPSkipLink visually-hidden" data-v-492508fc>Skip to content</a><!--]--><!----><header class="VPNav" data-v-a9a9e638 data-v-f1e365da><div class="VPNavBar" data-v-f1e365da data-v-822684d1><div class="wrapper" data-v-822684d1><div class="container" data-v-822684d1><div class="title" data-v-822684d1><div class="VPNavBarTitle" data-v-822684d1 data-v-0f4f798b><a class="title" href="/sigpro/" data-v-0f4f798b><!--[--><!--]--><!--[--><img class="VPImage logo" src="/sigpro/logo.svg" alt data-v-35a7d0b8><!--]--><span data-v-0f4f798b>SigPro</span><!--[--><!--]--></a></div></div><div class="content" data-v-822684d1><div class="content-body" data-v-822684d1><!--[--><!--]--><div class="VPNavBarSearch search" data-v-822684d1><!----></div><nav aria-labelledby="main-nav-aria-label" class="VPNavBarMenu menu" data-v-822684d1 data-v-e6d46098><span id="main-nav-aria-label" class="visually-hidden" data-v-e6d46098> Main Navigation </span><!--[--><!--[--><a class="VPLink link VPNavBarMenuLink active" href="/sigpro/" tabindex="0" data-v-e6d46098 data-v-956ec74c><!--[--><span data-v-956ec74c>Home</span><!--]--></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/sigpro/install.html" tabindex="0" data-v-e6d46098 data-v-956ec74c><!--[--><span data-v-956ec74c>Install</span><!--]--></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/sigpro/api/quick.html" tabindex="0" data-v-e6d46098 data-v-956ec74c><!--[--><span data-v-956ec74c>Api</span><!--]--></a><!--]--><!--]--></nav><!----><div class="VPNavBarAppearance appearance" data-v-822684d1 data-v-af096f4a><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" title aria-checked="false" data-v-af096f4a data-v-e40a8bb6 data-v-4a1c76db><span class="check" data-v-4a1c76db><span class="icon" data-v-4a1c76db><!--[--><span class="vpi-sun sun" data-v-e40a8bb6></span><span class="vpi-moon moon" data-v-e40a8bb6></span><!--]--></span></span></button></div><div class="VPSocialLinks VPNavBarSocialLinks social-links" data-v-822684d1 data-v-164c457f data-v-ee7a9424><!--[--><a class="VPSocialLink no-icon" href="https://github.com/natxocc/sigpro" aria-label="github" target="_blank" rel="noopener" data-v-ee7a9424 data-v-d26d30cb><span class="vpi-social-github"></span></a><!--]--></div><div class="VPFlyout VPNavBarExtra extra" data-v-822684d1 data-v-925effce data-v-04f5c5e9><button type="button" class="button" aria-haspopup="true" aria-expanded="false" aria-label="extra navigation" data-v-04f5c5e9><span class="vpi-more-horizontal icon" data-v-04f5c5e9></span></button><div class="menu" data-v-04f5c5e9><div class="VPMenu" data-v-04f5c5e9 data-v-7dd3104a><!----><!--[--><!--[--><!----><div class="group" data-v-925effce><div class="item appearance" data-v-925effce><p class="label" data-v-925effce>Appearance</p><div class="appearance-action" data-v-925effce><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" title aria-checked="false" data-v-925effce data-v-e40a8bb6 data-v-4a1c76db><span class="check" data-v-4a1c76db><span class="icon" data-v-4a1c76db><!--[--><span class="vpi-sun sun" data-v-e40a8bb6></span><span class="vpi-moon moon" data-v-e40a8bb6></span><!--]--></span></span></button></div></div></div><div class="group" data-v-925effce><div class="item social-links" data-v-925effce><div class="VPSocialLinks social-links-list" data-v-925effce data-v-ee7a9424><!--[--><a class="VPSocialLink no-icon" href="https://github.com/natxocc/sigpro" aria-label="github" target="_blank" rel="noopener" data-v-ee7a9424 data-v-d26d30cb><span class="vpi-social-github"></span></a><!--]--></div></div></div><!--]--><!--]--></div></div></div><!--[--><!--]--><button type="button" class="VPNavBarHamburger hamburger" aria-label="mobile navigation" aria-expanded="false" aria-controls="VPNavScreen" data-v-822684d1 data-v-5dea55bf><span class="container" data-v-5dea55bf><span class="top" data-v-5dea55bf></span><span class="middle" data-v-5dea55bf></span><span class="bottom" data-v-5dea55bf></span></span></button></div></div></div></div><div class="divider" data-v-822684d1><div class="divider-line" data-v-822684d1></div></div></div><!----></header><!----><!----><div class="VPContent is-home" id="VPContent" data-v-a9a9e638 data-v-91765379><div class="VPHome" data-v-91765379 data-v-e40e30de><!--[--><!--]--><div class="VPHero has-image VPHomeHero" data-v-e40e30de data-v-3d256e5e><div class="container" data-v-3d256e5e><div class="main" data-v-3d256e5e><!--[--><!--]--><!--[--><h1 class="heading" data-v-3d256e5e><span class="name clip" data-v-3d256e5e>SigPro</span><span class="text" data-v-3d256e5e>Atomic Unified Reactive Engine</span></h1><p class="tagline" data-v-3d256e5e>High-precision atomic reactivity. No Virtual DOM. No compiler. No dependencies.</p><!--]--><!--[--><!--]--><div class="actions" data-v-3d256e5e><!--[--><div class="action" data-v-3d256e5e><a class="VPButton medium brand" href="/sigpro/install.html" data-v-3d256e5e data-v-906d7fb4>Get Started</a></div><div class="action" data-v-3d256e5e><a class="VPButton medium alt" href="https://github.com/natxocc/sigpro" target="_blank" rel="noreferrer" data-v-3d256e5e data-v-906d7fb4>View on GitHub</a></div><!--]--></div><!--[--><!--]--></div><div class="image" data-v-3d256e5e><div class="image-container" data-v-3d256e5e><div class="image-bg" data-v-3d256e5e></div><!--[--><!--[--><img class="VPImage image-src" src="/sigpro/logo.svg" alt="SigPro Logo" data-v-35a7d0b8><!--]--><!--]--></div></div></div></div><!--[--><!--]--><!--[--><!--]--><div class="VPFeatures VPHomeFeatures" data-v-e40e30de data-v-d0a190d7><div class="container" data-v-d0a190d7><div class="items" data-v-d0a190d7><!--[--><div class="grid-4 item" data-v-d0a190d7><div class="VPLink no-icon VPFeature" data-v-d0a190d7 data-v-f5e9645b><!--[--><article class="box" data-v-f5e9645b><!----><h2 class="title" data-v-f5e9645b>⚛️ Atomic Reactivity</h2><p class="details" data-v-f5e9645b>Powered by fine-grained Signals. Forget about whole-component re-renders; SigPro updates only the specific text node or attribute that changed.</p><!----></article><!--]--></div></div><div class="grid-4 item" data-v-d0a190d7><div class="VPLink no-icon VPFeature" data-v-d0a190d7 data-v-f5e9645b><!--[--><article class="box" data-v-f5e9645b><!----><h2 class="title" data-v-f5e9645b>🚀 Zero Virtual DOM</h2><p class="details" data-v-f5e9645b>By eliminating the V-DOM diffing layer, SigPro performs surgical, direct manipulations on the real DOM, removing memory and CPU overhead.</p><!----></article><!--]--></div></div><div class="grid-4 item" data-v-d0a190d7><div class="VPLink no-icon VPFeature" data-v-d0a190d7 data-v-f5e9645b><!--[--><article class="box" data-v-f5e9645b><!----><h2 class="title" data-v-f5e9645b>🛠️ No Compiler Required</h2><p class="details" data-v-f5e9645b>Pure Vanilla JS. No Babel, no JSX, no complex build steps. Standard JavaScript that runs natively in the browser with maximum performance.</p><!----></article><!--]--></div></div><div class="grid-4 item" data-v-d0a190d7><div class="VPLink no-icon VPFeature" data-v-d0a190d7 data-v-f5e9645b><!--[--><article class="box" data-v-f5e9645b><!----><h2 class="title" data-v-f5e9645b>📦 Ultra-Lightweight</h2><p class="details" data-v-f5e9645b>The core engine—including reactivity, DOM creation, persistence, and routing—is under 2KB. Perfect for performance-critical applications.</p><!----></article><!--]--></div></div><!--]--></div></div></div><!--[--><!--]--><div class="vp-doc container" style="" data-v-e40e30de data-v-7a48a447><!--[--><div style="position:relative;" data-v-e40e30de><div><h2 id="redefining-modern-reactivity" tabindex="-1">Redefining Modern Reactivity <a class="header-anchor" href="#redefining-modern-reactivity" aria-label="Permalink to &quot;Redefining Modern Reactivity&quot;"></a></h2><p>SigPro is not just another framework; it is a <strong>high-performance engine</strong>. While other libraries add layers of abstraction that slow down execution, SigPro returns to the essence of the web, leveraging the power of modern browser engines.</p><h3 id="why-sigpro" tabindex="-1">Why SigPro? <a class="header-anchor" href="#why-sigpro" aria-label="Permalink to &quot;Why SigPro?&quot;"></a></h3><h4 id="⚡️-surgical-dom-efficiency" tabindex="-1">⚡️ Surgical DOM Efficiency <a class="header-anchor" href="#⚡️-surgical-dom-efficiency" aria-label="Permalink to &quot;⚡️ Surgical DOM Efficiency&quot;"></a></h4><p>Unlike React or Vue, SigPro doesn&#39;t compare element trees. When a signal changes, SigPro knows exactly which DOM node depends on it and updates it instantly. It is <strong>reactive precision</strong> at its finest.</p><h4 id="🔌-modular-plugin-system" tabindex="-1">🔌 Modular Plugin System <a class="header-anchor" href="#🔌-modular-plugin-system" aria-label="Permalink to &quot;🔌 Modular Plugin System&quot;"></a></h4><p>The core is sacred. Any extra functionality—Routing, UI Helpers, or State Persistence—is integrated through a polymorphic plugin system. Load only what your application truly needs.</p><h4 id="💾-native-persistence" tabindex="-1">💾 Native Persistence <a class="header-anchor" href="#💾-native-persistence" aria-label="Permalink to &quot;💾 Native Persistence&quot;"></a></h4><p>SigPro features first-class support for <code>localStorage</code>. Synchronizing your application state with persistent storage is as simple as providing a key when initializing your Signal.</p><h4 id="🚦-built-in-hash-routing" tabindex="-1">🚦 Built-in Hash Routing <a class="header-anchor" href="#🚦-built-in-hash-routing" aria-label="Permalink to &quot;🚦 Built-in Hash Routing&quot;"></a></h4><p>A robust routing system that supports <strong>Native Lazy Loading</strong> out of the box. Load your components only when the user navigates to them, keeping initial load times near zero.</p><hr><h3 id="the-no-build-philosophy" tabindex="-1">The &quot;No-Build&quot; Philosophy <a class="header-anchor" href="#the-no-build-philosophy" aria-label="Permalink to &quot;The &quot;No-Build&quot; Philosophy&quot;"></a></h3><p>In an ecosystem obsessed with compilers, SigPro bets on <strong>standardization</strong>. Write code today that will still run 10 years from now, without depending on build tools that will eventually become obsolete.</p><blockquote><p>&quot;The best way to optimize code is to not have to process it at all.&quot;</p></blockquote><hr><h2 id="community-vision" tabindex="-1">Community &amp; Vision <a class="header-anchor" href="#community-vision" aria-label="Permalink to &quot;Community &amp; Vision&quot;"></a></h2><p>SigPro is an open-source project focused on simplicity and extreme speed. Designed for developers who love the web platform and hate unnecessary &quot;bloatware&quot;.</p><div class="language-text vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">text</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>Built with ❤️ by NatxoCC for the Modern Web.</span></span></code></pre></div></div></div><!--]--></div></div></div><!----><!--[--><!--]--></div></div>
<script>window.__VP_HASH_MAP__=JSON.parse("{\"api_for.md\":\"3GRpYy3h\",\"api_html.md\":\"QmhwKd7f\",\"api_if.md\":\"2-2cm9cb\",\"api_mount.md\":\"B3RUsjff\",\"api_quick.md\":\"Coriz0Dx\",\"api_router.md\":\"DxC_B3iU\",\"api_signal.md\":\"BmorvARW\",\"api_tags.md\":\"BPbc38UO\",\"api_watch.md\":\"Dc5wZqk9\",\"index.md\":\"By6smViD\",\"install.md\":\"CrzPbqO_\",\"ui_quick.md\":\"CL4k0g3a\",\"vite_plugin.md\":\"CTs8LDIL\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"SigPro\",\"description\":\"Minimalist Reactive Library\",\"base\":\"/sigpro/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"logo\":\"/logo.svg\",\"nav\":[{\"text\":\"Home\",\"link\":\"/\"},{\"text\":\"Install\",\"link\":\"/install\"},{\"text\":\"Api\",\"link\":\"/api/quick\"}],\"sidebar\":[{\"text\":\"Introduction\",\"items\":[{\"text\":\"Installation\",\"link\":\"/install\"},{\"text\":\"Vite Plugin\",\"link\":\"/vite/plugin\"}]},{\"text\":\"API Reference\",\"items\":[{\"text\":\"Quick Start\",\"link\":\"/api/quick\"},{\"text\":\"$ signals\",\"link\":\"/api/signal\"},{\"text\":\"$watch\",\"link\":\"/api/watch\"},{\"text\":\"$if\",\"link\":\"/api/if\"},{\"text\":\"$for\",\"link\":\"/api/for\"},{\"text\":\"$router\",\"link\":\"/api/router\"},{\"text\":\"$mount\",\"link\":\"/api/mount\"},{\"text\":\"$html\",\"link\":\"/api/html\"},{\"text\":\"Tags\",\"link\":\"/api/tags\"}]},{\"text\":\"UI Components\",\"items\":[{\"text\":\"Quick Start\",\"link\":\"/ui/quick\"}]}],\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/natxocc/sigpro\"}]},\"locales\":{},\"scrollOffset\":134,\"cleanUrls\":false}");</script>
</body>
</html>