Modules for DOM manipulation, events, rendering, storage, and network communication.

Categories

Category Content
rendering Pipeline parser → render → template → uiSession
query Selection, attributes, styles, events, media
display Animations, fullscreen
fs IndexedDB, localStorage, download
net AJAX, WebSocket, SSE, WebRTC, BroadcastChannel
sw Service Worker lifecycle, Cache API
utils Entropy, clipboard, user agent, permissions, notifications
sensors Geolocation, battery, network, inertial sensors
lifecycle Visibility, idle detection, wake lock

Modules by category

rendering

Module Deps Worker-safe Description
parser none yes HTML → ElmNode[]
render none yes ElmNode[] → bound ElmNode[]
sanitize none yes Allowlist-based HTML sanitiser (XSS)
template none no ElmNode[] → DOM nodes
themeTokens dom no CSS Custom Properties design tokens
uiSession template, render, parser, dom no High-level facade
component none no Reusable component (template + state + lifecycle)
reactiveBind signal no Explicit signal→DOM binding controller (patch via uiSession, no re-render)
virtualScroll dom, events no Virtualised list for 10⁴–10⁶ items
chart dom, animate, stats, linalg no Canvas 2D charts — line, area, bar, sparkline
devtools clock no uiSession introspection + profiler + elm-array dump
devtoolsUI devtools no Opt-in read-only inspector — session, module-registry and signal-graph views

query

Module Deps Worker-safe Description
dnd none no SDE-internal Drag & Drop via Pointer Events
dom secPolicy no Selection, styles, attributes, scroll (CSS filtering via secPolicy)
events none no Named event management
gesture events no Touch/pointer gestures: tap, swipe, pan, pinch
media none no JS media queries

display

Module Deps Worker-safe Description
animate none no CSS/JS animations
fullscreen none no Fullscreen API

fs

Module Deps Worker-safe Description
download none no File download
fsAccess none partial File System Access API + OPFS (DOM-bound pickers, OPFS worker-safe)
indexedDB none no IndexedDB wrapper
remoteStore ajax, ws, eventBus yes Remote key-value store HTTP/WS + watch + batch
storage none no localStorage / sessionStorage

net

Module Deps Worker-safe Description
ajax none no HTTP requests
ws none no WebSocket
sse none no EventSource (SSE) + exponential retry
webrtc none no RTCPeerConnection wrapper
broadcastChannel none yes BroadcastChannel cross-tab/worker
network none partial Online/offline detection + ping + Network Information API

sw

Module Deps Worker-safe Description
backgroundSync serviceWorker no Background Sync API — offline replay via SyncManager (Chrome only)
cache none yes Cache API wrapper
push serviceWorker, b64 no PushManager wrapper — VAPID subscription, subscription, permission
serviceWorker none no SW lifecycle (window-side)
sharedWorker processRPC no SharedWorker cross-tab connection + bidirectional RPC

utils

Module Deps Worker-safe Description
a11y none no ARIA live regions, aria-* attributes, role, prefers-reduced-motion
entropyCollector none no Entropy collector
clipboard none no Clipboard
ua none no User agent detection
permissions none no Permissions API query + watch
notifications none partial Web Notifications API wrapper
focus dom, events no Focus trap, tab order, stash/restore
keybindings events, eventBus no Keyboard shortcuts (bindings, chords, contexts, priority)
leaderElection broadcastChannel no Single-leader cross-tab election
webauthn random, b64 no WebAuthn Level 3 — Passkeys / FIDO2
formKit form, valid, reactiveBind, signal no RHF-like ergonomic layer over form (register/watch/array/submit)

sensors

Module Deps Worker-safe Description
geolocation none no GPS / wifi position
battery none no Battery Status API
networkInfo none no Network Information API
sensors none no Gyro/accel/orientation

lifecycle

Module Deps Worker-safe Description
visibility none no Page Visibility API
idle none no IdleDetector + fallback timer
wakeLock visibility no Wake Lock API