{"id":37158647,"url":"https://github.com/chanind/hanzi-writer-miniprogram","last_synced_at":"2026-01-14T18:56:51.053Z","repository":{"id":34923565,"uuid":"190894377","full_name":"chanind/hanzi-writer-miniprogram","owner":"chanind","description":"Wechat Miniprogram plugin for Hanzi Writer (微信小程序组件)","archived":true,"fork":false,"pushed_at":"2024-02-20T13:59:51.000Z","size":251,"stargazers_count":97,"open_issues_count":20,"forks_count":35,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-11T12:42:25.134Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://chanind.github.io/hanzi-writer","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chanind.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-06-08T14:01:17.000Z","updated_at":"2025-08-31T00:21:56.000Z","dependencies_parsed_at":"2025-09-09T23:23:06.210Z","dependency_job_id":"d37e989e-b980-437b-a60d-f82166f45ab0","html_url":"https://github.com/chanind/hanzi-writer-miniprogram","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/chanind/hanzi-writer-miniprogram","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanind%2Fhanzi-writer-miniprogram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanind%2Fhanzi-writer-miniprogram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanind%2Fhanzi-writer-miniprogram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanind%2Fhanzi-writer-miniprogram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chanind","download_url":"https://codeload.github.com/chanind/hanzi-writer-miniprogram/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanind%2Fhanzi-writer-miniprogram/sbom","scorecard":{"id":273652,"data":{"date":"2025-08-11","repo":{"name":"github.com/chanind/hanzi-writer-miniprogram","commit":"70e7504d2008f1b01bcfe0ada15ae825e633ad36"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 1/23 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T13:57:29.543Z","repository_id":34923565,"created_at":"2025-08-17T13:57:29.543Z","updated_at":"2025-08-17T13:57:29.543Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28431018,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-14T18:56:49.057Z","updated_at":"2026-01-14T18:56:51.045Z","avatar_url":"https://github.com/chanind.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hanzi Writer Wechat Miniprogram Plugin (微信小程序组件)\n\n\n[![CircleCI](https://img.shields.io/circleci/project/github/chanind/hanzi-writer-miniprogram/master.svg)](https://circleci.com/gh/chanind/hanzi-writer-miniprogram/tree/master)\n[![npm](https://img.shields.io/npm/v/hanzi-writer-miniprogram.svg)](https://www.npmjs.com/package/hanzi-writer-miniprogram)\n\n\n\u003e [!WARNING]\n\u003e This miniprogram plugin is no longer maintained. The last version can be installed with `npm install hanzi-writer-miniprogram@beta`.\n\n\nThis component can be used in a Wechat miniprogram to add Hanzi Writer for character stroke animations and quizzing.\n\n## Installation\n\n```\nnpm install hanzi-writer-miniprogram\n```\n\n## Usage\n\nIn your `page.json`, first add the following to enable the `hanzi-writer-view` component:\n\n```json\n{\n  \"usingComponents\": {\n    \"hanzi-writer-view\": \"hanzi-writer-miniprogram/hanzi-writer-view\"\n  }\n}\n```\n\nThen, add a `hanzi-writer-view` component to your page. You must add an `id`, `width`, and `height`, like below:\n```\n\u003chanzi-writer-view id=\"hz-writer\" width=\"300\" height=\"300\" /\u003e\n```\n\nThen in your page, you can control the view via `createHanziWriterContext(options)`, like below:\n\n```javascript\nimport createHanziWriterContext from 'hanzi-writer-miniprogram';\n\nPage({\n  onLoad: function() {\n    this.writerCtx = createHanziWriterContext({\n      id: 'hz-writer',\n      character: '你',\n      page: this,\n    });\n\n    // You can call any normal HanziWriter method here\n    this.writerCtx.loopCharacterAnimation();\n  }\n});\n```\n\nThis method requires the `id` from the `hanzi-writer-view` component in wxml, and the current `page`.\n\nBy default, character data is loaded from the hanzi-writer CDN, so you'll need to add https://cdn.jsdelivr.net to your [list of approved domain names](https://developers.weixin.qq.com/miniprogram/dev/framework/ability/network.html). Otherwise, you can provide your own `charDataLoader` function and load character data however you like. You can [read more about loading character data here](https://chanind.github.io/hanzi-writer/docs.html#loading-character-data-link).\n\nYou can also pass any other normal Hanzi Writer options to `createHanziWriterContext`, except for `width` and `height` which are set in the `hanzi-writer-view` component. You can see a [full list of options here](https://chanind.github.io/hanzi-writer/docs.html#api-link).\n\n## Further Documentations\n\nFor more info and docs on Hanzi Writer check out https://chanind.github.io/hanzi-writer\n\n## Data source\n\nThe chinese character svg and stroke order data used by Hanzi Writer is derived from the [Make me a Hanzi](https://github.com/skishore/makemeahanzi) project with some slight tweaks. The data can be found in the [Hanzi Writer Data](https://github.com/chanind/hanzi-writer-data) repo. There's a visualizer for this data [here](https://chanind.github.io/hanzi-writer-data).\n\n## Contributing\n\nPull 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:\n\n```\nyarn install\n```\n\n## LICENSE\n\nHanzi Writer is released under an [MIT](https://raw.githubusercontent.com/chanind/hanzi-writer/master/LICENSE) license.\n\nThe Hanzi Writer data comes from the [Make Me A Hanzi](https://github.com/skishore/makemeahanzi) project, which extracted the data from fonts by [Arphic Technology](http://www.arphic.com/), 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](https://raw.githubusercontent.com/chanind/hanzi-writer-data/master/ARPHICPL.TXT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanind%2Fhanzi-writer-miniprogram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchanind%2Fhanzi-writer-miniprogram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanind%2Fhanzi-writer-miniprogram/lists"}