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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@odx/pictograms

v4.3.0

Published

A library of pictogram assets for ODX

Downloads

700

Readme

@odx/pictograms

A lightweight library for displaying pictograms as custom elements. This package provides flexible imports, allowing you to include only what you need to optimize your project.

Installation (npm)

Install the library via npm:

npm i @odx/pictograms

Usage

The library provides a custom custom element <odx-pictogram> to display pictograms. You can choose between different sets or import individual pictograms to reduce your bundle size.

We rely on the esm module behavior in order to keep a global state. If you load an asset from a CDN ensure that the same module of @odx/assets-utils is used throughout your application. One common technique is the usage of an import map (<script type="importmap">).

Import custom element:

import '@odx/pictograms';

Import specific pictogram sets

To optimize your bundle, you can import only the specific pictogram set you need:

// All pictogram sets
import '@odx/pictograms/all';

// Default pictograms (default set)
import '@odx/pictograms/default';

Import individual pictograms

To optimize your bundle, you can import only the specific pictograms you need:

import '@odx/pictograms/default/user';

Example Usage

Element API

  • name: string - <set-name>::<name> or <name> with default set (core)
  • set: string - <set-name>

CSS Property API

  • --color: string - default: currentColor
  • --size: string - default: 1em

HTML Example

<script type="module">
  import '@odx/pictograms';
  import '@odx/pictograms/default';
</script>

<!-- default set: core -->
<odx-pictogram name="<name>"></odx-pictogram>
<odx-pictogram name="<set-name>::<name>"></odx-pictogram>
<odx-pictogram name="<set-name>::<name>"></odx-pictogram>

CDN

<script src="https://esm.sh/@odx/pictograms" type="module"></script>
<script src="https://esm.sh/@odx/pictograms/<set-name>" type="module"></script>

JavaScript Example

// Import the default pictogram set
import '@odx/pictograms/default';

// Create a pictogram dynamically
const pictogram = document.createElement('odx-pictogram');
pictogram.name = 'default::user';

document.body.appendChild(pictogram);

Browser Support

This library leverages modern web technologies such as Shadow DOM for encapsulation and CSSStyleSheet.replaceSync() for efficient stylesheet updates. It targets the ES2022 specification, taking advantage of the latest JavaScript features. These technologies are widely supported in most modern browsers.

Supported Browsers:

  • Chrome 97+
  • Edge 97+
  • Firefox 104+
  • Safari 14+
  • Opera 83+

Live demo ⭐

For a overview of all available assets please refer to our Asset Viewer.