← all repositories

vinta/pangu.js

JavaScript library and Chrome extension that inserts spaces between CJK and Latin/digit characters, with optional on-device LLM semantic judgment.

4.8k stars TypeScript Coding AssistantsLLMOps · Eval
pangu.js
Collecting fresh signals — velocity needs a few days of history.
star history

pangu.js automatically inserts whitespace between Chinese characters and adjacent Latin letters, digits, and symbols in web pages. It ships as a Chrome extension and an npm library. A newer mode uses the browser’s built-in Prompt API with Gemini Nano to perform on-device semantic analysis, deciding where spacing improves readability rather than relying solely on character-class rules.

Frequently asked

What is vinta/pangu.js?
JavaScript library and Chrome extension that inserts spaces between CJK and Latin/digit characters, with optional on-device LLM semantic judgment.
Is pangu.js open source?
Yes — vinta/pangu.js is open source, released under the MIT license.
What language is pangu.js written in?
vinta/pangu.js is primarily written in TypeScript.
How popular is pangu.js?
vinta/pangu.js has 4.8k stars on GitHub.
Where can I find pangu.js?
vinta/pangu.js is on GitHub at https://github.com/vinta/pangu.js.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.