{"id":15638874,"url":"https://github.com/patrickjs/angular-raven","last_synced_at":"2025-10-07T13:59:10.467Z","repository":{"id":57178982,"uuid":"12965989","full_name":"PatrickJS/angular-raven","owner":"PatrickJS","description":"A Raven.js / Sentry wrapper for Angular.js","archived":false,"fork":false,"pushed_at":"2017-04-18T06:48:05.000Z","size":74,"stargazers_count":88,"open_issues_count":4,"forks_count":18,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-03T03:26:30.748Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/PatrickJS.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":"2013-09-20T05:03:32.000Z","updated_at":"2025-07-23T03:33:11.000Z","dependencies_parsed_at":"2022-09-09T19:00:42.599Z","dependency_job_id":null,"html_url":"https://github.com/PatrickJS/angular-raven","commit_stats":null,"previous_names":["gdi2290/angular-raven"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/PatrickJS/angular-raven","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJS%2Fangular-raven","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJS%2Fangular-raven/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJS%2Fangular-raven/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJS%2Fangular-raven/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PatrickJS","download_url":"https://codeload.github.com/PatrickJS/angular-raven/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickJS%2Fangular-raven/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278786671,"owners_count":26045588,"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-07T02:00:06.786Z","response_time":59,"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":[],"created_at":"2024-10-03T11:23:34.873Z","updated_at":"2025-10-07T13:59:10.448Z","avatar_url":"https://github.com/PatrickJS.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# angular-raven [![Build Status](https://travis-ci.org/gdi2290/angular-raven.png?branch=master)](https://travis-ci.org/gdi2290/angular-raven)\nA Raven.js / Sentry wrapper for Angular.js\n\n#How do I add this to my project?\n\nYou can download angular-raven by:\n\n* (prefered) Using bower and running `bower install angular-raven --save`\n* Using npm and running `npm install angular-raven --save`\n* Downloading it manually by clicking [here to download development unminified version](https://raw.github.com/gdi2290/angular-raven/master/angular-raven.js)\n\n\n````html\n\u003cbody ng-app=\"YOUR_APP\" ng-controller=\"MainCtrl\"\u003e\n  \u003ca href=\"#error\" ng-click=\"logError()\"\u003eLog Error\u003c/a\u003e\n\u003c/body\u003e\n\u003cscript src=\"http://cdnjs.cloudflare.com/ajax/libs/raven.js/1.0.8/raven.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"http://ajax.googleapis.com/ajax/libs/angularjs/1.2.10/angular.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  Raven.config('YOUR_PUBLIC_DSN', {\n      // Raven settings\n    })\n    .setUser({\n      \"id\": \"SERVER_RENDERED_ID\",\n      \"email\": \"SERVER_RENDERED_EMAIL\"\n    })\n    .install()\n\u003c/script\u003e\n\u003cscript src=\"app/bower_components/angular-raven/angular-raven.js\"\u003e\u003c/script\u003e\n\n\u003cscript\u003e\n  angular.module('YOUR_APP', [\n    'ngRaven',\n    'controllers'\n  ])\n  .config(function($ravenProvider) {\n    // There is a development flag to log errors rather than sending it to Sentry\n    $ravenProvider.development(true);\n  });\n\n  angular.module('controllers', [])\n    .controller('MainCtrl', function($scope, $raven) {\n      $scope.logError = function() {\n        $raven.captureMessage('Error');\n      };\n    });\n\u003c/script\u003e\n\n````\n\nInitializing Raven.js outside of Angular allows Raven to track errors when Angular wasn't able to bootstrap correctly.\n\n\nThe community has compiled a list of common ignore rules for common things, like Facebook, Chrome extensions, etc.\n```javascript\nRaven.config('YOUR_PUBLIC_DSN', {\n  logger: 'javascript',\n  ignoreErrors: [\n    // Random plugins/extensions\n    'top.GLOBALS',\n    // See: http://blog.errorception.com/2012/03/tale-of-unfindable-js-error. html\n    'originalCreateNotification',\n    'canvas.contentDocument',\n    'MyApp_RemoveAllHighlights',\n    'http://tt.epicplay.com',\n    'Can\\'t find variable: ZiteReader',\n    'jigsaw is not defined',\n    'ComboSearch is not defined',\n    'http://loading.retry.widdit.com/',\n    'atomicFindClose',\n    // Facebook borked\n    'fb_xd_fragment',\n    // ISP \"optimizing\" proxy - `Cache-Control: no-transform` seems to reduce this. (thanks @acdha)\n    // See http://stackoverflow.com/questions/4113268/how-to-stop-javascript-injection-from-vodafone-proxy\n    'bmi_SafeAddOnload',\n    'EBCallBackMessageReceived',\n    // See http://toolbar.conduit.com/Developer/HtmlAndGadget/Methods/JSInjection.aspx\n    'conduitPage'\n  ],\n  ignoreUrls: [\n    // Facebook flakiness\n    /graph\\.facebook\\.com/i,\n    // Facebook blocked\n    /connect\\.facebook\\.net\\/en_US\\/all\\.js/i,\n    // Woopra flakiness\n    /eatdifferent\\.com\\.woopra-ns\\.com/i,\n    /static\\.woopra\\.com\\/js\\/woopra\\.js/i,\n    // Chrome extensions\n    /extensions\\//i,\n    /^chrome:\\/\\//i,\n    // Other plugins\n    /127\\.0\\.0\\.1:4001\\/isrunning/i,  // Cacaoweb\n    /webappstoolbarba\\.texthelp\\.com\\//i,\n    /metrics\\.itunes\\.apple\\.com\\.edgesuite\\.net\\//i\n  ]\n}).install();\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickjs%2Fangular-raven","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickjs%2Fangular-raven","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickjs%2Fangular-raven/lists"}