{"id":13801454,"url":"https://github.com/getsentry/sentry-capacitor","last_synced_at":"2026-02-27T15:21:24.753Z","repository":{"id":37473566,"uuid":"307397117","full_name":"getsentry/sentry-capacitor","owner":"getsentry","description":"The official Sentry SDK for Capacitor","archived":false,"fork":false,"pushed_at":"2025-05-14T03:20:28.000Z","size":14991,"stargazers_count":127,"open_issues_count":25,"forks_count":35,"subscribers_count":43,"default_branch":"main","last_synced_at":"2025-05-14T04:39:22.791Z","etag":null,"topics":["android","capacitor","crash","crash-reporting","error","error-handling","hybrid-apps","ionic","ios","javascript","mobile","sdk","sentry","tag-production","team-mobile"],"latest_commit_sha":null,"homepage":"https://sentry.io","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/getsentry.png","metadata":{"funding":{"custom":["https://sentry.io/pricing/","https://sentry.io/"]},"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-10-26T14:20:09.000Z","updated_at":"2025-05-12T17:07:26.000Z","dependencies_parsed_at":"2023-09-22T00:23:55.830Z","dependency_job_id":"ed79123d-f855-4d52-b3d3-1ac7f8246e9f","html_url":"https://github.com/getsentry/sentry-capacitor","commit_stats":{"total_commits":206,"total_committers":18,"mean_commits":"11.444444444444445","dds":0.7572815533980582,"last_synced_commit":"c881ff4f12520631abad53bf2ebb5bbd8d15b8ec"},"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Fsentry-capacitor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Fsentry-capacitor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Fsentry-capacitor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Fsentry-capacitor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getsentry","download_url":"https://codeload.github.com/getsentry/sentry-capacitor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254110374,"owners_count":22016391,"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":["android","capacitor","crash","crash-reporting","error","error-handling","hybrid-apps","ionic","ios","javascript","mobile","sdk","sentry","tag-production","team-mobile"],"created_at":"2024-08-04T00:01:22.977Z","updated_at":"2026-02-27T15:21:24.747Z","avatar_url":"https://github.com/getsentry.png","language":"TypeScript","readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://sentry.io/?utm_source=github\u0026utm_medium=logo\" target=\"_blank\"\u003e\n    \u003cimg src=\".github/sentry-wordmark-dark-400x119.svg\" width=\"280\"\u003e\n\n  \u003c/a\u003e\n\u003c/p\u003e\n\n_Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software faster, so we can get back to enjoying technology. If you want to join us [\u003ckbd\u003e**Check out our open positions**\u003c/kbd\u003e](https://sentry.io/careers/)_\n\n## Official Sentry SDK for Capacitor\n\n[![build](https://github.com/getsentry/sentry-capacitor/workflows/Build%20\u0026%20Test/badge.svg?branch=main)](https://github.com/getsentry/sentry-capacitor/actions?query=branch%3Amain)\n[![Discord Chat](https://img.shields.io/discord/621778831602221064?logo=discord\u0026logoColor=ffffff\u0026color=7389D8)](https://discord.gg/PXa5Apfe7K)\n\n## Installation\n\n```bash\n# Angular 14 and newer:\nyarn add @sentry/capacitor @sentry/angular --exact\n\n# Vue\nyarn add @sentry/capacitor @sentry/vue --exact\n\n# React\nyarn add @sentry/capacitor @sentry/react --exact\n\n# Other\nyarn add @sentry/capacitor @sentry/browser --exact\n```\n\nOlder versions of Angular require @sentry/capacitor V0, for more information check the page: https://docs.sentry.io/platforms/javascript/guides/capacitor/#angular-version-compatibility\n\n## Usage\n\nTo use this SDK, call `Sentry.init` as early as possible after loading the page. This will initialize the SDK and hook into the environment. _Note that you can turn off almost all side effects using the respective options._\n\n```typescript\n// app.module.ts\n\nimport * as Sentry from \"@sentry/capacitor\";\nimport { init as sentryAngularInit, createErrorHandler }  from \"@sentry/angular\";\n\n// Init by passing the sibling SDK's init as the second parameter.\nSentry.init({\n  dsn: \"__DSN__\",\n}, sentryAngularInit);\n\n// Attach the Sentry ErrorHandler\n@NgModule({\n  providers: [\n    {\n      provide: ErrorHandler,\n      useValue: createErrorHandler(),\n    },\n  ],\n})\n```\n\nTo set context information or send manual events, use the exported functions of `@sentry/capacitor`. _Note that these functions will not perform any action before you have called `Sentry.init()`:_\n\n```javascript\nimport * as Sentry from '@sentry/capacitor';\n\n// Set user information, as well as tags and further extras\n  const scope = Sentry.getCurrentScope();\n  scope.setExtra('battery', 0.7);\n  scope.setTag('user_mode', 'admin');\n  scope.setUser({ id: '4711' });\n  // scope.clear();\n});\n\n// Add a breadcrumb for future events\nSentry.addBreadcrumb({\n  message: 'My Breadcrumb',\n  // ...\n});\n\n// Capture exceptions, messages or manual events\nSentry.captureMessage('Hello, world!');\nSentry.captureException(new Error('Good bye'));\nSentry.captureEvent({\n  message: 'Manual',\n  stacktrace: [\n    // ...\n  ],\n});\n```\n\n#### Resources\n\n- [![Documentation](https://img.shields.io/badge/documentation-sentry.io-green.svg)](https://docs.sentry.io/platforms/javascript/guides/capacitor/)\n- [![Discussions](https://img.shields.io/github/discussions/getsentry/sentry-capacitor.svg)](https://github.com/getsentry/sentry-capacitor/discussions)\n- [![Discord Chat](https://img.shields.io/discord/621778831602221064?logo=discord\u0026logoColor=ffffff\u0026color=7389D8)](https://discord.gg/PXa5Apfe7K)\n- [![Stack Overflow](https://img.shields.io/badge/stack%20overflow-sentry-green.svg)](https://stackoverflow.com/questions/tagged/sentry)\n- [![X Follow](https://img.shields.io/twitter/follow/sentry?label=sentry\u0026style=social)](https://x.com/intent/follow?screen_name=sentry)\n","funding_links":["https://sentry.io/pricing/","https://sentry.io/"],"categories":["Other plugins","TypeScript"],"sub_categories":["Specialized Hardware"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetsentry%2Fsentry-capacitor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetsentry%2Fsentry-capacitor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetsentry%2Fsentry-capacitor/lists"}