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

static-to-variable

v0.6.2

Published

Convert a family of static fonts into a single variable font, guided by a config and an audited pipeline.

Readme

static-to-variable

Turn static fonts into one variable font.

Got a font as thin, regular, and bold files? Point this at them and get back one file you can slide between. See rebuilt families at blode.co/static-to-variable — the CLI builds on your machine; nothing is uploaded.

Quick start

Go to a folder with your font files and run:

npm install -g static-to-variable
static-to-variable init
static-to-variable build

init finds your fonts, reads their weights, and writes stv.config.json for you; confirm the list and name the family. In a non-interactive shell (CI, agents) it writes a starter template to edit instead.

Your variable font is in build/. Needs Node 24.11+, Python 3.11+, and uv; the bundled font engine sets itself up the first time you build. Run static-to-variable doctor to check your setup.

Commands

static-to-variable init      # detect fonts, write ./stv.config.json
static-to-variable build     # rebuild -> normalize -> build
static-to-variable release   # finalize + WOFF2
static-to-variable split <font>  # variable font -> static weights (the reverse)
static-to-variable doctor    # environment readiness
static-to-variable --version
static-to-variable --help

build and release read ./stv.config.json by default; pass --config <path> to use another. Inside a repo checkout, list / run / step / status drive the advanced QA pipeline.

Split a variable font back into static weights

Already have a variable font and want the individual weights? split is the reverse of build: it pins the font at each step along its wght axis and writes one static TTF + WOFF2 per weight, each named so they install side by side.

static-to-variable split MyFamily-VF.ttf              # -> ./static/*.ttf + *.woff2
static-to-variable split MyFamily-VF.ttf --out dist   # choose the output directory
static-to-variable split MyFamily-VF.ttf --step 50    # finer weight steps (default 100)

No config needed. Any other axes are pinned to their default. Pass --json for a machine-readable summary.

Conventions

  • build, release, split, and doctor take --json for a machine-readable summary on stdout; human progress always goes to stderr, so piped stdout stays clean.
  • build --json includes layout.mode (variable | static | none) and any frozen glyphs from the engine.
  • After build, you can open the generated .glyphs source in Glyphs to browse masters and live-preview — optional review, not required to build.
  • Configs are validated against schemas/stv-config.schema.json before any engine work starts; violations name the offending path.
  • Exit codes: 0 success, 1 failure, 2 usage error (bad flag, missing or invalid config), 3 environment error, 130 interrupted.
  • Errors carry a stable STV_* code and a suggested fix; NO_COLOR is respected on both streams.
  • Advanced checkout QA (list / run / step / status) is separate from the product path above.

Configuration

Everything font-specific lives in stv.config.json (schema v3): family metadata, axes and named instances, per-style donors and masters, vertical metrics, per-glyph repair strategies, and output paths. See schemas/stv-config.schema.json and the examples/inter/ worked example.

License

MIT