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-chart-wrapper-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
462 Downloads
TypeScript Repo language

Scan summary

@molecule/app-chart-wrapper-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; the latest 2 were published on 24 Nov 2026.
  • Findings: No rules fired in version 1.1.2.
  • Downloads: 462 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 16 Nov 2026 No rules fired
0.0.1-stage 16 Nov 2026 Not shown
0.0.0-stage 16 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-chart-wrapper-svelte

Svelte ChartCard + ChartLegend wrappers around @molecule/app-charts.

Exports:

  • ChartCard — uniform chrome (title / description / actions / summary / body / footer) around a chart rendering. minChartHeight (default 240) stops responsive charts collapsing; dataMolId sets data-mol-id.
  • ChartLegend — swatch + label (+ value) legend. Items become toggle buttons when onToggle is provided.
  • ChartLegendItem type.

These wrappers provide ONLY the surrounding chrome. The chart itself is whatever you render as the default content — typically a canvas driven by createLineChart/createBarChart from @molecule/app-charts (via a real bonded ChartProvider) or your own chart component. There is no <BarChart> component in @molecule/app-charts.

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 { onMount } from 'svelte'

  import { ChartCard, ChartLegend } from '@molecule/app-chart-wrapper-svelte'
  import { createBarChart } from '@molecule/app-charts'

  let canvas: HTMLCanvasElement
  onMount(() => {
    const chart = createBarChart(canvas, {
      labels: ['Jan', 'Feb', 'Mar'],
      datasets: [{ label: 'Revenue', data: [4200, 5800, 5100] }],
    })
    return () => chart.destroy()
  })
</script>

<ChartCard title="Monthly Revenue" description="Last 12 months">
  {#snippet footer()}
    <ChartLegend
      items={[
        { id: 'revenue', label: 'Revenue', color: '#4f46e5' },
        { id: 'expenses', label: 'Expenses', color: '#e11d48' },
      ]}
    />
  {/snippet}
  <canvas bind:this={canvas} height={240}></canvas>
</ChartCard>

Type

feature

Installation

npm install @molecule/app-chart-wrapper-svelte @molecule/app-svelte @molecule/app-ui @molecule/app-ui-svelte svelte

API

Interfaces
ChartCardProps

Props accepted by the {@link ChartCard} component.

interface ChartCardProps {
  /** Card heading: a snippet, or a plain string. Required by the component. */
  title: Snippet | string
  /** Optional supporting description: a snippet, or a plain string. */
  description?: Snippet | string
  /** Optional right-aligned actions (range selector, export menu, filter). */
  actions?: Snippet | string
  /** Optional KPI summary row shown between header and chart (e.g. "Total: 12,345 +12%"). */
  summary?: Snippet | string
  /** Chart content — any rendering driven by `@molecule/app-charts`. */
  children: Snippet | string
  /** Optional footer below the chart (legend, source attribution). */
  footer?: Snippet | string
  /** Set a minimum chart height so responsive charts don't collapse. Defaults to `240`. */
  minChartHeight?: number
  /** Extra classes on the Card. */
  className?: string
  /** `data-mol-id` for AI-agent selectors. */
  dataMolId?: string
}
ChartLegendItem

Describes a single series entry rendered in the chart legend.

interface ChartLegendItem {
  /** Series id — the value `onToggle` receives. */
  id: string
  /** Series label: a snippet, or plain text. */
  label: Snippet | string | number
  /** Swatch color (any valid CSS color or ClassMap token string). */
  color: string
  /** Optional value / count display next to the label. */
  value?: Snippet | string | number
  /** Whether the series is hidden (greyed out). */
  hidden?: boolean
}
ChartLegendProps

Props accepted by the {@link ChartLegend} component.

interface ChartLegendProps {
  /** The legend's series. */
  items: ChartLegendItem[]
  /** Called when an item is toggled. */
  onToggle?: (id: string) => void
  /** Layout direction. Defaults to `'horizontal'`. */
  layout?: 'horizontal' | 'vertical'
  /** Extra classes. */
  className?: string
}
Constants
ChartCard
const ChartCard: LegacyComponentType
ChartLegend
const ChartLegend: LegacyComponentType

Injection Notes

Requirements

Peer dependencies:

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

@molecule/app-charts' built-in provider renders a non-functional placeholder notice (and logs a one-time console warning), not a real chart. Bond the Chart.js provider once at startup — import { provider } from '@molecule/app-charts-chartjs'; setProvider(provider) — so createChart / createBarChart draw real charts (or render your own chart component as the default content). Legend items labels/values are consumer-provided nodes; pass translated strings via t(). Node-valued props (title, description, actions, summary, footer) are snippet props.

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-chart-wrapper-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 (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

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

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229