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

@ogis/icons

v0.2.8

Published

Open GIS icon set — SVG sprite, icon font and CSS classes

Readme

@ogis/icons

Open GIS icon set — available as an SVG sprite, icon font (woff2/woff), and CSS/SCSS classes.

Live preview: https://ogis.org/icons/


With a build step (npm)

Install

npm install @ogis/icons

CSS icon font

Import the stylesheet and use <i> tags with oi-{name} classes:

@import "@ogis/icons/css";
<i class="oi-search"></i> <i class="oi-gear"></i>

SCSS

Import the full SCSS file (includes @font-face and all icon classes):

@use "@ogis/icons/scss";

If you only need the $ogis-icons-map Sass variable (no generated classes):

@use "@ogis/icons/scss-variables" as *;

.my-icon::before {
  content: map-get($ogis-icons-map, "search");
}

SVG sprite

Copy or serve node_modules/@ogis/icons/dist/ogis-icons.svg and reference icons by ID:

<svg width="16" height="16">
  <use href="/assets/ogis-icons.svg#search"></use>
</svg>

Without a build step (CDN)

All assets are available via jsDelivr — no install required.

Replace @0.1.0 with the version you want, or use @latest to always get the newest release.

CSS icon font

<link
  rel="stylesheet"
  href="https://cdn.jsdelivr.net/npm/@ogis/icons/dist/ogis-icons.css"
/>

<i class="oi-search"></i>
<i class="oi-gear"></i>

SVG sprite

<svg width="16" height="16">
  <use
    href="https://cdn.jsdelivr.net/npm/@ogis/icons/dist/ogis-icons.svg#search"
  ></use>
</svg>

Note: Browsers block cross-origin <use href="…"> references to external SVG files. Either self-host the sprite or inline it at the top of your HTML before using fragment references.


Sizing & color

Icon font

Set size with font-size and color with color:

<i class="oi-search" style="font-size: 1.5rem; color: steelblue;"></i>

Or in CSS:

.oi-search {
  font-size: 1.5rem;
  color: steelblue;
}

SVG sprite

Set size with width / height attributes (or equivalent CSS). Set icon color with the fill attribute:

<svg width="24" height="24" fill="steelblue">
  <use href="/assets/ogis-icons.svg#search"></use>
</svg>

Development

Build

Regenerates everything in dist/ from the SVG sources in src/svg/:

npm run build

The build pipeline:

  1. PNG → SVG — traces any PNGs in src/png/ with Potrace and optimises them with SVGO.
  2. Normalise — scales all SVGs to a 16 × 16 viewBox.
  3. SVG sprite — bundles all icons into dist/ogis-icons.svg.
  4. Icon font — generates ogis-icons.woff2 / .woff plus CSS, SCSS, and JSON outputs.
  5. SCSS variables — writes dist/ogis-icons-variables.scss with the $ogis-icons-map.

Preview

Start a local dev server (uses Vite):

npm run dev

Adding icons

  • Place new .svg files in src/svg/ (or .png files in src/png/ for auto-tracing), then run npm run build.
  • Codepoint assignments are persisted in src/codepoints.json so existing icons keep stable Unicode values.

Outputs

| File | Description | | -------------------------------- | ---------------------------------------- | | dist/ogis-icons.svg | SVG symbol sprite | | dist/ogis-icons.woff2 | Icon font (woff2) | | dist/ogis-icons.woff | Icon font (woff) | | dist/ogis-icons.css | CSS with @font-face + .oi-* classes | | dist/ogis-icons.scss | SCSS with @font-face + .oi-* classes | | dist/ogis-icons-variables.scss | SCSS variables only (no classes) | | dist/ogis-icons.json | Codepoint map as JSON |


License

MIT