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

uinh-kyaengh

v0.1.2

Published

A JavaScript library for working with 韻鏡系韻圖 (Yunjing-type rime tables)

Readme

UinhKyaengh.js

UinhKyaengh.js is a JavaScript library for working with 韻鏡系韻圖 (Yunjing-type rime tables), specifically 韻鏡 (Yunjing) and 七音略 (Qiyin lüe). It provides a formalised, programmatic representation of traditional rime tables and enables bidirectional conversion between 韻鏡位置 and TshetUinh.js 音韻地位.

The core abstraction of this library is the 韻鏡位置 object. A 韻鏡位置 is defined by a three-dimensional coordinate system consisting of 轉號, 上位, and 右位. From this representation, the library can generate canonical descriptions, perform structural analysis, and interoperate with the 音韻地位 model used in TshetUinh.js.

This library is designed for researchers, developers, and students who require a precise model of traditional Chinese rime tables.

Installation

npm install uinh-kyaengh

Basic Usage

Creating a 韻鏡位置

A 韻鏡位置 can be instantiated directly from its coordinates (轉號, 上位, 右位). The object exposes a human-readable description that follows the traditional terminology of 韻鏡.

Here, we use the character 直 as an example, which is located at the 42th 轉, the 15th position counted from top to bottom, and the 7th position counted from right to left.

A facsimile of the character 直 in the 42th 轉 of Yunjing.

const 當前韻鏡位置 = new 韻鏡位置(42, 15, 7); // 「直」
console.log(當前韻鏡位置.描述); // 外轉第四十二圖·舌音第三位·入聲位·韻鏡三等

Converting 音韻地位 to 韻鏡位置

UinhKyaengh.js supports conversion from TshetUinh.js 音韻地位 objects into 韻鏡位置. This allows existing phonological analyses based on TshetUinh.js to be projected directly onto the 韻鏡 framework.

const 當前音韻地位 = 音韻地位.from描述('澄開三蒸入'); // 「直」
const 當前韻鏡位置 = 音韻地位2韻鏡位置(當前音韻地位);
console.log(當前韻鏡位置.坐標); // (42,15,7)

Converting 韻鏡位置 to 音韻地位

A 韻鏡位置 object can also be converted back into a TshetUinh.js 音韻地位. This makes the mapping between the two systems reversible within the supported domain.

const 當前韻鏡位置 = new 韻鏡位置(42, 15, 7); // 「直」
const 當前音韻地位 = 當前韻鏡位置.to音韻地位();
console.log(當前音韻地位.描述); // 澄開三蒸入

For more information on the API, please refer to the API Documentation.