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

@vector-display/font

v0.1.0

Published

Atari-style vector stroke font and text layout for vector-display.

Downloads

0

Readme

@vector-display/font

An Atari-style vector stroke font and text layout for vector-display. Letters are drawn as beam lines, so text glows and flickers like everything else on a vector display.

Status: early (0.x). The API may change between minor versions.

Install

npm install @vector-display/core @vector-display/font

ES modules only, with TypeScript declarations.

Usage

import { DisplayList } from "@vector-display/core";
import { VectorFont } from "@vector-display/font";

const font = VectorFont.createArcadeFont();
const displayList = new DisplayList();

displayList.setColor({ red: 0.85, green: 0.95, blue: 1 });
font.addText(displayList, { text: "SCORE 01250", x: 40, y: 30, size: 20 });
font.addText(displayList, { text: "GAME OVER", x: 512, y: 384, size: 32, alignment: "center" });

const { width, height } = font.measureText("HIGH SCORE", 16);

addText options: text, x, y (top of the first line), size (capital-letter height in world units), and optional alignment ("left", "center", "right"), rotation (radians) and intensity.

Characters

  • A–Z and 0–9; lowercase letters use the capitals
  • . , : ; ! ? ' " - + = * / _ < > ( ) # % ©
  • \n starts a new line; characters without a glyph keep their space so columns stay aligned

The glyphs are original designs in the style of late-1970s Atari vector games, drawn on a 4 × 6 grid. Zero has a slash to distinguish it from O.

Custom glyphs and fonts

// Add or replace glyphs (grid units, y down, baseline at 6):
const font = VectorFont.createArcadeFont({
  "$": [{ points: [{ x: 4, y: 1 }, { x: 0, y: 1 }, { x: 0, y: 3 }, { x: 4, y: 3 }, { x: 4, y: 5 }, { x: 0, y: 5 }], isClosed: false }],
});

// Or build a different font entirely:
const customFont = VectorFont.fromDefinition({ glyphs, metrics: { glyphWidth: 4, capHeight: 6, letterSpacing: 2, lineSpacing: 4 } });

Legibility: with glow and bloom, text 16 world units tall or larger reads clearly. For smaller text, reduce bloom and endpoint brightness in the renderer.

License

MIT © Rick Segrest