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

@ggsvelte/svelte

v0.15.2

Published

ggsvelte: a layered grammar of graphics for Svelte 5 — ggplot2 semantics, JSON-serializable specs, agent-friendly validation, hybrid SVG/canvas rendering, and the ggsvelte-render CLI.

Readme

@ggsvelte/svelte

codecov

Svelte 5 components for ggsvelte. Re-exports @ggsvelte/spec and @ggsvelte/core, ships the ggsvelte-render CLI, and publishes the agent skill at skills/ggsvelte.

bun add @ggsvelte/svelte
# or: npm install @ggsvelte/svelte

Requires Node.js 22+ and Svelte 5.33.1+.

Example

<script lang="ts">
  import { GeomPoint, GGPlot, Labs } from "@ggsvelte/svelte";
  import { kyotoSakura } from "@ggsvelte/svelte/data";
</script>

<GGPlot
  data={kyotoSakura}
  aes={{ x: "year", y: "bloomDoy" }}
  width="container"
  height={400}
>
  <Labs
    title="Kyoto cherry blossom full-bloom dates, 812–2026"
    subtitle="Full bloom moved about ten days earlier after the industrial era"
    x="Year"
    y="Day of year"
  />
  <GeomPoint size={2} alpha={0.7} />
</GGPlot>

Scale transforms change the values stats see; coordTransform projects after stats. Dense points may render on canvas; axes, legends, text, and accessible descriptions stay in the DOM. <Guides> places, titles, or suppresses guides without retraining scales.

Agent skill

Published path: node_modules/@ggsvelte/svelte/skills/ggsvelte/SKILL.md. Repo source: skills/ggsvelte/SKILL.md.

Emit PortableSpec JSON, run validate(), apply fix.example at path, re-validate, then render with <GGPlot spec={…} />, renderToSVGString, or ggsvelte-render. Schema: schema/v0.json

Upgrading

The grammar props on <GGPlot> (facet, coord, scales, guides, legend, theme, labs) are deprecated since 0.11.0 in favour of child layers. A codemod ships with the package; it prints a diff and writes nothing until you ask it to:

npx ggsvelte-codemod src          # show what would change
npx ggsvelte-codemod --write src  # apply

Shapes it will not rewrite mechanically are printed as manual change required with a link to the upgrading guide, never half-migrated.

Links

Pre-1.0. Lifecycle and compatibility contracts are on the docs site.

MIT © Liam O'Dea