{"id":21810931,"url":"https://github.com/avatsaev/ngx-raven","last_synced_at":"2025-04-13T22:11:45.281Z","repository":{"id":71465460,"uuid":"116394254","full_name":"avatsaev/ngx-raven","owner":"avatsaev","description":"Raven Module for Angular","archived":false,"fork":false,"pushed_at":"2018-09-12T06:21:28.000Z","size":177,"stargazers_count":6,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T12:38:28.030Z","etag":null,"topics":["angular","raven","ravenjs"],"latest_commit_sha":null,"homepage":null,"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/avatsaev.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":"2018-01-05T14:38:56.000Z","updated_at":"2023-03-28T21:55:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"f9b9419c-948f-4064-b823-65817dda28f6","html_url":"https://github.com/avatsaev/ngx-raven","commit_stats":{"total_commits":18,"total_committers":3,"mean_commits":6.0,"dds":0.2777777777777778,"last_synced_commit":"e20fa68b8704d19400ec9563c71550f6fd242be5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avatsaev%2Fngx-raven","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avatsaev%2Fngx-raven/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avatsaev%2Fngx-raven/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avatsaev%2Fngx-raven/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avatsaev","download_url":"https://codeload.github.com/avatsaev/ngx-raven/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248508047,"owners_count":21115746,"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":["angular","raven","ravenjs"],"created_at":"2024-11-27T13:39:03.019Z","updated_at":"2025-04-13T22:11:45.273Z","avatar_url":"https://github.com/avatsaev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n\n# NgxRaven\n[![License: MIT](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"http://i.imgur.com/5bd2J61.png\" alt=\"NgxRaven\"/\u003e\n\u003c/p\u003e\n\nAngular wrapper for [Sentry's](https://sentry.io/)  [RavenJS](https://github.com/getsentry/raven-js)\n\n\n## Installation\n\n`npm i -S ngx-raven raven-js`\n\n## Usage\n\nImport Raven module in your AppModule (top level module)\n\n```typescript\n\nimport {RavenModule} from 'ngx-raven';\n\n@NgModule({\n  declarations: [\n    AppComponent\n  ],\n  imports: [\n    BrowserModule,\n    RavenModule.forRoot({\n      dsn: '__PUBLIC_DSN__',\n      reportDialog: true, // optional, false by default\n      enabled: environment.production\n    })\n  ],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n\n```\n\nInject RavenService in your AppComponent (top level component) \n\n```typescript\nimport {RavenService} from 'ngx-raven';\n\n@Component({\n  selector: 'app-root',\n  template: ``,\n  styles: [``]\n})\nexport class AppComponent {\n\n  constructor(private ravenService: RavenService) {}\n\n\n}\n\n```\n\nRaven will initialize and install itself after the injection, all exceptions will be automatically sent to your Sentry server.\n\nYou can use the RavenService to access raven instance inside your components or other services:\n\n\n```typescript\n\nexport class AppComponent {\n\n  constructor(private ravenService: RavenService) {\n    // Check if raven is initialised and installed\n    console.log(this.ravenService.raven.isSetup());\n  }\n\n\n}\n```\n\nYou can also read/write in the Raven Module Configuration by injecting it:\n\n\n```typescript\nexport class AppComponent {\n\n  constructor(private ravenService: RavenService, private ravenConfig: RavenConfig) {\n    // Check if raven is initialised\n    console.log(this.ravenService.raven.isSetup());\n    console.log(this.ravenConfig.dsn);\n    this.ravenConfig.reportDialog = false;\n  }\n\n}\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favatsaev%2Fngx-raven","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favatsaev%2Fngx-raven","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favatsaev%2Fngx-raven/lists"}