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

@pantoken/icon-font

v0.1.16

Published

Build an installable Instructure icon font (WOFF2 + TTF) with CSS and codepoints — stroke glyphs outlined to fills.

Readme

@pantoken/icon-font

Build an installable Instructure icon font from the Canvas by Instructure icon set. You get a WOFF2 file, a TTF file, a stylesheet, and a codepoint map. Install the font on a device and use the glyphs in design apps, documents, and offline contexts where the web tooling isn't reachable.

Why a font

The other pantoken icon formats emit inline SVG or per-framework components. Those need a build step and a browser. A font doesn't. Once it's installed, every app that picks a font can use the icons: Figma, Sketch, Google Slides, Keynote, Word, and any native text field.

What it does

Instructure ships two kinds of glyphs:

  • Fill glyphs (the custom Instructure set) already describe filled regions, so they pass straight through.
  • Stroke glyphs (the Lucide set) describe a centerline with a stroke width. A font glyph has no stroke, so this package outlines each stroke into a filled shape. It flattens every subpath to points, then offsets that polyline by half the stroke width with round joins and caps.

The result is one filled path per icon, streamed through svgicons2svgfont, svg2ttf, and ttf2woff2.

Install

npm i -D @pantoken/icon-font

This package isn't part of the unscoped pantoken meta package. The font toolchain is heavy, so npm i pantoken stays lean. Install this one directly when you need a font.

CLI

pantoken generate icon-font --out ./fonts
pantoken generate icon-font --out ./fonts --class Instructure --icons arrow-left,check-mark

Flags:

  • --out is the output directory (default ./pantoken-out).
  • --class is the font family name (default PanTokens).
  • --icons is a comma-separated subset (default: every icon).
  • --theme is the source theme (default rebrand).

The command writes four files: <class>.woff2, <class>.ttf, icons.css, and codepoints.json.

API

import { buildIconFont } from "@pantoken/icon-font";

const font = await buildIconFont({ fontName: "PanTokens", icons: ["arrow-left"] });
// font.woff2  → Uint8Array
// font.ttf    → Uint8Array
// font.css    → string (@font-face + .instui-icon-<name> rules)
// font.codepoints → { "arrow-left": "e000", ... }

Use the font on the web

<link rel="stylesheet" href="./icons.css" /> <i class="instui-icon instui-icon-arrow-left"></i>

Each glyph lives in the Unicode Private Use Area, starting at U+E000. The codepoints.json map records the assignment for every icon, so you can also type a glyph directly once the font is installed.

License

MIT