vinta/pangu.js
Opinionated paranoid text spacing in JavaScript observed · 2026-08-28
Health v2 · maintenance only
76/100
- Activity 98
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5307
- days_rel: n/a
- days_push: 13
- n_releases_24m: 0
Adoption not part of the score
4803 stars · 311 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
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
library · maturity active
parser developer-tools developer-tools browser browser-extension text-spacing cjk typography pangu-spacing text-processing natural-language-processing localization nodejs typescript
2 sources
- readme: https://github.com/vinta/pangu.js · fetched 2026-08-28 · b8cc3c571371
- homepage: https://chrome.google.com/webstore/detail/paphcfdffjnbcgkokihcdjliihicmbpd · fetched 2026-08-29 · 4639a6f218b5
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| vinta/pangu.js | main | 76 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem