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

Latest version: v1.1.3

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: vialoh
45 Stars
4 Forks
6 Versions
903 Downloads
TypeScript Repo language

Scan summary

@molecule/app-annotation-pin-solid was last scanned on 29 Nov 2026 at version 1.1.3. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 6 versions; the latest 3 were published within 6 days (24–29 Nov 2026).
  • Findings: No rules fired in version 1.1.3.
  • Downloads: 903 downloads.

Versions

6 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.1.3 LATEST 29 Nov 2026 No rules fired
1.1.2 26 Nov 2026 No rules fired
1.1.1 24 Nov 2026 No rules fired
1.1.0 18 Nov 2026 Not shown
0.0.1-stage 16 Nov 2026 Not shown

No rules fired in 1.1.3

Findings

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

README

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

@molecule/app-annotation-pin-solid

Solid annotation pin / hotspot overlay primitives.

Exports AnnotationPin (single click-to-toggle marker) and AnnotationLayer (parent wrapper that manages many pins on a surface). Reusable for 3d-model viewers, image annotations, map pins, and hotspot tours. It is the Solid counterpart of @molecule/app-annotation-pin-react: same props (React names) and the same DOM for the same input, so an app switches framework by changing only the package name in its imports.

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 { createSignal, For } from 'solid-js'
import { AnnotationLayer, type Pin } from '@molecule/app-annotation-pin-solid'

export function ImageAnnotator(props: { src: string }) {
  const [pins, setPins] = createSignal<Pin[]>([])
  const [activeId, setActiveId] = createSignal<string | null>(null)

  return (
    <AnnotationLayer
      pins={pins()}
      activePinId={activeId()}
      onPinClick={(id) => setActiveId(id === activeId() ? null : id)}
      onSurfaceClick={({ x, y }) => {
        const id = crypto.randomUUID()
        setPins([...pins(), { id, position: { x, y }, label: pins().length + 1 }])
        setActiveId(id)
      }}
    >
      <img src={props.src} alt="" style={{ width: '100%', display: 'block' }} />
    </AnnotationLayer>
  )
}

Type

feature

Installation

npm install @molecule/app-annotation-pin-solid @molecule/app-solid @molecule/app-ui @molecule/app-ui-solid solid-js

API

Interfaces
Pin

A single pin to display on a parent surface. position is in the parent's coordinate space — for image / 2D-canvas overlays this is normalised 0..1 (so the pin re-anchors as the surface resizes); for pixel-positioned overlays callers can pass raw px values and provide their own style overrides via className.

The label/note are pure data — components handle render only. Surfaces supply pin objects via <AnnotationLayer pins={...}> (or render a single pin directly if there is only one).

interface Pin {
  /** Stable identifier (used as the list key). */
  id: string
  /** Position in the parent surface's coordinate space (typically normalised 0..1). */
  position: { x: number; y: number }
  /** Short label (e.g. an index or single-word tag) shown inside the pin marker. */
  label?: JSX.Element
  /** Longer note / description body, shown inside the popup when the pin is selected. */
  note?: JSX.Element
}
AnnotationPinProps

<AnnotationPin> props.

interface AnnotationPinProps {
  /** Position in the parent surface's coordinate space (typically normalised 0..1). */
  position: { x: number; y: number }
  /** Short label (e.g. an index or single-word tag) shown inside the marker. */
  label?: JSX.Element
  /** Longer note shown inside the popup when the pin is selected. */
  note?: JSX.Element
  /**
   * Whether the pin is currently selected. When `true` the popup is
   * rendered. Selection is controlled — callers manage state in
   * `<AnnotationLayer>` (or themselves) and update via `onClick`.
   */
  selected?: boolean
  /** Click handler — fires when the pin marker is clicked. */
  onClick?: () => void
  /**
   * Side the popup renders on, relative to the marker. Defaults to `'right'`.
   */
  popupSide?: 'top' | 'bottom' | 'left' | 'right'
  /** Extra classes merged onto the root wrapper. */
  className?: string
  /**
   * Whether `position` is normalised (0..1) — when `true` the wrapper
   * positions itself with `%` units so pins re-anchor on resize. When
   * `false` the wrapper uses raw `px` values. Defaults to `true`.
   */
  normalised?: boolean
}
AnnotationLayerProps

