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-solid

Latest version: v1.1.1

Overview

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

Scan summary

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

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

Versions

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

No rules fired in 1.1.1

Findings

Findings for v1.1.1. 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.1; 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-solid

@molecule/app-auth-shell-solid — centered glassmorphic shell for auth pages (Login, Signup, ForgotPassword, ResetPassword), the Solid 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 JSX props. The shell handles layout, the glass card, heading/subheading, body, footer, and the "Back to home" link.

The shell also provides its content through <AuthFormStateProvider>, so any form rendered inside inherits cross-view email persistence. Forms read it via useAuthFormStateContext(), or use the standalone useAuthFormState primitive. 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

import { AuthShell, useAuthFormStateContext } from '@molecule/app-auth-shell-solid'
import { createSessionStorageProvider } from '@molecule/app-storage-localstorage'

const sessionStore = createSessionStorageProvider({ prefix: 'auth_' })

export function Login() {
  const { fields, setField } = useAuthFormStateContext()
  return (
    <AuthShell
      heading="Sign in"
      subheading="Welcome back."
      brand={<h2>Acme</h2>}
      formStateStorage={sessionStore}
      footer={<p>No account? Sign up</p>}
    >
      <form>
        <input
          value={fields().email ?? ''}
          onInput={(e) => setField('email', e.currentTarget.value)}
        />
      </form>
    </AuthShell>
  )
}

Type

feature

Installation

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

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 an accessor. */
  fields: Accessor<AuthFormFields>
  /** `true` once the initial read from storage has completed, as an accessor. */
  hydrated: Accessor<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?: JSX.Element
  /** 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?: JSX.Element
  /** Optional CSS background applied to the container. */
  style?: JSX.CSSProperties
  /** 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?: JSX.Element
  /** 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?: JSX.CSSProperties
}
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?: JSX.CSSProperties
}
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 extends JSX.HTMLAttributes<HTMLDivElement> {
  /** The split row (and optionally a site footer sibling). */
  children?: JSX.Element
  /** Cosmetic classes (background, text color, font) for the outer container. */
  className?: string
}
AuthShellSplitRowProps

Props accepted by {@link AuthShellSplitRow}.

interface AuthShellSplitRowProps extends JSX.HTMLAttributes<HTMLElement> {
  /** The brand panel and the card column. */
  children?: JSX.Element
  /** Layout classes for the row (typically `cm.flex({})` or `cm.grid({ cols: 2 })`). */
  className?: string
}
AuthShellPanelProps

Props accepted by {@link AuthShellPanel}.

interface AuthShellPanelProps extends JSX.HTMLAttributes<HTMLElement> {
  /** The app's bespoke decoration, wordmark or social proof. */
  children?: JSX.Element
  /** Cosmetic classes — width ratio, padding, gradient, positioning. */
  className?: string
}
AuthShellCardColumnProps

Props accepted by {@link AuthShellCardColumn}.

interface AuthShellCardColumnProps extends JSX.HTMLAttributes<HTMLElement> {
  /** The form card content. */
  children?: JSX.Element
  /** Cosmetic classes — width ratio, padding. */
  className?: string
  /** Element to render. Defaults to `'section'`. */
  as?: 'section' | 'main'
}
AuthShellProps

Props accepted by {@link AuthShell}.

