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

@molecule/app-auth-shell-svelte

Latest version: v1.1.2

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: vialoh
45 Stars
4 Forks
5 Versions
463 Downloads
TypeScript Repo language

Scan summary

@molecule/app-auth-shell-svelte was last scanned on 24 Nov 2026 at version 1.1.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 5 versions, all published within 7 days (18–24 Nov 2026).
  • Findings: No rules fired in version 1.1.2.
  • Downloads: 463 downloads.

Versions

5 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.1.2 LATEST 24 Nov 2026 No rules fired
1.1.1 24 Nov 2026 No rules fired
1.1.0 19 Nov 2026 No rules fired
0.0.1-stage 18 Nov 2026 Not shown
0.0.0-stage 18 Nov 2026 Not shown

No rules fired in 1.1.2

Findings

Findings for v1.1.2. 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 1.1.2; other versions have their own rules, not their own score.

README

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

@molecule/app-auth-shell-svelte

@molecule/app-auth-shell-svelte — centered glassmorphic shell for auth pages (Login, Signup, ForgotPassword, ResetPassword), the Svelte counterpart of @molecule/app-auth-shell-react: the same exports, the same props (React names), and the same DOM for the same input.

Apps pass per-app decoration (orbs, gradient backdrop) and brand (logo + tagline) as snippets. The shell handles layout, the glass card, heading/subheading, body, footer, and the "Back to home" link.

The shell also publishes its content through AuthFormStateProvider (via Svelte context), so any form rendered inside inherits cross-view email persistence. Forms read it via useAuthFormStateContext(), or use the standalone useAuthFormState hook. Persistence flows through the @molecule/app-storage StorageProvider abstraction (never raw sessionStorage), defaulting to a process-shared in-memory store.

Besides the AuthShell preset, the package exports the composable primitives — AuthShellContainer, AuthShellDecoration, AuthShellCard, AuthShellHeading, AuthShellFooter, AuthShellBackLink — plus a two-column family for the split layout: AuthShellSplit > AuthShellSplitRow > (AuthShellPanel + AuthShellCardColumn).

Auto-generated, AI-first package reference for the molecule.dev ecosystem. It is written to be read by coding agents as much as by people, and is generated from this package's source — edit src/index.ts JSDoc, not this file.

Quick Start

<script lang="ts">
  import { AuthShell, useAuthFormStateContext } from '@molecule/app-auth-shell-svelte'
  import { createSessionStorageProvider } from '@molecule/app-storage-localstorage'

  const sessionStore = createSessionStorageProvider({ prefix: 'auth_' })
</script>

