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

@create-font/glyphs-app

v0.0.7

Published

Glyphs.app source parsing and create-font import

Readme

@create-font/glyphs-app

Headless Glyphs.app source support for create-font. The package parses editable Glyphs 2 and 3 text files into a source-format AST, then explicitly lowers that AST into a validated native create-font project.

import { readFile } from "node:fs/promises"
import { importGlyphsSource } from "@create-font/glyphs-app"
import { parseGlyphsSource } from "@create-font/glyphs-app/parser"

const text = await readFile("MyFont.glyphs", "utf8")
const parsed = parseGlyphsSource(text)
if (!parsed.ok) console.error(parsed.errors)
else console.log(parsed.value.root)

const imported = importGlyphsSource(text)
if (!imported.ok) console.error(imported.errors)
else console.log(imported.value.source)

Architecture

  • parseGlyphsSource parses the bounded OpenStep property-list dialect used by Glyphs, validates its declared format version, and retains the complete dictionary—including unknown and version-specific properties—alongside the original source text. The @create-font/glyphs-app/parser subpath is independent of create-font lowering at runtime.
  • lowerGlyphsSource translates a parsed Glyphs document into create-font's editor model. Component expansion, axes, instances, cmap, metrics, kerning, feature validation, fidelity warnings, and native-source validation belong to this stage.
  • importGlyphsSource composes parsing and lowering for CLI consumers.

The lowering boundary is explicit about what editor v5 can represent:

| Glyphs data | Import behavior | | -------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | | family/version, UPM, master metrics and style | default-master values become native metrics/style; Windows metrics conservatively cover every master's outline and control bounds | | axes, masters, and instances | converted to stable native entities and design locations | | line and cubic path nodes | converted to master-local contours with relative handles and smooth/hard modes | | components | recursively expanded per master with affine transforms; lost component editability is diagnosed | | glyph names, export state, notes, widths, and Unicode values | converted to native glyph/layer/cmap data | | default-master glyph and class kerning | classes expanded to explicit native glyph pairs | | classes, prefixes, and features | returned as Adobe feature text only when the complete result passes create-font semantic analysis | | anchors, guides, backgrounds, special layers, per-master metrics/kerning, and instance export parameters | omitted with property-path warnings because editor v5 has no corresponding field |

Missing component references, cycles, invalid transforms/nodes, quadratic curves, and invalid resulting editor state are errors. Component expansion is memoized and rejects nesting beyond 64 references, or any master layer beyond 10,000 contours or two million points.

Parsing never depends on filesystem state. All stages are bounded and return structured diagnostics instead of partially publishing a project.

Trademark

This is an independent interoperability package and is not affiliated with or endorsed by Glyphs GmbH. Glyphs is a trademark of Glyphs GmbH.