interface AuthShellProps {
  /** The heading text. */
  heading: string
  /** The subheading text. */
  subheading: string
  /** The form body. */
  children?: JSX.Element
  /** Optional footer node. */
  footer?: JSX.Element
  /** Optional brand node rendered above the heading. */
  brand?: JSX.Element
  /** Optional background decoration node. */
  decoration?: JSX.Element
  /** 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
AuthFormStateProvider(props)

Provides a single {@link useAuthFormState} instance to all descendants via Solid's context, so sibling/child auth forms share the same email.

function AuthFormStateProvider(props: AuthFormStateProviderProps): JSX.Element
  • props — Children plus optional storage provider, key, and seed fields.

Returns: The provider component.

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

AuthShellContainer(props)

Outer full-screen container — centered flex, padded, with optional absolute-positioned background decoration child.

function AuthShellContainer(props: AuthShellContainerProps): JSX.Element
  • props — Component props (see {@link AuthShellContainerProps}).

Returns: The container element.

AuthShellDecoration(props)

Absolute-positioned background decoration layer — orbs, mesh gradients, radial glows.

function AuthShellDecoration(props: { children?: JSX.Element }): JSX.Element
  • props — Component props (the children are the decoration).

Returns: The decoration element.

AuthShellCard(props)

The centered glassmorphic card surface.

function AuthShellCard(props: AuthShellCardProps): JSX.Element
  • props — Component props (see {@link AuthShellCardProps}).

Returns: The card element.

AuthShellHeading(props)

Centered heading block: optional eyebrow + h1 + optional subheading.

function AuthShellHeading(props: AuthShellHeadingProps): JSX.Element
  • props — Component props (see {@link AuthShellHeadingProps}).

Returns: The heading element.

AuthShellFooter(props)

Footer inside the card — small text with a top border.

function AuthShellFooter(props: { children?: JSX.Element }): JSX.Element
  • props — Component props (the children are the footer content).

Returns: The footer element.

AuthShellBackLink(props)

"Back to home" link (or custom destination) rendered below the card.

The arrow's Material Symbols glyph span is aria-hidden="true", so the link's accessible name is its t() label alone.

function AuthShellBackLink(props: AuthShellBackLinkProps): JSX.Element
  • props — Component props (see {@link AuthShellBackLinkProps}).

Returns: The back-link element.

AuthShellSplit(props)

Outer frame for the two-column "decorated brand panel + card" auth layout.

function AuthShellSplit(props: AuthShellSplitProps): JSX.Element
  • props — Component props (see {@link AuthShellSplitProps}).

Returns: The split element.

AuthShellSplitRow(props)

The vertically-flexed two-column row inside <AuthShellSplit>.

function AuthShellSplitRow(props: AuthShellSplitRowProps): JSX.Element
  • props — Component props (see {@link AuthShellSplitRowProps}).

Returns: The split-row element.

AuthShellPanel(props)

A decorative <aside> that collapses on mobile (the brand-panel half).

function AuthShellPanel(props: AuthShellPanelProps): JSX.Element
  • props — Component props (see {@link AuthShellPanelProps}).

Returns: The panel element.

AuthShellCardColumn(props)

A <section> (or <main>, via as) that centers its children on both axes.

function AuthShellCardColumn(props: AuthShellCardColumnProps): JSX.Element
  • props — Component props (see {@link AuthShellCardColumnProps}).

Returns: The card-column element.

AuthShell(props)

Convenience preset composing container, decoration, card, heading, footer, and back-link into a single component. Wraps its content in an <AuthFormStateProvider>.

function AuthShell(props: AuthShellProps): JSX.Element
  • props — Component props (see {@link AuthShellProps}).

Returns: The preset shell element.

useAuthFormState(options)

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

function useAuthFormState(options?: UseAuthFormStateOptions): AuthFormState
  • options — Optional storage provider, storage key, and seed fields.

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

Constants
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-solid ^3.14.0
  • @molecule/app-storage ^1.0.1
  • @molecule/app-ui ^1.3.11
  • @molecule/app-ui-solid ^1.1.0
  • solid-js ^1.8.0
Runtime Dependencies
  • @molecule/app-logger
  • @molecule/app-solid
  • @molecule/app-storage
  • @molecule/app-ui
  • @molecule/app-ui-solid
  • solid-js

AuthShell renders the binding's router <Link> ("Back to home") by default, so it MUST be rendered under a MoleculeProvider whose config has 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-solid

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

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

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