<AuthShell heading="Sign in" subheading="Welcome back." formStateStorage={sessionStore}>
  {#snippet brand()}<h2>Acme</h2>{/snippet}
  {#snippet footer()}<p>No account? Sign up</p>{/snippet}
  <LoginForm />
</AuthShell>

Type

feature

Installation

npm install @molecule/app-auth-shell-svelte @molecule/app-logger @molecule/app-storage @molecule/app-svelte @molecule/app-ui @molecule/app-ui-svelte svelte

API

Interfaces
AuthFormFields

Shared auth form field values. email is the canonical cross-view field; additional string fields (e.g. a name carried from Signup) may be stored alongside it.

interface AuthFormFields {
  /** Email address, shared across all auth views. */
  email?: string
  /** Any other shared string field (e.g. `name`). */
  [field: string]: string | undefined
}
UseAuthFormStateOptions

Options for {@link useAuthFormState}.

interface UseAuthFormStateOptions {
  /** Storage provider backing persistence (defaults to a process-shared in-memory provider). */
  storage?: StorageProvider
  /** Storage key for the persisted fields. Defaults to `molecule.auth.form-state`. */
  storageKey?: string
  /** Seed values used before hydration completes / when storage is empty. */
  initialFields?: AuthFormFields
}
AuthFormState

The value {@link useAuthFormState} returns.

interface AuthFormState {
  /** Current field values (email + any shared fields), as a writable store. */
  fields: Writable<AuthFormFields>
  /** `true` once the initial read from storage has completed, as a writable store. */
  hydrated: Writable<boolean>
  /** Sets a single field and persists the new state. */
  setField: (name: string, value: string) => void
  /** Merges a patch of fields and persists the new state. */
  setFields: (patch: AuthFormFields) => void
  /** Clears all persisted auth form state and removes the storage key. */
  clear: () => void
}
AuthFormStateProviderProps

Props for {@link AuthFormStateProvider}.

interface AuthFormStateProviderProps {
  /** Children rendered inside the provider. */
  children?: Snippet
  /** Storage provider backing persistence (defaults to a shared in-memory provider). */
  storage?: StorageProvider
  /** Storage key for the persisted fields. */
  storageKey?: string
  /** Seed values used before hydration / when storage is empty. */
  initialFields?: AuthFormFields
}
AuthShellContainerProps

Props accepted by {@link AuthShellContainer}.

interface AuthShellContainerProps {
  /** Content rendered inside the container. */
  children?: Snippet
  /** Optional CSS background applied to the container. */
  style?: AuthShellStyle
  /** Extra classes appended after the defaults. */
  className?: string
  /** Layout direction. Defaults to `'centered'`; pass `'column'` for a vertical stack. */
  layout?: 'centered' | 'column'
}
AuthShellCardProps

Props accepted by {@link AuthShellCard}.

interface AuthShellCardProps {
  /** Content rendered inside the card. */
  children?: Snippet
  /** Override the default glass surface. */
  surfaceClassName?: string
  /** Extra layout classes appended after the flex/padding defaults. */
  className?: string
  /** Override the outer `<main>` wrapper classes. */
  outerClassName?: string
  /** `data-mol-id` pass-through for E2E selectors. */
  dataMolId?: string
  /** Optional CSS style applied to the card's inner surface. */
  style?: AuthShellStyle
}
AuthShellHeadingProps

Props accepted by {@link AuthShellHeading}.

interface AuthShellHeadingProps {
  /** The heading text. */
  heading: string
  /** Optional subheading paragraph. */
  subheading?: string
  /** Optional small uppercase tag rendered above the heading. */
  eyebrow?: string
  /** Optional override for the h1 className. */
  headingClassName?: string
  /** Optional override for the h1 style. */
  headingStyle?: AuthShellStyle
}
AuthShellBackLinkProps

Props accepted by {@link AuthShellBackLink}.

interface AuthShellBackLinkProps {
  /** Destination. Defaults to `/`. */
  to?: string
  /** Translated label override; falls back to `auth.backHome` → "Back to home" when absent, empty or blank. */
  label?: string
}
AuthShellSplitProps

Props accepted by {@link AuthShellSplit}.

interface AuthShellSplitProps {
  /** The split row (and optionally a site footer sibling). */
  children?: Snippet
  /** Cosmetic classes (background, text color, font) for the outer container. */
  className?: string
  /** Any other attribute React would spread onto the container. */
  [attribute: string]: unknown
}
AuthShellSplitRowProps

Props accepted by {@link AuthShellSplitRow}.

interface AuthShellSplitRowProps {
  /** The brand panel and the card column. */
  children?: Snippet
  /** Layout classes for the row (typically `cm.flex({})` or `cm.grid({ cols: 2 })`). */
  className?: string
  /** Any other attribute React would spread onto the row. */
  [attribute: string]: unknown
}
AuthShellPanelProps

Props accepted by {@link AuthShellPanel}.

interface AuthShellPanelProps {
  /** The app's bespoke decoration, wordmark or social proof. */
  children?: Snippet
  /** Cosmetic classes — width ratio, padding, gradient, positioning. */
  className?: string
  /** Any other attribute React would spread onto the panel. */
  [attribute: string]: unknown
}
AuthShellCardColumnProps

Props accepted by {@link AuthShellCardColumn}.

interface AuthShellCardColumnProps {
  /** The form card content. */
  children?: Snippet
  /** Cosmetic classes — width ratio, padding. */
  className?: string
  /** Element to render. Defaults to `'section'`. */
  as?: 'section' | 'main'
  /** Any other attribute React would spread onto the column. */
  [attribute: string]: unknown
}
AuthShellProps

Props accepted by {@link AuthShell}.

interface AuthShellProps {
  /** The heading text. */
  heading: string
  /** The subheading text. */
  subheading: string
  /** The form body. */
  children: Snippet
  /** Optional footer node. */
  footer?: Snippet
  /** Optional brand node rendered above the heading. */
  brand?: Snippet
  /** Optional background decoration node. */
  decoration?: Snippet
  /** Destination of the back link. Defaults to `/`. */
  backTo?: string
  /** Whether to render the back link. Defaults to `true`. */
  showBackLink?: boolean
  /** Storage provider backing cross-view auth form persistence. */
  formStateStorage?: StorageProvider
  /** Storage key for the persisted auth form state. */
  formStateKey?: string
}
Functions
useAuthFormStateContext()

Reads the shared auth form state from the nearest {@link AuthFormStateProvider} (which <AuthShell> renders by default).

function useAuthFormStateContext(): AuthFormState

Returns: The shared {@link AuthFormState}.

useAuthFormState(options)

Svelte hook holding email + shared auth fields, persisted across auth views via an injectable StorageProvider and cleared on successful auth.

function useAuthFormState(
  options?: UseAuthFormStateOptions | (() => UseAuthFormStateOptions | undefined),
): AuthFormState
  • options — Optional storage provider, storage key, and seed fields, or a getter of them (a getter lets a component pass its $props() without Svelte's local-reference warning, since the props are read once at init).

Returns: The current fields plus setField/setFields/clear and a hydrated flag.

Constants
AuthFormStateProvider
const AuthFormStateProvider: LegacyComponentType
AuthShell
const AuthShell: LegacyComponentType
AuthShellBackLink
const AuthShellBackLink: LegacyComponentType
AuthShellCard
const AuthShellCard: LegacyComponentType
AuthShellCardColumn
const AuthShellCardColumn: LegacyComponentType
AuthShellContainer
const AuthShellContainer: LegacyComponentType
AuthShellDecoration
const AuthShellDecoration: LegacyComponentType
AuthShellFooter
const AuthShellFooter: LegacyComponentType
AuthShellHeading
const AuthShellHeading: LegacyComponentType
AuthShellPanel
const AuthShellPanel: LegacyComponentType
AuthShellSplit
const AuthShellSplit: LegacyComponentType
AuthShellSplitRow
const AuthShellSplitRow: LegacyComponentType
DEFAULT_AUTH_FORM_STATE_KEY

Default storage key for persisted auth form fields.

const DEFAULT_AUTH_FORM_STATE_KEY: 'molecule.auth.form-state'

Injection Notes

Requirements

Peer dependencies:

  • @molecule/app-logger ^1.0.1
  • @molecule/app-storage ^1.0.1
  • @molecule/app-svelte ^3.13.0
  • @molecule/app-ui ^1.3.11
  • @molecule/app-ui-svelte ^1.1.0
  • svelte ^5.0.0
Runtime Dependencies
  • @molecule/app-logger
  • @molecule/app-storage
  • @molecule/app-svelte
  • @molecule/app-ui
  • @molecule/app-ui-svelte
  • svelte

AuthShell renders the binding's router <Link> ("Back to home") by default, so it MUST be rendered under setMoleculeContext with a router; pass showBackLink={false} in router-less setups. The back link's arrow uses the Material Symbols icon font; the glyph span is aria-hidden="true", so the link's accessible name is its t() label alone. Form-state persistence defaults to a process-shared in-memory store (survives route swaps, not reloads) — inject createSessionStorageProvider() for reload-safe, tab-scoped persistence. Translations come from the companion @molecule/app-locales-auth-shell locale bond.

Translations

Translation strings are provided by @molecule/app-locales-auth-shell.

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 @molecule/app-auth-shell-svelte

References

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

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (1)
Research

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

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

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229