Skip to content
Switch branches/tags

Latest commit

* adding a method to updateDimensions of an existing writer without replacing state

* reorganizing methods

* updating caniuse to keep tests happy

* adding a setPositioner test to keep codecov happy

Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Hanzi Writer

CircleCI Codecov npm minzip

Hanzi Writer is a free and open-source javascript library for Chinese character stroke order animations and stroke order practice quizzes. Works with both simplified and traditional characters.

Live demo

Getting Started and Documentation

For more info and instructions on getting started check out

Data source

The chinese character svg and stroke order data used by Hanzi Writer is derived from the Make me a Hanzi project with some slight tweaks. The data can be found in the Hanzi Writer Data repo. There's a visualizer for this data here.


Pull requests are welcome! If you would like to contribute code, you'll need to be able to build the project locally. After cloning the Hanzi Writer repo, you can get it set up by running:

yarn install

You can run tests with yarn test and you can build the project with yarn build.


Hanzi Writer is released under an MIT license.

The Hanzi Writer data comes from the Make Me A Hanzi project, which extracted the data from fonts by Arphic Technology, a Taiwanese font forge that released their work under a permissive license in 1999. You can redistribute and/or modify this data under the terms of the Arphic Public License as published by Arphic Technology Co., Ltd. A copy of this license can be found in ARPHICPL.TXT.