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

@urbit-xyz/azimuth-hanzi

v0.1.0

Published

Chinese character mapping and SVG generation for Urbit Azimuth identities

Readme

azimuth-hanzi

Chinese-character sigils for Urbit Azimuth identities. Maps the 512 Urbit syllables (256 prefixes + 256 suffixes) to Hanzi characters and renders them as SVG.

Status: the mapping is a work in progress. This repository is open so the character assignments can be refined collaboratively before they are finalized. See DESIGN.md for the ruleset and open items.

Install

npm install @urbit-xyz/azimuth-hanzi

Use

import { hanziSigil, parsePoint } from '@urbit-xyz/azimuth-hanzi'

const svg = hanziSigil({
  point: '~sampel-palnet',
  size: 128,
  background: '#000',
  foreground: '#fff',
  space: 'default', // 'none' | 'default' | 'large'
})

const parsed = parsePoint('~sampel-palnet')
// { phonemes: ['sam', 'pel', 'pal', 'net'], characters: ['森', '培', ...], type: 'planet' }

Layout by point type:

| Ship type | Characters | Layout | | --------- | ---------- | ------------ | | Galaxy | 1 | Centered | | Star | 2 | Side-by-side | | Planet | 4 | 2×2 grid | | Moon | 8 | 2×4 grid |

For repeated renders of the same configuration, use memoizedHanziSigil (same signature, cached by config).

Web components

Auto-registered on module load:

<urbit-hanzi point="~sampel-palnet" size="128" background="#000" foreground="#fff"></urbit-hanzi>
<urbit-hanzi-image point="~sampel-palnet" size="128"></urbit-hanzi-image>

Inspecting the mapping

import { PREFIXES, PREFIX_GROUPS, getCharacter } from '@urbit-xyz/azimuth-hanzi'

PREFIXES[0]                      // 'doz' — Urbit syllable for byte 0
getCharacter('doz')              // '红' — assigned Hanzi
PREFIX_GROUPS['Colors & Light']  // { 0: ['红', 'hóng', 'red'], 1: ['青', 'qīng', 'azure'], ... }

SUFFIXES, SUFFIX_GROUPS, PREFIX_CHARACTERS (flat map with category attached), PHONEME_INDEX, isPrefix, and isSuffix are also exported.

Develop

git clone https://github.com/master-malwyl/azimuth-hanzi
cd azimuth-hanzi
npm install
npm run build    # emits ./dist
npm test
npm run preview  # serves http://localhost:8080/preview.html

preview.html is a single-file catalogue viewer: every prefix and suffix side-by-side with pinyin and gloss, plus a generator that renders any Urbit ID.

Contributing

Read DESIGN.md first — it explains the goal, the ruleset that guides character choices, and the open items a refinement pass should tackle.

The canonical 512-character mapping lives in src/mapping.ts, keyed by byte (0–255) and grouped by theme:

export const PREFIX_GROUPS = {
  'Colors & Light': {       // bytes 0-21 (doz..lid)
    0:  ['红', 'hóng', 'red'],
    1:  ['青', 'qīng', 'azure'],
    // ...
  },
  // ...
}

To change an assignment, edit the [character, pinyin, gloss] tuple in place. The group key is the category; moving an entry to a different category means moving the line to a different group (and updating the byte-range comment on both groups).

Open a PR explaining which rule from DESIGN.md the change advances.

License

MIT. See LICENSE.