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

sax-design-vue-iconify

v1.1.0

Published

Build-time Iconify and local SVG integration for Sax Design Vue

Readme

sax-design-vue-iconify

Vite integration for Iconify and project SVG files in Sax Design Vue.

Local SVG files

// vite.config.ts
import { signSvgs } from 'sax-design-vue-iconify/vite'

export default {
  plugins: [signSvgs([{ preset: 'lo', url: 'src/assets/svgs/*.svg' }])],
}

Use home.svg as <s-icon name="lo-home" /> or <s-button icon="lo-home" />. Only literal names used in application source are registered. Use **/*.svg for subdirectories. Paths resolve relative to Vite root; names use the basename, preserving filename case. Duplicate names within a preset fail with both file paths. File changes, additions and deletions reload the development page.

Runtime-generated names need an explicit safelist:

signSvgs([{ preset: 'lo', url: 'src/assets/svgs/**/*.svg' }], {
  safelist: ['lo-home', 'lo-user'],
})

Local names can also use the shared saxIcons safelist. Identical SVG payloads share one data module across names and presets. Unreferenced files are indexed without parsing or embedding their SVG contents.

SVG viewBox, colors and gradients are preserved. Without viewBox, positive numeric width and height are required. Author currentColor to follow the component color. Only register trusted project SVG assets intended for inline rendering.

Static references register through their own source modules, including SSR. HTML entries register safelists automatically. For SSR or other entries, import virtual:sax-svgs/register before rendering to register the local safelist. Add /// <reference types="sax-design-vue-iconify/virtual" /> to your environment types. The plugin can be used together with saxIcons below.

Iconify

  • Static <s-icon name="cb:add" /> values become direct per-icon SVG imports.
  • Dynamic values use the explicit safelist in sax-icons.config.ts.
  • mode: 'api' fetches only used icons at build time and caches them locally.
  • DEFAULT_API_ENDPOINTS exposes Iconify, SimpleSVG, and UniSVG for explicit selection.
  • mode: 'local' reads installed Iconify JSON packages for offline builds.
  • Collection JSON stays in the build process and is not shipped to browsers.
  • Published component library modules are not transformed again.

Explicit runtime API loading

loadIconData(names, options) from sax-design-vue-iconify/api fetches missing icons in bounded collection batches and registers them in the shared store. Options include baseUrl, collections, timeout, and signal. IconPicker uses this entry lazily; importing the component library or rendering SIcon does not start a request. Failed requests can be retried; successful registrations are reused.

See the Sax Design Vue icon guide for configuration and usage.