npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@faintshadow/flarecharts

v26.3.1

Published

Composable, runes-first SVG charting library for Svelte 5. CSS-variable theming, typed snippets, accessible by default.

Readme

About Flarecharts

Flarecharts is a composable SVG chart library for Svelte 5 built on runes. We believe data visualization should be expressive, accessible, and easy to customize. Flarecharts takes the pain out of charting by easing common tasks used in many web projects, such as:

  • Runes-first architecture: Built specifically for Svelte 5.
  • d3 for math only: No d3 DOM bindings, just pure SVG components.
  • CSS-variable themed: "Styled mode" is the only mode. Theme by setting variables on any wrapper.
  • Composable Primitives & one-tag Charts: Eject from a wrapper to custom composition without reshaping your data.
  • Accessibility built-in: Visually-hidden data tables, aria-live regions, and full arrow-key point navigation.
  • First-class stacking & curves: Modelled on d3's stack generator with diverging, stream, and silhouette offsets.

Learning Flarecharts

Flarecharts has extensive and thorough documentation. It covers everything from getting started to deep dives on stacking, curves, and accessibility.

The documentation is also available in docs/ directory of the repository, covering:

  • Core Concepts — the two layers, data, scales & axes, options & precedence
  • Theming — full variable surface and class lists for plain-CSS/Tailwind restyling
  • Charts — LineChart, AreaChart, BarChart, StackChart, DonutChart, Sparkline
  • Primitives — Chart/Svg, marks, axes & grid, overlays
  • Guides — stacking, curves, accessibility, responsive, interaction, etc..

Installation

Install Flarecharts via your preferred package manager:

npm install @faintshadow/flarecharts
# or
bun add @faintshadow/flarecharts

One Tag or Composed — Your Choice

Use a single <LineChart> tag for quick implementation:

<LineChart
  xAxis={{ type: 'time' }}
  series={[
    { name: 'Revenue', data: revenue, x: (d) => d.date, y: (d) => d.value },
    { name: 'Costs', data: costs, x: (d) => d.date, y: (d) => d.value }
  ]}
  bands={[{ from: 55, to: 70, label: 'Target' }]}
  crosshair
/>

Or compose your own chart pixel-identically using primitives, using the exact same data shapes and defaults. When you outgrow the one-tag form, you don't have to rewrite anything:

<script lang="ts">
  import { Chart, Svg, Axis, Grid, Line, PlotBand } from 'flarechart';

  const revenue = [
    { date: new Date(2025, 0, 1), value: 48 },
    { date: new Date(2025, 1, 1), value: 61 }
    // ...
  ];
</script>

<div style="height: 280px">
  <Chart x={{ type: 'time' }} label="Revenue by month">
    <Svg>
      <Grid y />
      <PlotBand from={55} to={70} label="Target" />
      <Line data={revenue} x={(d) => d.date} y={(d) => d.value} />
      <Axis placement="left" />
      <Axis placement="bottom" />
    </Svg>
  </Chart>
</div>

The chart fills its container (give it a height) and resizes with it. Paint order is markup order.

Core Concepts

  • Two Layers: Primitives (src/lib/components/) are composable building blocks you assemble in markup. Charts (src/lib/charts/) are one-tag wrappers built only from Primitives.
  • Flexible Data Shapes: Every mark accepts the same data shapes (number[], [x, y][], { x?, y }[], or T[] with accessors). null / NaN values render as gaps, never zeros.
  • Theming: Every visual attribute resolves from a CSS custom property with a built-in fallback. Dark mode is just you flipping variables — the library does nothing, by design.
  • Accessibility: <Chart> renders a role="group" container with an aria-label, a visually-hidden data table of every visible series, and arrow-key point navigation.

Development

bun install
bun run dev      # demo app (routes/)
bun run test     # vitest: normalizer, merge, scales, stacking, …
bun run check    # svelte-check, strict
bun run package  # svelte-package + publint

Contributing

Thank you for considering contributing to Flarecharts! Please review the design rationale in the Architecture page before opening a pull request.

License

Flarecharts is open-sourced software licensed under the MIT + Attribution License.