Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@simt-dev/web-ui

Latest version: v0.1.3

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: saidelimam
5 Versions
411 Downloads

Scan summary

@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.

  • Releases: 5 versions, all published within 3 days (27–29 Nov 2026).
  • Findings: No rules fired in version 0.1.3.
  • Downloads: 411 downloads.

Versions

5 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 0.1.3

Findings

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.

README

The publisher’s own README, as collected from the registry.

@simt-dev/web-ui

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/)

What it does

  • Reveal and stagger motion — IntersectionObserver-driven entrance reveals with a .stagger delay ladder; content is never hidden in Reduced mode.
  • Ambient pausing — offscreen ambient sections (e.g. marquees) stop animating via .is-offscreen.
  • Header and section tracking — scrolled-header state and aria-current sync for in-page nav links.
  • Performance tiering — detectPerformance selects a lite tier for save-data, low-memory, low-core devices and slow renderers.
  • Pointer scene — fine-pointer spotlight (--lx/--ly) and tilt (--tilt-x/--tilt-y) CSS variables, rAF-batched.
  • Preference controls — theme (dark/light) and motion (full/reduced) toggles with system fallback and opt-in persistence.
  • Prepaint bootstrap — an inline script snippet that applies saved or system preferences before first paint to avoid theme/motion flash.
  • Static footer — renderFooter builds semantic brand, navigation, company, credit and note markup from localized caller data.
  • Scroll to top — renderScrollToTop and initScrollToTop share accessible, motion-aware return navigation across static sites.
  • Stylesheets — shared controls, site chrome and sections in styles.css; the standalone scroll-to-top control in scroll-to-top.css, all with reduced-motion, lite-mode, print and forced-colors behavior.

Install

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.

Quick start

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.

State contract

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).

API reference

@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"):

  • Immediately lite when navigator.connection.saveData, deviceMemory <= 2 or hardwareConcurrency <= 2.
  • Otherwise, after load (delayed 400 ms), runs a 1-second frame-rate probe while the page is visible and motion is 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/bootstrap
preferenceBootstrap({ 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/storage
createBrowserStorage()

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.

Stylesheet

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:

  • Controls — .button with --primary, --ghost, --outline variants, --small / --large / --xl sizes and an animated .button--halo; .icon-button.
  • Site chrome — .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.
  • Sections — .marquee ambient track (loops only in full motion, pauses on hover), .finale, .faq__grid with animated native <details> where interpolate-size is supported.
  • Motion utilities — [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:

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm @simt-dev/web-ui

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229