{"id":41709775,"url":"https://github.com/analysys/ans-javascript-sdk","last_synced_at":"2026-01-24T21:41:23.234Z","repository":{"id":57180426,"uuid":"172875756","full_name":"analysys/ans-javascript-sdk","owner":"analysys","description":"Analysys JavaScript SDK","archived":false,"fork":false,"pushed_at":"2025-09-19T02:51:42.000Z","size":21470,"stargazers_count":46,"open_issues_count":0,"forks_count":22,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-10-11T03:53:05.420Z","etag":null,"topics":["analysys","javascript-sdk"],"latest_commit_sha":null,"homepage":"https://docs.analysys.cn/ark/integration/sdk/js","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/analysys.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}},"created_at":"2019-02-27T08:32:56.000Z","updated_at":"2025-08-01T07:26:25.000Z","dependencies_parsed_at":"2023-10-20T17:04:28.261Z","dependency_job_id":"fdc8ed42-3674-4167-8396-e55d547333ec","html_url":"https://github.com/analysys/ans-javascript-sdk","commit_stats":{"total_commits":42,"total_committers":7,"mean_commits":6.0,"dds":0.5476190476190477,"last_synced_commit":"b83e0e581a807b68f579733b4235469480f3202c"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/analysys/ans-javascript-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/analysys%2Fans-javascript-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/analysys%2Fans-javascript-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/analysys%2Fans-javascript-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/analysys%2Fans-javascript-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/analysys","download_url":"https://codeload.github.com/analysys/ans-javascript-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/analysys%2Fans-javascript-sdk/sbom","scorecard":{"id":191070,"data":{"date":"2025-08-11","repo":{"name":"github.com/analysys/ans-javascript-sdk","commit":"83a214c8c92f79557107d105c67223b7c32632ee"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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 0/30 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/npm-publish.yml:1","Info: no jobLevel write permissions found"],"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/analysys/ans-javascript-sdk/npm-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/analysys/ans-javascript-sdk/npm-publish.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 5.0.3 not signed: https://api.github.com/repos/analysys/ans-javascript-sdk/releases/117708952","Warn: release artifact 5.0.2 not signed: https://api.github.com/repos/analysys/ans-javascript-sdk/releases/113949167","Warn: release artifact 4.5.5 not signed: https://api.github.com/repos/analysys/ans-javascript-sdk/releases/39261207","Warn: release artifact 5.0.3 does not have provenance: https://api.github.com/repos/analysys/ans-javascript-sdk/releases/117708952","Warn: release artifact 5.0.2 does not have provenance: https://api.github.com/repos/analysys/ans-javascript-sdk/releases/113949167","Warn: release artifact 4.5.5 does not have provenance: https://api.github.com/repos/analysys/ans-javascript-sdk/releases/39261207"],"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":"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'","Warn: branch protection not enabled for branch '5.0'"],"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"}}]},"last_synced_at":"2025-08-16T20:41:05.583Z","repository_id":57180426,"created_at":"2025-08-16T20:41:05.583Z","updated_at":"2025-08-16T20:41:05.583Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28737620,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T21:19:41.845Z","status":"ssl_error","status_checked_at":"2026-01-24T21:13:38.675Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["analysys","javascript-sdk"],"created_at":"2026-01-24T21:41:23.058Z","updated_at":"2026-01-24T21:41:23.183Z","avatar_url":"https://github.com/analysys.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Analysys JavaScript SDK [![NPM version][npm-image]][npm-url] [![License](https://img.shields.io/github/license/analysys/ans-javascript-sdk.svg)](https://github.com/analysys/ans-javascript-sdk/blob/master/LICENSE)  [![GitHub release](https://img.shields.io/github/release/analysys/ans-javascript-sdk.svg)](https://github.com/analysys/ans-javascript-sdk/releases) \n\n========\n\nThis is the official JavaScript SDK for Analysys.\n\n# JavaScript SDK目录说明：\n* demo——API调用演示\n* SDK——SDK文件\n* src——SDK源码\n* vue-demo——VUE框架API调用演示\n\n# 安装\n\n```\n    npm install ans-javascript-sdk --save\n```\n\n# JavaScript 基础说明：\n\nJS SDK 用于由 HTML 、 Css 及 Javascript 制作成的网站，集成前请先安装SDK\n\n## 快速集成\n如果您是第一次使用易观方舟产品，可以通过阅读本文快速了解此产品\n1. 选择集成方式\n目前我们提供了异步集成、同步集成的方式\n2. 设置初始化接口\n通过初始化代码的配置参数配置您的 AppKey\n3. 设置上传地址\n通过初始化代码的配置参数 uploadURL 设置您上传数据的地址。\n4. 设置需要采集的页面或事件\n通过手动埋点，设置需要采集的页面或事件。\n5. 打开Debug模式查看日志\n通过设置 Ddebug 模式，开(debugMode为1或2)/关(debugMode为0或不设置) log 查看日志。\n\n\u003e 通过以上步骤您即可验证SDK是否已经集成成功，具体使用方法参考：[易观方舟 JavaScript SDK 文档](https://docs.analysys.cn/ark/integration/sdk/js/js)\n\n\u003e 注意 SDK 可能不完全向前兼容，请查看版本更新说明 [Release及版本升级记录](https://github.com/analysys/ans-javascript-sdk/releases)。如果有说明不兼容的话，需要升级易观方舟对应的版本。 请根据需要前往 [Release](https://github.com/analysys/ans-javascript-sdk/releases) 里下载对应的文件\n\n## 版本升级记录\n请参见 [Release及版本升级记录](https://github.com/analysys/ans-wechat-sdk/releases)\n更多Api使用方法参考：[易观方舟 JavaScript SDK 文档](https://docs.analysys.cn/ark/integration/sdk/js/js)\n\n# 讨论\n* 微信号：nlfxwz\n* 钉钉群：30099866\n* 邮箱：nielifeng@analysys.com.cn\n  \n\n# License\n\n[gpl-3.0](https://www.gnu.org/licenses/gpl-3.0.txt)\n\n**禁止一切基于易观方舟 javascript 开源 SDK 的所有商业活动！**\n\n---\n\n[![NPM downloads][npm-downloads]][npm-url]\n\n\n[homepage]: https://github.com/analysys/ans-javascript-sdk\n[npm-url]: https://www.npmjs.com/package/ans-javascript-sdk\n[npm-image]: https://img.shields.io/npm/v/ans-javascript-sdk.svg?style=flat\n[npm-downloads]: https://img.shields.io/npm/dm/ans-javascript-sdk.svg?style=flat\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanalysys%2Fans-javascript-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanalysys%2Fans-javascript-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanalysys%2Fans-javascript-sdk/lists"}