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

en.wiktionary.org-wiki-scx-han-ids-page-text

v0.20260501.0

Published

Wiktionary page text for every Han-script character (Script_Extensions=Han) plus every component recursively referenced from those pages' ids= templates, extracted from the English Wiktionary dump and exposed via per-character dynamic imports.

Readme

en.wiktionary.org-wiki-scx-han-ids-page-text

Wiktionary page text for every Han-script character (Unicode Script_Extensions=Han), plus every component recursively referenced from those pages' ids= template fields, extracted from the English Wiktionary XML dump and shipped as per-character dynamic imports.

Each character maps to an async function that lazy-loads only the JSON bucket it lives in, so consumers pay for the characters they actually look up — not the entire dataset.

Install

npm install en.wiktionary.org-wiki-scx-han-ids-page-text

Usage

import wiktionaryPages from "en.wiktionary.org-wiki-scx-han-ids-page-text";

const value = await wiktionaryPages["漢"]();
// value is either the raw wikitext (string) or a redirect target
// represented as a single-element tuple: [string].

Return value shape

  • string — the raw wikitext of that character's Wiktionary page.
  • [string] — the page is a redirect; the array contains the normalized target title.
import type { WiktionaryPageValue } from "en.wiktionary.org-wiki-scx-han-ids-page-text";
// WiktionaryPageValue = string | [string]

How the data is generated

scripts/parse.ts streams the Wiktionary pages-articles-multistream dump and:

  1. Scans the index for titles whose every code point matches \p{Script_Extensions=Han} — the seed set.
  2. Decompresses only the bz2 sub-streams that contain seed titles and extracts those pages.
  3. Parses every fetched page's {{...|ids=…}} template fields (IDS = Ideographic Description Sequence, the Unicode notation that uses Ideographic Description Characters like / / to describe how a Han character decomposes into components), gathers each single component code point referenced inside (skipping the IDCs themselves at U+2FF0U+2FFF and U+31EF, plus ASCII, CJK punctuation, and fullwidth forms), and recursively fetches any newly-referenced titles that exist in the dump's index.
  4. Repeats step 3 until no new references are discovered, then writes:
  • unicode/<hi-byte>xx.json — bucketed page data, keyed by the high byte of each title's first code point.
  • index.js / index.d.ts — the default-exported wiktionaryPages map of character → dynamic import.

To regenerate from a fresh dump:

node --experimental-strip-types scripts/parse.ts \
  path/to/enwiktionary-YYYYMMDD-pages-articles-multistream.xml.bz2 \
  path/to/enwiktionary-YYYYMMDD-pages-articles-multistream-index.txt.bz2

Requires bzip2 on PATH.

Non-Han glyphs pulled in via ids=

Versus en.wiktionary.org-wiki-scx-han-page-text, this package additionally ships every non-Han glyph that appears inside a Han page's ids= field. Wiktionary IDS authors frequently borrow Kana, Bopomofo, geometric shapes, etc. as visual stand-ins for components that have no encoded code point of their own. The Referenced by column lists Han titles whose ids= field contains the glyph.

| Char | Codepoint | Unicode block | Referenced by | |---|---|---|---| | ʓ | U+0293 | IPA Extensions | 𠍋 | | | U+0978 | Devanagari | 𦹗 | | | U+223E | Mathematical Operators | 𢀓 | | | U+25C7 | Geometric Shapes | 𠄷 | | | U+25CA | Geometric Shapes | 𤕈 | | | U+27BF | Dingbats | 𡦹 | | | U+306F | Hiragana | 𭁇 | | | U+30B3 | Katakana | 𠁲, 𠂶, 𠂼 … (51 total) | | | U+30B5 | Katakana | 𬻀 | | | U+30B9 | Katakana | 𢀖, 𬽡, 𮌇 | | | U+30BF | Katakana | | | | U+30C1 | Katakana | | | | U+30C4 | Katakana | 𫝂 | | | U+30C6 | Katakana | 𫝆 | | | U+30CE | Katakana | 𣘺 | | | U+30E2 | Katakana | 𪜈 | | | U+30E6 | Katakana | 𠀌, 𠇛, 𠇡 … (15 total) | | | U+30EA | Katakana | 𠇬, 𱍬, 𱍭 … (9 total) | | | U+3123 | Bopomofo | 𪜀, | | | U+317F | Hangul Compatibility Jamo | | | | U+31B3 | Bopomofo Extended | 𠇇 | | 𛀲 | U+1B032 | Kana Supplement | 𠆭 | | 𛂦 | U+1B0A6 | Kana Supplement | 𭤪 |

License

MIT