# theajack/cnchar

🇨🇳 功能全面的汉字工具库 (拼音 笔画 偏旁 成语 语音 可视化等) (Chinese character util)

Repository: https://github.com/theajack/cnchar
Canonical: https://ross.abutalabs.com/products/cnchar
Homepage: https://theajack.github.io/cnchar
Language: TypeScript
License: MIT
License Family: permissive
Topics: spell-stroke, draw, chinese-characters, pinyin, speak, voice-recognition
Last push: 2026-08-02T00:09:33+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 8, longevity 100
- inputs: {"age_days": 2341, "days_push": 32, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3083, forks 341 (observed 2026-08-28T04:07:41.960642+00:00)

## What it is
cnchar is a comprehensive TypeScript library for Chinese character processing, offering pinyin conversion, stroke counts, stroke order drawing, radicals, idioms, traditional/simplified conversion, and speech synthesis/recognition. It works across browsers, Node.js, mini-programs, and mobile frameworks with a plugin-based, modular design.

## Use cases
- get the pinyin of Chinese characters including polyphonic words
- count strokes and render stroke order animations for hanzi
- convert between simplified and traditional Chinese characters
- look up radicals and character structure of Chinese characters
- add Chinese text-to-speech and speech recognition to a web app
- sort or generate Chinese characters by pinyin or stroke count
- get wubi input codes for Chinese characters

## When to choose
- you need rich Chinese character utilities (pinyin, strokes, radicals, drawing) in JavaScript/TypeScript
- you want one library that runs in browser, Node.js, mini-programs, and ReactNative/Electron
- you need offline or custom-deployable Chinese character data with modular package sizes

## When to avoid
- you need full NLP like segmentation or translation rather than character-level utilities
- your project is not JavaScript/TypeScript based
- you need machine-translation-grade linguistic analysis of Chinese text

## Facets
- artifact type: library
- maturity: active
- function: nlp, speech-recognition, tts, image-processing, sdk
- domain: developer-tools, cross-platform
- platform: browser, cross-platform
- tags: chinese-characters, pinyin, stroke-order, hanzi, traditional-chinese, wubi, text-to-speech, speech-to-text, typescript, natural-language-processing, localization, nodejs, web-server, electron

## Member repositories
- theajack/cnchar (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:41.960642+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:46:31.077132+00:00, confidence not recorded.
  - readme: https://github.com/theajack/cnchar (fetched 2026-08-28T04:07:41.960642+00:00, sha 4a9b53a79b62)
  - homepage: https://theajack.github.io/cnchar (fetched 2026-08-29T09:43:06.482098+00:00, sha 73dee53493f1)
  - registry_npm: https://registry.npmjs.org/cnchar (fetched 2026-08-29T09:43:06.485211+00:00, sha aff65c634b68)
- Data as of 2026-08-30T08:39:29.467469+00:00.
