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

@pangrampangram/pp-font-packager

v0.5.7

Published

Interactive CLI for organizing font files into distribution-ready folder structures

Downloads

40

Readme

PP Font Packager

Interactive CLI for organizing font files into distribution-ready folder structures.

Install

NPM

npm install -g @pangrampangram/pp-font-packager

PNPM

pnpm add -g @pangrampangram/pp-font-packager

Features

  • Organizes font files (ttf, otf, woff, woff2, eot) into standardized folders
  • Auto-detects font names, families, and subfamilies from filenames
  • Interactive prompts with sensible defaults
  • Generates multiple package types:
    • Single Styles - Individual weight folders (e.g., PP Frama Regular v1.0/)
    • Full Family - All variants organized by type (ttf/, otf/, web/, variable/)
    • Family packages - Per-family groupings (Normal, Text, Display, etc.)
    • Subfamily packages - Per-subfamily groupings (Upright, Italic, etc.)
  • Separates variable fonts into variable/ subfolder
  • Mini variable fonts go to variable/mini variable/
  • Web fonts (woff, woff2, eot) organized into web/ subfolder

Development Setup

pnpm install

Usage

pnpm dev

The CLI guides you through the following prompts:

┌  PP Font Packager
│
◆  Enter font directory path:
│  ./fonts
│
│  Detected: 24 font files
│  Detected font name: PP Frama
│  Detected families: Normal, Text
│  Detected subfamilies: Upright, Italic
│
◆  Enter font name:
│  PP Frama
│
◆  Enter version:
│  v1.0
│
◆  Select families (first is default for unmatched files):
│  ◼ Normal
│  ◼ Text
│
◆  Do you want to organize by subfamilies?
│  Yes
│
◆  Select subfamilies:
│  ◼ Upright
│  ◼ Italic
│
◆  Select output packages to generate:
│  ◼ Single Styles
│  ◼ Full Family
│  ◼ Family packages
│  ◼ Subfamily packages
│
◆  Organize PP Frama fonts in ./fonts?
│  Yes
│
◐  Organizing files...
│
│  Created 15 folders:
│    PP Frama Regular v1.0
│    PP Frama Bold v1.0
│    PP Frama - Full Family v1.0
│    PP Frama - Normal Family v1.0
│    ...
│
└  Complete!

Output Structure

Single Styles

Each font weight gets its own folder:

PP Frama Regular v1.0/
  PPFramaRegular.ttf
PP Frama Bold v1.0/
  PPFramaBold.ttf

Full Family

All fonts organized by type:

PP Frama - Full Family v1.0/
  ttf/
    PPFramaRegular.ttf
    PPFramaBold.ttf
  otf/
    PPFramaRegular.otf
  web/
    PPFramaRegular.woff
    PPFramaRegular.woff2
  variable/
    PPFramaVariable.ttf
    mini variable/
      Variable.ttf

Family Packages

Per-family organization:

PP Frama - Normal Family v1.0/
  ttf/
  otf/
  web/
PP Frama - Text Family v1.0/
  ttf/
  otf/
  web/

Subfamily Packages

Per-family + subfamily organization:

PP Frama - Normal Upright Family v1.0/
PP Frama - Normal Italic Family v1.0/
PP Frama - Text Upright Family v1.0/
PP Frama - Text Italic Family v1.0/

Development

pnpm dev          # Run CLI
pnpm build        # Compile TypeScript
pnpm typecheck    # Type check
pnpm lint         # Lint with Biome
pnpm lint:fix     # Auto-fix lint issues
pnpm format       # Format with Biome
pnpm test         # Run tests (53 tests)
pnpm test:watch   # Run tests in watch mode

Project Structure

src/
├── index.ts          # CLI entry point
├── prompts.ts        # Interactive prompt flows
├── ui.ts             # Terminal styling (chalk)
├── organizer.ts      # Core organization logic
├── detector.ts       # Auto-detect font info
├── types.ts          # Type definitions
├── utils/
│   ├── fs.ts         # File system helpers
│   └── naming.ts     # Font name parsing
└── __tests__/        # Test files
    ├── fs.test.ts
    ├── naming.test.ts
    ├── detector.test.ts
    └── organizer.test.ts

License

MIT