{"id":33211853,"url":"https://rubylouvre.github.io/anu/","last_synced_at":"2025-11-21T05:03:30.145Z","repository":{"id":57307726,"uuid":"83402280","full_name":"RubyLouvre/anu","owner":"RubyLouvre","description":"the React16-compat library with hooks ","archived":false,"fork":false,"pushed_at":"2020-09-18T02:59:39.000Z","size":43032,"stargazers_count":3181,"open_issues_count":38,"forks_count":316,"subscribers_count":110,"default_branch":"master","last_synced_at":"2025-10-22T05:20:41.828Z","etag":null,"topics":["anu","react","wechat-mini-program","zhifubao-mini-program"],"latest_commit_sha":null,"homepage":"https://rubylouvre.github.io/anu/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RubyLouvre.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}},"created_at":"2017-02-28T07:20:30.000Z","updated_at":"2025-09-09T18:53:02.000Z","dependencies_parsed_at":"2022-09-17T21:54:51.571Z","dependency_job_id":null,"html_url":"https://github.com/RubyLouvre/anu","commit_stats":null,"previous_names":[],"tags_count":81,"template":false,"template_full_name":null,"purl":"pkg:github/RubyLouvre/anu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyLouvre%2Fanu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyLouvre%2Fanu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyLouvre%2Fanu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyLouvre%2Fanu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RubyLouvre","download_url":"https://codeload.github.com/RubyLouvre/anu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyLouvre%2Fanu/sbom","scorecard":{"id":122958,"data":{"date":"2025-08-11","repo":{"name":"github.com/RubyLouvre/anu","commit":"b99d90b707214093e3bf61a6e8ba269d0d1043d5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"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":"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":"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":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":1,"reason":"Found 2/16 approved changesets -- score normalized to 1","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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: 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":"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":"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 19 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-16T02:55:57.726Z","repository_id":57307726,"created_at":"2025-08-16T02:55:57.726Z","updated_at":"2025-08-16T02:55:57.726Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285560057,"owners_count":27192467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-21T02:00:06.175Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["anu","react","wechat-mini-program","zhifubao-mini-program"],"created_at":"2025-11-16T12:00:20.548Z","updated_at":"2025-11-21T05:03:30.140Z","avatar_url":"https://github.com/RubyLouvre.png","language":"JavaScript","funding_links":[],"categories":["Frameworks"],"sub_categories":["Notable"],"readme":"\n![anujs](https://github.com/RubyLouvre/anu/blob/master/lib/logo.png?raw=true)\n\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/Rubylouvre/anu/blob/master/LICENSE) \n[![npm version](https://img.shields.io/npm/v/anujs.svg?style=flat)](https://www.npmjs.com/package/anujs)\n[![CircleCI](https://circleci.com/gh/RubyLouvre/anu/tree/master.svg?style=svg)](https://circleci.com/gh/RubyLouvre/anu/tree/master)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/RubyLouvre/anu/pulls)\n\n\n\n```bash\nnpm install anujs\n```\n\nA mini React-like framework that is extremely compatible with  React16。\nQQ group：  370262116\n\n![size](https://wx1.sinaimg.cn/mw690/7109e87fly1frfqw50lduj21kw0rzk0h.jpg)\n\nsource： https://bundlephobia.com/\n\n### advantage：\n\n1. Support various new features of **React16**, Fragment, componentDidCatch, creactContext, createRef, forwardRef...\n2. The size is very small (only 3000 lines, gzip only 13kb, one third of React+ReactDOM)\n3. Pass more than 700 official unit tests  (other mini libraries can not run the official test)\n4. Share the huge ecology of React（React-router-dom, react-router-redux, react-lazy-load, react-hot-loader...）\n5. Supports 99% antd components (`antd`is an enterprise-class UI components in China).\n6. Excellent browser compatibility, easy to handle all kinds of business under IE6-8.\n7. It comes with a painless state manager **Rematch** and a handy router **Reach**.\n\n### nanachi\n\nnanachi已经交回原公司 qunar.com 维护了，不放在此仓库 ，详见 https://qunarcorp.github.io/anu\n\n### boilerplate \n\n\n* https://github.com/RubyLouvre/anu-ie8-example (IE8)\n* https://github.com/magicapple/anujs-webpack4-ie7-8\n* https://gitee.com/menhal/React_IE8_boilerplate\n* https://github.com/meeteason/react-webpack-ie6-boilerplate\n\n### License\n\nMIT\n\n### webpack config\n\n```js\nresolve: {\n    alias: {\n       'react': 'anujs',\n       'react-dom': 'anujs',\n         // For compatibility with IE please use the following configuration\n         // 'react': 'anujs/dist/ReactIE',\n         // 'react-dom': 'anujs/dist/ReactIE',\n         // 'redux': 'anujs/lib/ReduxIE', /// This is mainly for IE6-8, because of the poor performance of the isPlainObject method in the official source code.\n         // If you reference prop-types or create-react-class\n         // Need to add the following alias\n         'prop-types': 'anujs/lib/ReactPropTypes',\n         'create-react-class': 'anujs/lib/createClass',\n         // If you use the onTouchTap event on the mobile side\n         'react-tap-event-plugin': 'anujs/lib/injectTapEventPlugin',\n    }\n},\n```\n\n\n### Testing\n\n```\nnpm test\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/rubylouvre.github.io%2Fanu%2F","html_url":"https://awesome.ecosyste.ms/projects/rubylouvre.github.io%2Fanu%2F","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/rubylouvre.github.io%2Fanu%2F/lists"}