{"id":20698613,"url":"https://github.com/mangotsing/shatter_monitor","last_synced_at":"2025-10-14T01:31:44.196Z","repository":{"id":56339534,"uuid":"312255253","full_name":"MangoTsing/shatter_monitor","owner":"MangoTsing","description":"A tiny tool for Site Error \u0026 Performance \u0026 Behavior Monitor.It is a shatter monitor tool, but it can be combined to form a complete tool.","archived":false,"fork":false,"pushed_at":"2020-12-29T08:25:12.000Z","size":180,"stargazers_count":1,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-28T23:51:36.008Z","etag":null,"topics":["browser-monitor","javascript","monitor","tiny"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/MangoTsing.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":"2020-11-12T11:23:22.000Z","updated_at":"2020-12-29T08:25:15.000Z","dependencies_parsed_at":"2022-08-15T16:50:57.000Z","dependency_job_id":null,"html_url":"https://github.com/MangoTsing/shatter_monitor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MangoTsing/shatter_monitor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MangoTsing%2Fshatter_monitor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MangoTsing%2Fshatter_monitor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MangoTsing%2Fshatter_monitor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MangoTsing%2Fshatter_monitor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MangoTsing","download_url":"https://codeload.github.com/MangoTsing/shatter_monitor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MangoTsing%2Fshatter_monitor/sbom","scorecard":{"id":89295,"data":{"date":"2025-08-11","repo":{"name":"github.com/MangoTsing/shatter_monitor","commit":"4db1c1c46e2d1e1e78bb55bc582dcdf295a20eec"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":-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 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":"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":"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":"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":"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":"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":"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":"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"}}]},"last_synced_at":"2025-08-15T07:35:29.207Z","repository_id":56339534,"created_at":"2025-08-15T07:35:29.207Z","updated_at":"2025-08-15T07:35:29.207Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017492,"owners_count":26086083,"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-10-13T02:00:06.723Z","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":["browser-monitor","javascript","monitor","tiny"],"created_at":"2024-11-17T00:25:59.966Z","updated_at":"2025-10-14T01:31:44.168Z","avatar_url":"https://github.com/MangoTsing.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n    \u003cimg src=\"https://p0.ssl.qhimg.com/t01f02e9ee1a463b5bf.png\"/\u003e\n\u003c/h1\u003e\n\nA tiny tool for Site **Error \u0026 Performance \u0026 User Behavior** Monitor.\n\nIt is a shatter monitor tool, but it can be combined to form a complete tool.\n\nThere is [release @1.0.11](https://cdn.jsdelivr.net/npm/shatter_monitor@1.0.11/build/index.min.js).\n\nSpecific options information may be viewed in [index.ts file](https://github.com/MangoTsing/shatter_monitor/blob/master/src/types/index.ts)\n\nMore features(like hooks) in development...\n\n## Next\n\n- Perfect Beacon method\n- Merge Many Same Errors happened in a moment\n- Add more hooks\n- Support Performance Monitor (a part of shatter_monitor)\n- Support Behavior Monitor (a part of shatter_monitor)\n\n## Usage\n\n### CDN\n\n```\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/shatter_monitor@1.0.9/build/index.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\nconst { ShatterInit } = shatter\nconst Shatter = new ShatterInit({\n    dsn: 'https://your.site.com',\n    appkey: 'mangotsing',\n    debug: false,\n    beforeSendData: () =\u003e {\n        console.log('test')\n        return true\n    },\n    usage: 'all', // or ['ErrorForShatter', 'PerformanceForShatter', 'BehaviorForShatter']\n    onlyImg: true,\n    blockConsole: true\n});\n\u003c/script\u003e\n```\n\n### Vue\n\nIn the Vue Project, In addition to the original function, the `$report` method is also mounted on `this`\n\nYou can use it for your **async** methods Error Report, like this:\n\n`this.$report(params: SendType)`\n\nSuggest `Vue Project` use `blockConsole: true`, otherwise `vue warn` will cause repeated errors.\n\n```\n//terminal\nnpm install --save shatter_monitor\n\n// main.js\nimport { ShatterErrorVue } from 'shatter_monitor'\n\n// vue 2.x\n\nVue.use(ShatterErrorVue, {\n    dsn: 'https://your.site.com',\n    appkey: 'mangotsing',\n    debug: false,\n    beforeSendData: () =\u003e {\n        console.log('test')\n        return true\n    },\n    blockConsole: true\n    onlyImg: true,\n    blockTry: true\n})\n\n// or vue-next\n\nconst app = createApp()\n\napp.use(ShatterErrorVue, {\n    dsn: 'https://your.site.com',\n    appkey: 'mangotsing',\n    debug: false,\n    beforeSendData: () =\u003e {\n        console.log('test')\n        return true\n    },\n    onlyImg: true,\n    blockTry: true\n})\n\n```\n\nIf your browser support `navigator.sendBeacon` function, will use it.\n\nOtherwise use `Image()` to send a `get` request for monitor.\n\n## Dev\n\n```\n\nyarn\n\nyarn watch\n\ncd examples \u0026\u0026 http-server // 8080\n\n// new terminal\n\ncd examples \u0026\u0026 http-server // 8081\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmangotsing%2Fshatter_monitor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmangotsing%2Fshatter_monitor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmangotsing%2Fshatter_monitor/lists"}