Add animated Chinese character stroke-order diagrams to a language-learning website with a few lines of JavaScript
Build a stroke-order quiz where learners trace characters on mobile and receive correct or incorrect feedback
Display both simplified and traditional Chinese characters with proper animations in any browser-based app
Embed Hanzi Writer in a React or Vue component to teach handwriting to beginners without a backend
Stroke data ships as a separate dataset under the Arphic Public License, both the library and the dataset are needed.
Hanzi Writer is a JavaScript library for animating the stroke order of Chinese characters and running practice quizzes on a web page. When a learner wants to see how to write a character correctly, the library draws each stroke in sequence, showing the proper direction and order. It supports both simplified and traditional Chinese characters. The library can be added to any website or web application. A developer points it at a character, and it handles the drawing automatically. There is also a quiz mode where learners trace strokes themselves and receive feedback. The stroke data comes from a separate open-source dataset called Make Me A Hanzi, which in turn traces back to fonts released by a Taiwanese company called Arphic Technology in 1999. That data is stored in a companion repository and is covered by its own license, the Arphic Public License. The Hanzi Writer library itself is available under the MIT license. The project is minimal and focused. It does one thing: show how Chinese characters are written. There is no backend, no account system, and no dependency on any larger framework. The README is brief and points to a separate documentation site and a live demo for anyone who wants to see it in action before adding it to a project.
← chanind on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.