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 🙏

© 2025 – Pkg Stats / Ryan Hefner

apackjs

v0.0.1

Published

<img src="./img/poem.png" />

Readme

APack: Alphabet Packing Writing System

APack is a writing system that explores writing alphabets in a Chinese character style. Instead of placing letters sequentially, APack packs letters for one word into a single grid.

English and Chinese use fundamentally different writing systems. In English or other Latin scripts, letters are pre-defined and arranged in a linear sequence. In contrast, Chinese characters are spatially composed using strokes rather than following a strict left-to-right structure.

What if we could write English in a Chinese-style manner—arranging the letters of a word spatially into a single unified character? Potential applications include stamps, wallpapers, concrete poems, icons, and more.

And world clocks!

Get started

You can create your own piece using the online APack editor. If you’d like to use APack in your project, it’s also available as a JavaScript package, just follow the instructions below to get started.

$ npm install apackjs -S
import * as ap from "apackjs";

const node = ap.text("hello world").render();

document.body.append(node);

API Reference

# ap.text(content[, options])

Renders the given content with optional styling and layout options.

ap.text("hello world");

example-render-content

# options.cellSize

Sets the size of each cell.

ap.text("hello world", {cellSize: 200});

example-options-cellsize

# options.cellWidth

# options.cellHeight

Sets the dimensions of each cell, defaults to options.cellSize.

ap.text("hello world", {
  cellWidth: 320,
  cellHeight: 320,
  style: {styleBackground: "#F1BB4D"},
  word: {stroke: "#492577", strokeWidth: 10},
  font: "astrology",
});

example-options-dimension

# options.font

Specifies the font to use for rendering.

ap.text("hello world", {font: "astrology"});

example-options-font

# options.layout

Set the layout for packing.

ap.text("hello world", {
  layout: {type: "treemap", grid: true},
});

example-options-layout

# options.word

Customizes the word styling.

ap.text("hello world", {
  word: {
    stroke: "red",
    strokeWidth: 3,
    fill: "none",
  },
});

example-options-word

# options.style

Configures the overall style of the output.

ap.text("hello world", {
  style: {
    styleBackground: "red",
  },
});

example-options-style

# options.grid

Adds and customizes a grid overlay.

ap.text("hello world", {
  grid: {
    stroke: "#ccc",
    fill: "none",
  },
});

example-options-grid

# options.padding

Sets the padding around the content.

ap.text("hello world", {padding: 0.2, grid: true});

example-options-padding