{"id":28609931,"url":"https://github.com/kredde/ember-error-tracker","last_synced_at":"2025-09-10T17:40:38.991Z","repository":{"id":34649203,"uuid":"178847922","full_name":"kredde/ember-error-tracker","owner":"kredde","description":"Custom error and event tracking for Ember.js apps","archived":false,"fork":false,"pushed_at":"2025-05-06T12:22:11.000Z","size":8449,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-06T13:33:24.079Z","etag":null,"topics":["ember","ember-addon","ember-cli-addon","error","error-logging","exception","logging"],"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/kredde.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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}},"created_at":"2019-04-01T11:22:49.000Z","updated_at":"2025-05-06T12:22:09.000Z","dependencies_parsed_at":"2023-10-03T16:07:50.156Z","dependency_job_id":"33524203-fa96-4ed8-ab2b-9164891ed5b2","html_url":"https://github.com/kredde/ember-error-tracker","commit_stats":{"total_commits":304,"total_committers":11,"mean_commits":"27.636363636363637","dds":0.4638157894736842,"last_synced_commit":"99f81bcd07e58fcab03f7b7fe4054548ef8e1800"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kredde%2Fember-error-tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kredde%2Fember-error-tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kredde%2Fember-error-tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kredde%2Fember-error-tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kredde","download_url":"https://codeload.github.com/kredde/ember-error-tracker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kredde%2Fember-error-tracker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259265435,"owners_count":22831163,"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","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":["ember","ember-addon","ember-cli-addon","error","error-logging","exception","logging"],"created_at":"2025-06-11T22:10:45.791Z","updated_at":"2025-06-11T22:10:48.982Z","avatar_url":"https://github.com/kredde.png","language":"JavaScript","readme":"# Ember Error Tracker\n[![NPM](https://nodei.co/npm/ember-error-tracker.png?compact=true)](https://nodei.co/npm/ember-error-tracker/)\n\n\n[![Build Status](https://flat.badgen.net/travis/kredde/ember-error-tracker)](https://travis-ci.org/kredde/ember-error-tracker)\n[![Maintainability](https://api.codeclimate.com/v1/badges/7de05d9a978afadff3e8/maintainability)](https://codeclimate.com/github/kredde/ember-error-tracker/maintainability)\n![license-badge](https://flat.badgen.net/npm/license/ember-error-tracker)\n\n\nember-error-tracker enables the handling and logging of uncaught errors. The error is logged along with a specified number of events that led to it and can be consumed either by the console or a custom api endpoint.\n\nCompatibility\n------------------------------------------------------------------------------\n\n* Ember.js v2.18 or above\n* Ember CLI v2.13 or above\n\n\nInstallation\n------------------------------------------------------------------------------\n\n```\nember install ember-error-tracker\n```\n\n\nGetting started\n------------------------------------------------------------------------------\n\nAdd the configuration to your `config/environment.js`.\n\nExample:\n```javascript\n'ember-error-tracker': {\n  maxLogStackSize: 10, // the number of events to track\n  listeners: {\n    ember: {\n      rsvp: true,\n      ember: true,\n      actions: true,\n    },\n    window: true,\n  },\n  events: ['click', 'input', 'scroll'], // you can add any js events\n  consumers: {\n    console: true,\n    api: { // set to false if you just want to use it locally\n      endPoint: 'http://your.api/log'\n      key: 'SUPERSECRETKEY'\n    },\n  }\n}\n```\n\nEnable babel source-maps in your `ember-cli-build.js` if you want to find out the original position of the\nerror.\n\nYou might only want to enable this in production since it affects building time and can slow down your\nhot reload times.\n\n```javascript\n'use strict';\n\nconst EmberApp = require('ember-cli/lib/broccoli/ember-app');\n\nmodule.exports = function (defaults) {\n  let app = new EmberApp(defaults, {\n    babel: {\n      sourceMaps: 'inline'\n    },\n    sourcemaps: {\n      enabled: true,\n      extensions: ['js']\n    }\n  });\n}\n\n```\nAPI endpoint payload\n------------------------------------------------------------------------------\nThe payload that is sent to your custom API endpoint will look like this (depending on your configuration).\n\n```javascript\nconst payload = \n{\n  error: {\n    source: String, // error source e.g.: 'ember', 'window' etc.\n    timestamp: Number,\n    error: {\n      message: String,\n      stack: String // stracktrace that can be parsed (https://www.npmjs.com/package/stacktrace-parser)\n    }\n  },\n  events: [{\n    type: String,\n    timestamp: Number,\n    location: String, // the path on which the error occured e.g.: '/'\n    target: {\n      selector: String,\n      text: String // the text inside the selector\n    }\n  }],\n  userAgent: String, // can be parsed (https://www.npmjs.com/package/bowser)\n  screen: {\n    resolution: {\n      width: Number,\n      height: Number\n    },\n    viewPort: {\n      width: Number,\n      height: Number.\n    }\n  }\n}\n```\n\nSource maps to find original error position\n------------------------------------------------------------------------------\nTo get the original position of the error in the source code you can use\n[mozilla/source-maps](https://github.com/mozilla/source-map). The location\nof the source map in a production build can be found at the end of the minified\njs file.\n\nContributing\n------------------------------------------------------------------------------\n\nSee the [Contributing](CONTRIBUTING.md) guide for details.\n\n\nLicense\n------------------------------------------------------------------------------\n\nThis project is licensed under the [MIT License](LICENSE.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkredde%2Fember-error-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkredde%2Fember-error-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkredde%2Fember-error-tracker/lists"}