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

tauri-plugin-system-symbols

v0.3.0

Published

System symbol SVG paths for Tauri apps.

Readme

tauri-plugin-system-symbols

Resolve platform system symbols into SVG path data from a Tauri app.

This plugin is designed for apps that want native-looking symbols without bundling icon fonts or SVG assets.

Packages

Status

  • Windows: Segoe Fluent Icons is resolved first, with Segoe MDL2 Assets as the fallback.
  • macOS: copied SF Symbols characters are resolved through CoreText and converted from CGPath to SVG path data.
  • Other platforms: unsupported.

Calling the resolver on an unsupported platform rejects with a Rust backend error.

On macOS, pass the character produced by SF Symbols' Copy Symbol command, not the symbol name. For example, 􂰵 is the copied character for square.and.arrow.down.badge.clock.

Install

Install the Rust plugin in your Tauri app:

# src-tauri/Cargo.toml
[dependencies]
tauri-plugin-system-symbols = "0.3"

Install the JavaScript package:

pnpm add tauri-plugin-system-symbols

Register the plugin:

tauri::Builder::default()
    .plugin(tauri_plugin_system_symbols::init());

Add the default permission to your capability file:

{
  "permissions": ["system-symbols:default"]
}

JavaScript API

import { getCachedSymbol, getSymbol } from 'tauri-plugin-system-symbols'

const close = getCachedSymbol('\uE8BB', 10) ?? await getSymbol('\uE8BB', 10)
const history = await getSymbol('􂰵', 16) // square.and.arrow.down.badge.clock

Tauri IPC is asynchronous, so first-time symbol resolution returns a Promise<Path[]>. Resolved symbols are cached by symbol and size.

Rust API

Other Rust crates can call the native resolvers directly without registering this crate as a Tauri plugin:

let close = tauri_plugin_system_symbols::get_symbol("\u{E8BB}", 10.0)?;
let history = tauri_plugin_system_symbols::get_symbol("􂰵", 16.0)?; // square.and.arrow.down.badge.clock

This is the recommended integration path when another Tauri plugin only needs the generated SVG path data internally. Symbols are resolved according to the current operating system.

Types

interface Path {
  d: string
  fillRule?: 'nonzero' | 'evenodd'
  opacity?: number
}

React

React components are provided by tauri-plugin-system-symbols-react.

pnpm add tauri-plugin-system-symbols-react @tauri-apps/plugin-os

Development

pnpm install
pnpm run check
pnpm run build
cargo check
cargo test

Publishing

Publishing is handled by .github/workflows/publish.yml.

Create a tag to publish both packages:

git tag v0.1.0
git push origin v0.1.0

The workflow sets package.json and Cargo.toml versions from the tag, then publishes:

  • npm with npm publish --provenance --access public
  • crates.io with rust-lang/crates-io-auth-action

Before the first trusted publish, configure trusted publishing in both registries:

  • npm: trust insd47/tauri-plugin-system-symbols and workflow .github/workflows/publish.yml
  • crates.io: trust insd47/tauri-plugin-system-symbols and workflow .github/workflows/publish.yml

License

MIT