<AnnotationLayer> props.

interface AnnotationLayerProps {
  /** Pins to render on the layer. */
  pins: Pin[]
  /** Optional layer content (the surface to annotate — image, canvas, map tile, etc.). */
  children?: JSX.Element
  /**
   * The currently active (popup-open) pin id, or `null` for none. The
   * layer is fully controlled — callers manage selection state.
   */
  activePinId?: string | null
  /** Called with the clicked pin id when a pin marker is clicked. */
  onPinClick?: (pinId: string) => void
  /**
   * Called when the user clicks an empty area of the layer (i.e. not on
   * a pin marker or a popup). Coordinates are in the same space as
   * `Pin.position` — normalised 0..1 by default. Keyboard users get the
   * same action: activating the layer's "add pin" button (Tab to it,
   * then Enter / Space) places a pin at the surface centre.
   */
  onSurfaceClick?: (position: { x: number; y: number }) => void
  /**
   * Whether positions are normalised (0..1) — when `true` the layer
   * computes click coordinates as fractions of its bounding box; when
   * `false` it returns raw pixel offsets. Defaults to `true`.
   */
  normalised?: boolean
  /**
   * Side the popup renders on, relative to its marker. Defaults to `'right'`.
   */
  popupSide?: 'top' | 'bottom' | 'left' | 'right'
  /** Extra classes merged onto the layer root. */
  className?: string
  /** Inline style for the layer root, merged over the layer's own. */
  style?: Record<string, string | number>
}
Functions
AnnotationLayer(props)

Wrapper that manages multiple pins on a parent surface. Renders its children (the surface — typically an <img>, <canvas>, or map-tile element) and overlays each pins[] entry as a clickable <AnnotationPin> marker.

Click behaviour:

  • clicking a pin marker fires onPinClick(pinId)
  • clicking empty space on the layer fires onSurfaceClick({ x, y }), which callers typically use to add a new pin. That action lives on an invisible "add annotation pin" button covering the surface (the layer region itself is not interactive — it contains the pin buttons and popups): pointer clicks place a pin at the click position; activating the button with a keyboard (Tab to it, then Enter / Space) or assistive tech places a pin at the surface centre.

The layer itself sets position: relative so absolute pin positioning works without the caller having to provide a wrapper.

This is the Solid counterpart of @molecule/app-annotation-pin-react's AnnotationLayer: the same props (React names), the same ClassMap tokens, the same i18n keys, and the same DOM for the same input.

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

Returns: The rendered annotation layer.

AnnotationPin(props)

A single pin marker (small circle with optional label) rendered at an absolute position on its parent. Clicking the marker toggles its popup (which shows the note body) via the onClick handler.

Positioning is absolute relative to the nearest positioned ancestor — callers must wrap the surface (image, canvas, map) in a position: relative element. AnnotationLayer provides this wrapper automatically.

This is the Solid counterpart of @molecule/app-annotation-pin-react's AnnotationPin: the same props (React names), the same ClassMap tokens, the same i18n keys, and the same DOM for the same input.

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

Returns: The rendered pin marker.

Injection Notes

Requirements

Peer dependencies:

  • @molecule/app-solid ^3.14.0 || ^4.0.0
  • @molecule/app-ui ^1.0.1
  • @molecule/app-ui-solid ^1.6.0
  • solid-js ^1.8.0
Runtime Dependencies
  • @molecule/app-solid
  • @molecule/app-ui
  • @molecule/app-ui-solid
  • solid-js

Selection is fully controlled — the layer never stores the active pin; manage activePinId yourself and toggle it in onPinClick. position is normalised 0..1 by default (fractions of the layer box, so pins re-anchor on resize); pass normalised={false} for raw pixel offsets — on BOTH <AnnotationLayer> and any directly-rendered <AnnotationPin>, or clicks and markers will disagree. The layer wraps children in a position: relative box; a bare <AnnotationPin> needs its own positioned ancestor. Translations come from the companion @molecule/app-locales-annotation-pin locale bond.

Translations

Translation strings are provided by @molecule/app-locales-annotation-pin.

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

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

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

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

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229