# vinta/pangu.js

Opinionated paranoid text spacing in JavaScript

Repository: https://github.com/vinta/pangu.js
Canonical: https://ross.abutalabs.com/products/pangujs
Homepage: https://chrome.google.com/webstore/detail/paphcfdffjnbcgkokihcdjliihicmbpd
Language: TypeScript
License: MIT
License Family: permissive
Topics: pangu, nodejs, text-spacing, chrome-extensions, javascipt, pangu-spacing, typescript, text-autospace
Last push: 2026-08-20T04:29:34+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 35, longevity 100
- inputs: {"age_days": 5307, "days_push": 13, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4803, forks 311 (observed 2026-08-28T04:09:00.211736+00:00)

## What it is
Pangu.js is a JavaScript/TypeScript library that automatically inserts spacing between CJK characters and half-width English letters, numbers, and symbols ('paranoid text spacing'). It ships as an npm package with a DOM-aware browser build and a Chrome extension.

## Use cases
- add spaces between Chinese and English text automatically
- format mixed CJK and Latin typography on web pages
- clean up text with no space between Chinese and numbers
- auto-space page content via a Chrome extension
- normalize spacing in user-generated Chinese content

## When to choose
- you need programmatic CJK/Latin text spacing in Node.js or the browser
- you want a browser extension that auto-spaces any webpage
- you need a battle-tested library with ports in many languages

## When to avoid
- you need general-purpose full text formatting or linting beyond spacing
- you work only with pure English or pure CJK text with no mixed content

## Facets
- artifact type: library
- maturity: active
- function: parser, developer-tools
- domain: developer-tools
- platform: browser, browser-extension
- tags: text-spacing, cjk, typography, pangu-spacing, text-processing, natural-language-processing, localization, nodejs, typescript

## Member repositories
- vinta/pangu.js (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:00.211736+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:18:37.068400+00:00, confidence not recorded.
  - readme: https://github.com/vinta/pangu.js (fetched 2026-08-28T04:09:00.211736+00:00, sha b8cc3c571371)
  - homepage: https://chrome.google.com/webstore/detail/paphcfdffjnbcgkokihcdjliihicmbpd (fetched 2026-08-29T09:01:54.462422+00:00, sha 4639a6f218b5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
