What does HackerNews think of makemeahanzi?
Free, open-source Chinese character data
Language:
JavaScript
This looks very much like Make Me A Hanzi (MMAH), which is exactly the same (Chinese) characters. It's just that Japanese knows those as Kanji.
Author references the makemehanzi project: https://github.com/skishore/makemeahanzi
For stroke-level information, you'll probably want something like https://github.com/skishore/makemeahanzi (for Chinese) or https://github.com/kanjivg/kanjivg (for Japanese).