{"id":15664458,"url":"https://github.com/gokatz/ember-appmetrics","last_synced_at":"2025-09-13T08:47:08.686Z","repository":{"id":57159717,"uuid":"86000408","full_name":"gokatz/ember-appmetrics","owner":"gokatz","description":"Ember library used to measure various metrics in your Ember app with ultra simple APIs.","archived":false,"fork":false,"pushed_at":"2018-10-02T15:36:20.000Z","size":84,"stargazers_count":16,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T05:27:54.044Z","etag":null,"topics":["appmetrics","performance-analysis","performance-metrics","performance-monitoring","real-user-monitoring","rum","timeline-marking"],"latest_commit_sha":null,"homepage":"","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/gokatz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-23T21:43:07.000Z","updated_at":"2021-11-11T20:25:59.000Z","dependencies_parsed_at":"2022-09-08T13:32:10.820Z","dependency_job_id":null,"html_url":"https://github.com/gokatz/ember-appmetrics","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/gokatz/ember-appmetrics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gokatz%2Fember-appmetrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gokatz%2Fember-appmetrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gokatz%2Fember-appmetrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gokatz%2Fember-appmetrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gokatz","download_url":"https://codeload.github.com/gokatz/ember-appmetrics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gokatz%2Fember-appmetrics/sbom","scorecard":{"id":434214,"data":{"date":"2025-08-11","repo":{"name":"github.com/gokatz/ember-appmetrics","commit":"cbc81adb290316f321cc87540397a241b304aaf1"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Code-Review","score":1,"reason":"Found 1/9 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":"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":"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":"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":"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":"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.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md: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 6 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-19T04:11:26.646Z","repository_id":57159717,"created_at":"2025-08-19T04:11:26.646Z","updated_at":"2025-08-19T04:11:26.646Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274941563,"owners_count":25378204,"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-09-13T02:00:10.085Z","response_time":70,"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":["appmetrics","performance-analysis","performance-metrics","performance-monitoring","real-user-monitoring","rum","timeline-marking"],"created_at":"2024-10-03T13:42:36.673Z","updated_at":"2025-09-13T08:47:08.658Z","avatar_url":"https://github.com/gokatz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ember-appmetrics 🐹\n\n[![Build Status](https://travis-ci.org/gokatz/ember-appmetrics.svg?branch=master)](https://travis-ci.org/gokatz/ember-appmetrics) [![Ember Observer Score](https://emberobserver.com/badges/ember-appmetrics.svg)](https://emberobserver.com/addons/ember-appmetrics) \n\nEmber library used to measure various metrics in your Ember app with ultra simple APIs. Especially useful for [RUM](https://en.wikipedia.org/wiki/Real_user_monitoring) in Ember SPAs.\n\n## Installation  💻\nFor Ember CLI \u003e= `0.2.3`:\n```shell\nember install ember-appmetrics\n```\nFor Ember CLI \u003c `0.2.3`:\n```shell\nember install:addon ember-appmetrics\n```\n\n## Compatibility\nThis addon is tested against the latest stable Ember version.\n\n## Usage  🏹\n\nInject the metrics service like `'metrics: Ember.inject.service()'` into the class where you want to measure the performance or use initializers if you are going with one-time injection.\n\nAddon provides three API for measuring the performance of a given period.\n- `start` : need to call this API with an event name as an argument to mark the starting point.\n- `end` : need to call this API with an event name as an argument to mark the ending point and it returns the duration for the corresponding mark.\n- `measure` : will return the latest calculated time for the given event. This API will be deprecated in the future release in the favor of `end` API as the `end` method itself return the duration.\n\n\n- `getAllMetrics` :\n\n1. will return an object containing all the previously measured metrics and its duration, if no arguments were passed.\n2. will return an array containing all the duration for the given metric name if the metric name is given as arguments.\n\n- `clearAllMetrics` : Will clear out all the performance marks and measures.  \n\n```js\n    this.get('metrics').start('accounts_page');\n    Ember.run.scheduleOnce('afterRender', () =\u003e {\n      let accountsPageRenderDuration = this.get('metrics').end('accounts_page');\n      console.log(accountsPageRenderDuration); // will return the duration to for this render performance in milliseconds.\n    });\n```\n\n## Browser support 🌏\n\nSince fall back mechanism of all level has been handled in the addon itself, the only thing addon need is that the browser must have Date API, which is supported in all major and minor browsers.\n\nPS: In Safari, the User Timing API (performance.mark()) is not available, so the DevTools timeline will not be annotated with marks.\n\n## Installation  💻\n\n* `git clone` this repository\n* `npm install`\n* `bower install`\n\n## Running 👟👟\n\n* `ember server`\n* Visit your app at http://localhost:4301.\n\n## Running Tests 💉\n\n* `ember test`\n* `ember test --server`\n\n## Building\n\n* `ember build`\n\nFor more information on using ember-cli, visit [http://www.ember-cli.com/](http://www.ember-cli.com/).\n\n## Contribution 👨‍👧‍👦\n\nMissing something? Let's work together to get that done 😉\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgokatz%2Fember-appmetrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgokatz%2Fember-appmetrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgokatz%2Fember-appmetrics/lists"}