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-page-text

v0.20260501.1

Published

Wiktionary page text for every Han-script character (Script_Extensions=Han), extracted from the English Wiktionary dump and exposed via per-character dynamic imports.

Readme

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

Wiktionary page text for every Han-script character (Unicode Script_Extensions=Han), 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-page-text

Usage

import wiktionaryPages from "en.wiktionary.org-wiki-scx-han-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-page-text";
// WiktionaryPageValue = string | [string]

How the data is generated

scripts/parse.ts streams the Wiktionary pages-articles-multistream dump, scans the index for titles whose every code point matches \p{Script_Extensions=Han}, decompresses only the bz2 sub-streams that contain those titles, and 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.

License

MIT