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

@42mk/segment

v1.0.2

Published

Segment — a custom display/icon font.

Downloads

310

Readme

Segment

A custom display font, packaged for web distribution.

62 glyphs — uppercase AZ (U+0041U+005A), lowercase az (U+0061U+007A), and digits 09 (U+0030U+0039). Ships as woff2, woff, ttf, and svg with a ready-to-use CSS file.

Quick start

npm install @42mk/segment
@import "@42mk/segment/css";

.label {
  font-family: "Segment", sans-serif;
}

The imported CSS defines the @font-face and a .segment helper class.

Try it / preview

Clone the repo and run the demo page:

git clone https://github.com/42dotmk/Segment.git segment
cd segment
npm install
npm run build
npm run demo

Then open http://localhost:8080.

The demo (demo/index.html) shows a pangram, a live input tester, and the full A–Z / a–z / 0–9 glyph grid with codepoint labels. It loads fonts directly from dist/, so you must npm run build at least once before starting it.

Any static server works — npm run demo just wraps npx http-server demo.

Install options

As an npm package

npm install @42mk/segment

Available subpath exports:

| Import | File | | ------------------------------- | ------------------------- | | @42mk/segment / .../css | dist/segment.css | | @42mk/segment/woff2 | dist/segment.woff2 | | @42mk/segment/woff | dist/segment.woff | | @42mk/segment/ttf | dist/segment.ttf | | @42mk/segment/svg | dist/segment.svg | | @42mk/segment/glyph-map | dist/glyph-map.json |

Direct file reference

<link rel="preload" href="/@42mk/segment/dist/segment.woff2"
      as="font" type="font/woff2" crossorigin>
<link rel="stylesheet" href="/@42mk/segment/dist/segment.css">

Build from source

npm install
npm run build     # outputs dist/
npm run clean     # removes dist/ and build/

Pipeline: src/svg/*.svg → stroke-expand (oslllo-svg-fixer) → svgicons2svgfontsvg2ttfttf2woff + wawoff2dist/.

Source SVGs are named {HEX4}-{char}.svg, where the hex prefix is the Unicode codepoint the glyph maps to. Add or replace glyphs by dropping files into src/svg/ using that convention, then rebuild.

Scripts

| Command | What it does | | --------------- | --------------------------------------------- | | npm run build | Build all font formats + CSS into dist/ | | npm run demo | Serve demo/ on http://localhost:8080 | | npm run clean | Remove dist/ and build/ |

Layout

src/svg/              source glyphs (unicode-prefixed filenames)
scripts/              build pipeline
dist/                 built font files + CSS (generated)
demo/                 local preview page
segment_font_export/  original icomoon export (reference only)

Requirements

Node.js 18+ (ESM build scripts).

Credits

  • Original design: Pavlina Buchevska — designed the original SVG glyphs.
  • Number glyphs: Mila Jovanovikj — designed the digit glyphs 09.
  • Font conversion & packaging: Darko Bozhinovski — converted the original SVG design into a distributable web font.
  • Demo page & packaging fixes: Ilija Boshkov — built the demo/landing page and tidied up the npm packaging.

License

SIL Open Font License 1.1.