Presets and entry points
| import | contents |
|---|---|
sigmx |
createSigmx, createStore, reactivity primitives, compile, plugin helpers, utilities (camel, kebab, debounce, throttle, withTiming, …) |
sigmx/plugins |
every directive, function and handler as named exports, plus morph and morphInner |
sigmx/plugins/directives/<file> etc. |
individual modules |
sigmx/presets/minimal |
[signals, text, show, on] |
sigmx/presets/essentials |
state, rendering, forms, requests and the morph: signals, computed, text, show, className, attr, bind, on, init, indicator, the five request functions, applyElements, applyState |
sigmx/presets/all |
everything |
sigmx/csp |
cspCompiler(nonce) |
sigmx/server |
the Fetch-API server helpers: readSignals, sse, sseStream, html, json, the event builders |
sigmx/precompile |
the build-time expression compiler |
sigmx/scan, sigmx/vite |
auto mode: the source scanner and the Vite plugins |
sigmx/standalone |
creates an instance with every plugin and exposes it as window.sigmx |
dist/sigmx.standalone.js |
the same, minified, for a script tag |
The package is ESM only, ships .d.ts files for every module, and declares sideEffects for the standalone and CLI entries only, so bundlers drop everything you do not import.