Scan your whole stack
Are you using @simt-dev/web-ui?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.1.3
@simt-dev/web-ui was last scanned on 29 Nov 2026 at version 0.1.3. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.1.3 LATEST | 29 Nov 2026 | No rules fired |
| 0.1.2 | 29 Nov 2026 | No rules fired |
| 0.1.1 | 27 Nov 2026 | No rules fired |
| 0.1.0 | 27 Nov 2026 | Not shown |
| 0.0.0-stage | 27 Nov 2026 | Not shown |
Findings for v0.1.3. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.1.3; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Framework-agnostic motion, preference, pointer and static-site primitives for SIMT web products, including semantic static-site components. Consumed as plain ESM source and CSS with zero runtime dependencies — no framework, no build step required.
| Package | @simt-dev/web-ui on npm |
| Current version | 0.1.3 |
| License | Apache-2.0 |
| Dependencies | None (zero runtime dependencies) |
| Format | ES modules + standalone stylesheets, consumed as source |
| Node | >= 22.20 (for the test runner only; the runtime is browser-only) |
| Repository | QuazarMedia/simt-ui (web-ui/) |
IntersectionObserver-driven entrance reveals with a .stagger delay ladder; content is never hidden in Reduced mode..is-offscreen.aria-current sync for in-page nav links.detectPerformance selects a lite tier for save-data, low-memory, low-core devices and slow renderers.--lx/--ly) and tilt (--tilt-x/--tilt-y) CSS variables, rAF-batched.dark/light) and motion (full/reduced) toggles with system fallback and opt-in persistence.renderFooter builds semantic brand, navigation, company, credit and note markup from localized caller data.renderScrollToTop and initScrollToTop share accessible, motion-aware return navigation across static sites.styles.css; the standalone scroll-to-top control in scroll-to-top.css, all with reduced-motion, lite-mode, print and forced-colors behavior.For Node 22.20+ projects (any bundler or static generator that passes ESM through, e.g. Vite):
npm install @simt-dev/web-ui
The package ships source only (files: ["src"]), so it is used directly without a build step.
Minimal static-site wiring with a prepaint script and a module entry point:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<!-- Inline the bootstrap snippet (see "Prepaint bootstrap" below) so
data-theme and data-motion are set before first paint. -->
<script>/* preferenceBootstrap() output, inlined at build time */</script>
</head>
<body>
<header class="site-header" data-header>…</header>
<script type="module">
import {
detectPerformance,
initMotion,
initTheme,
observeReveals,
pauseOffscreen,
trackHeader,
trackSections,
} from "@simt-dev/web-ui";
import "@simt-dev/web-ui/styles.css";
detectPerformance();
initTheme(document.querySelector("[data-theme-toggle]"));
initMotion(document.querySelector("[data-motion-toggle]"));
observeReveals(document.querySelectorAll("[data-reveal]"));
pauseOffscreen(document.querySelectorAll("[data-ambient]"));
trackHeader(document.querySelector("[data-header]"));
trackSections(document.querySelectorAll("[data-nav-link]"));
</script>
</body>
</html>
Every initializer accepts null/missing elements and returns a teardown function, so partial markup is safe.
All runtime behavior hangs off these attributes on <html> (or the element passed as root):
| Attribute | Values | Effect |
|---|---|---|
data-theme |
light, dark, (absent = system) |
Theme; initTheme writes and removes it. |
data-motion |
full, reduced |
Reduced disables animations, transitions and scroll smoothing globally. |
data-perf |
lite, (absent = full) |
Lite disables halos, marquee rail, backdrop blur and the pointer scene. |
data-reveal |
— | Element enters hidden/offset until .is-revealed is added (full motion only). |
data-ambient |
— | Section whose animations pause while .is-offscreen is set. |
js (class) |
— | Added by the bootstrap snippet; without it, JS-only controls are hidden and fallback markup (locale links) is shown. |
Class hooks written by the runtime: .is-revealed, .is-offscreen, .is-scrolled (header), .is-lit (pointer spotlight).
@simt-dev/web-ui (main entry)renderFooter(options)Returns a complete <footer> string for a static-site generator. Required: brand (trusted caller-authored HTML), tagline, navLabel, groups, and copyright. groups is an array of { title, links }; each link is { href, label, icon? }. Optional: company: { href, label }, credit: { text, author?: { href, label, rel? } }, notes: [], and brandLayout: "inline" | "stacked" (default "inline").
Text and attributes are HTML-escaped, company labels are wrapped in <bdi>, and link schemes are limited to HTTP(S), mail and telephone links. Only brand and link icon values are trusted HTML.
import { renderFooter } from "@simt-dev/web-ui";
const footer = renderFooter({
brand: '<a class="brand" href="/">…</a>',
tagline: "Activities on a map.",
navLabel: "Footer",
groups: [
{ title: "Product", links: [{ href: "/app", label: "Open the app" }] },
{ title: "Legal", links: [{ href: "/privacy/", label: "Privacy" }] },
],
copyright: "© 2026 Quazar Media",
company: { href: "https://simt.space", label: "SimtX" },
notes: ["No cookies. No trackers."],
});
renderScrollToTop({ label, placement })Returns a native <button type="button"> with data-scroll-to-top, a localized aria-label, a decorative SVG and the hidden attribute. label is required and escaped; placement is "start" or "end" (default "end") and uses logical inline positioning for RTL.
initScrollToTop(button, options)Reveals the button after threshold (default 0.2) of the document's scrollable height. Scroll and resize updates are passive and animation-frame batched; a ResizeObserver keeps dynamic content accurate. Activation focuses focusTarget with preventScroll, then scrolls to the top smoothly unless the system or data-motion="reduced" / "static" requests instant motion. Short documents stay hidden, missing buttons are safe, repeated initialization is idempotent, and the returned cleanup removes every listener, observer and pending frame.
import { initScrollToTop, renderScrollToTop } from "@simt-dev/web-ui";
import "@simt-dev/web-ui/scroll-to-top.css";
document.body.insertAdjacentHTML(
"beforeend",
renderScrollToTop({ label: "Back to top", placement: "end" }),
);
initScrollToTop(document.querySelector("[data-scroll-to-top]"), {
focusTarget: document.querySelector(".brand"),
});
Options: focusTarget, threshold, root, view, document, requestFrame, cancelFrame, Observer and media. Browser dependencies are injectable for tests. The component performs no storage, cookie, analytics or network operations.
initTheme(button, options)Binds a theme toggle. Toggles between dark and light, writes root.dataset.theme, syncs every <meta name="theme-color"> (media-scoped values are respected), and keeps aria-label, aria-pressed and data-state in sync.
Options (all optional):
| Option | Default | Meaning |
|---|---|---|
root |
document.documentElement |
Element receiving data-theme. |
document |
globalThis.document |
Document for theme-color sync. |
media |
matchMedia("(prefers-color-scheme: light)") |
System source. |
followSystem |
true |
Fall back to the system scheme; an explicit choice is stored only when it differs from the system value. |
defaultTheme |
"dark" |
Used when not following the system. |
key |
null |
Storage key; null disables persistence. |
storage |
null |
{get, set, remove} adapter, e.g. createBrowserStorage(). |
messages |
{} |
themeToLight / themeToDark aria-label strings. |
Returns an unbind function.
initMotion(button, options)Binds a motion toggle between full and reduced, writing root.dataset.motion. Same options shape as initTheme minus theme-specific fields; media defaults to (prefers-reduced-motion: reduce) and messages uses motionPlay / motionPause. Returns an unbind function.
observeReveals(elements, { Observer })Adds .is-revealed to each element once it enters the viewport (threshold 0.1, rootMargin 0px 0px -8% 0px), then stops observing it. When IntersectionObserver is unavailable, every element is revealed immediately. Returns a disconnect function.
pauseOffscreen(elements, { Observer })Toggles .is-offscreen on each element with a 120px rootMargin, so ambient animation can be paused offscreen. Returns a disconnect function.
trackHeader(header, { document, Observer })Prepends an aria-hidden sentinel to <body> and toggles .is-scrolled on the header when the sentinel leaves the viewport. The teardown removes the sentinel and disconnects. Returns a cleanup function.
trackSections(links, { document, Observer })For each link whose hash matches a section id in the document, sets aria-current="true" while the section intersects the central band (rootMargin -45% 0px -50% 0px). Returns a disconnect function.
detectPerformance(options)Selects the performance tier on root (data-perf="lite"):
lite when navigator.connection.saveData, deviceMemory <= 2 or hardwareConcurrency <= 2.full; fewer than 40 fps selects lite.Injectable for tests: root, document, navigator, requestFrame, setTimer, addListener. Returns a dispose function.
initPointerScene(options)Fine-pointer spotlight and tilt for a hero/scene area. On pointermove it writes normalized coordinates as CSS variables on the spotlight (--lx, --ly in percent) and an optional tilt target (--tilt-x, --tilt-y in degrees, default max 6°), adding .is-lit. Rendering is rAF-batched; pointerleave resets. Active only with a fine pointer, data-motion="full" and non-lite performance; a MutationObserver on the root resets the scene when those attributes change.
Options: area (required; receives the pointer listeners), root, bounds (measurement box, defaults to area), spotlight (variable target, defaults to area), tilt, maxTilt, plus injectable finePointer, requestFrame, cancelFrame, MutationObserver. Returns a cleanup function that also resets the scene.
initLocaleSelect(control, { location })Binds a <select> whose values are locale paths; navigating on change. Returns an unbind function.
@simt-dev/web-ui/bootstrappreferenceBootstrap({ themeKey, motionKey })Returns a self-contained JavaScript snippet (a string) to inline in <head> before first paint. It adds the js class to <html> and sets data-theme / data-motion from localStorage when the corresponding key is provided, or from prefers-color-scheme / prefers-reduced-motion otherwise. With no keys the output references no storage API, so storage-averse products can inline it as-is. Escape-safe: < characters are encoded as \u003c.
@simt-dev/web-ui/storagecreateBrowserStorage()Returns a {get, set, remove} adapter over localStorage that fails closed: reads return null and writes/removes are no-ops when storage is blocked (private mode, denied permissions). Pass it as the storage option to initTheme / initMotion; import this subpath only in products that allow storage.
Import @simt-dev/web-ui/styles.css once for the shared controls, chrome and sections. Import @simt-dev/web-ui/cards.css for the standalone card variants and @simt-dev/web-ui/scroll-to-top.css when using the scroll-to-top control. They contain:
.button with --primary, --ghost, --outline variants, --small / --large / --xl sizes and an animated .button--halo; .icon-button..site-header (fixed, .is-scrolled glass state), .brand, .site-nav with aria-current styling, .locale-switch (progressive enhancement: the <select> is hidden without JS and a link list is shown instead), and .site-footer with responsive link groups and an optional stacked-brand layout..marquee ambient track (loops only in full motion, pauses on hover), .finale, .faq__grid with animated native <details> where interpolate-size is supported.[data-reveal] entrance transitions, .stagger children indexed 1–20 via --i, [data-ambient] pausing, a global reduced-motion kill switch, and print overrides that force revealed content visible.cards.css adds semantic-neutral .card modifiers: .card--rim for a masked gradient edge, .card--accent-top for a full border with a centered colored top light and optional corner glow, and .card--outline for a simple configurable border. All variants keep caller-owned layout and content. Set --card-radius, --card-border, --card-border-width, --card-surface, --card-shadow, and --card-hover-border as needed; rim cards additionally accept --card-rim-from, --card-rim-to, --card-rim-angle, and --card-rim-width, while accent-top cards accept --card-accent, --card-accent-inset, --card-glow, and the --card-glow-* geometry properties.
Every design token is a CSS custom property with an in-rule fallback (--space-*, --ease-*, --radius-*, --target-min, …), so the stylesheet works standalone and can be themed by overriding variables — no token file is required.
Degradation behavior:
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.