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

table-of-indexing-chinese-character-components

v0.0.0

Published

Machine-readable JSON of GF 0011-2009《汉字部首表》 (Table of Indexing Chinese Character Components): 201 main radicals, 83 variant forms, and 69 cross-reference groupings.

Readme

table-of-indexing-chinese-character-components

Machine-readable JSON of GF 0011-2009《汉字部首表》 (Table of Indexing Chinese Character Components), the PRC national standard listing the radicals used to index Chinese characters.

The data covers:

  • 201 main radicals (主部首)
  • 83 variant forms (附形部首) — traditional, simplified-variant, and dependent forms
  • 69 cross-reference groupings (附形参照) — each main radical paired with its variant forms

The source is the plain-text file in data/GF 0011-2009《汉字部首表》.txt. Run bun run parse to regenerate radicals.json.

Install

npm install table-of-indexing-chinese-character-components

Usage

import radicals from "table-of-indexing-chinese-character-components";

console.log(radicals.main.length);      // 201
console.log(radicals.variant.length);   // 83
console.log(radicals.reference.length); // 69

console.log(radicals.main[0]);
// { radical: "一", strokeCount: 1 }

The raw JSON is exposed as a subpath export if you'd rather import it directly:

import radicals from "table-of-indexing-chinese-character-components/radicals.json" with { type: "json" };

Shape

interface RadicalEntry {
  radical: string;       // e.g. "一", "亻", "邑"
  strokeCount: number;   // e.g. 1, 4, 8
  notes?: string;        // Chinese note from the source file (header explanation
                         // and/or inline positional qualifier, e.g. "在左", "在右")
}

interface ReferenceEntry extends RadicalEntry {
  variants: string[];    // variant forms grouped under this main radical
}

interface RadicalsData {
  source: "GF 0011-2009《汉字部首表》";
  main: RadicalEntry[];       // 201 main radicals (主部首)
  variant: RadicalEntry[];    // 83 variant forms (附形部首)
  reference: ReferenceEntry[];// 69 cross-reference groupings (附形参照)
}

notes are extracted verbatim from the source file — both the # 说明 header block (e.g. 屮末笔改成竖撇, 车字旁,车末笔改成提(暂未找到字)) and the inline parenthetical qualifiers on reference rows (e.g. 在左, 在右).

License

MIT