{"id":13406185,"url":"https://github.com/getsentry/sentry-electron","last_synced_at":"2026-01-16T17:10:48.529Z","repository":{"id":37445024,"uuid":"111120773","full_name":"getsentry/sentry-electron","owner":"getsentry","description":"The official Sentry SDK for Electron","archived":false,"fork":false,"pushed_at":"2025-04-12T09:06:16.000Z","size":3883,"stargazers_count":234,"open_issues_count":7,"forks_count":58,"subscribers_count":48,"default_branch":"master","last_synced_at":"2025-04-13T20:19:46.187Z","etag":null,"topics":["crash-reporting","electron","error-monitoring","error-reporting","hacktoberfest","javascript","node","sdk","sentry","sentry-client","tag-production","team-web-frontend"],"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":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":"2017-11-17T15:43:15.000Z","updated_at":"2025-04-11T16:10:09.000Z","dependencies_parsed_at":"2023-12-21T11:04:39.554Z","dependency_job_id":"07d2d00b-62ab-40b5-b7b2-0ed8776c6e9f","html_url":"https://github.com/getsentry/sentry-electron","commit_stats":{"total_commits":736,"total_committers":33,"mean_commits":"22.303030303030305","dds":0.5910326086956521,"last_synced_commit":"b164b2c1184db1c53249a841af7a459a08a4b93f"},"previous_names":["timfish/electron-sentry"],"tags_count":124,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Fsentry-electron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Fsentry-electron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Fsentry-electron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getsentry%2Fsentry-electron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getsentry","download_url":"https://codeload.github.com/getsentry/sentry-electron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248775754,"owners_count":21159660,"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":["crash-reporting","electron","error-monitoring","error-reporting","hacktoberfest","javascript","node","sdk","sentry","sentry-client","tag-production","team-web-frontend"],"created_at":"2024-07-30T19:02:23.484Z","updated_at":"2026-01-16T17:10:48.502Z","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=\"https://sentry-brand.storage.googleapis.com/sentry-wordmark-dark-280x84.png\" alt=\"Sentry\" width=\"280\" height=\"84\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# Official Sentry SDK for Electron\n\n[![Build \u0026\nTest](https://github.com/getsentry/sentry-electron/actions/workflows/build.yml/badge.svg)](https://github.com/getsentry/sentry-electron/actions/workflows/build.yml)\n[![Documentation](https://img.shields.io/badge/documentation-sentry.io-green.svg)](https://docs.sentry.io/platforms/javascript/electron/)\n[![npm version](https://img.shields.io/npm/v/@sentry/electron.svg)](https://www.npmjs.com/package/@sentry/electron)\n[![license](https://img.shields.io/github/license/getsentry/sentry-electron.svg)](https://github.com/getsentry/sentry-electron/blob/master/LICENSE)\n[![Discord](https://img.shields.io/discord/621778831602221064)](https://discord.gg/SugnmRwkmV)\n\n## Features\n\n- Captures **Node errors** in the main process (using\n  [`@sentry/node`](https://github.com/getsentry/sentry-javascript/tree/master/packages/node))\n- Captures **JavaScript errors** in renderer processes (using\n  [`@sentry/browser`](https://github.com/getsentry/sentry-javascript/tree/master/packages/browser))\n- Captures **native crashes** (Minidump crash reports) from renderers and the main process\n- Collects **breadcrumbs and context** information along with events across renderers and the main process\n- Supports `electron \u003e= v23`\n\n## Usage\n\nTo use this SDK, call `init(options)` as early as possible in the entry modules in the main process as well as all\nrenderer processes or further sub processes you spawn. This will initialize the SDK and hook the environment.\n\nIn the Electron main process:\n```javascript\nimport { init } from '@sentry/electron/main';\n\ninit({\n  dsn: '__DSN__',\n  // ...\n});\n```\n\nIn all Electron renderer processes:\n```javascript\n// In the Electron renderer processes\nimport { init } from '@sentry/electron/renderer';\n\ninit();\n```\n\nIf you are using a framework specific Sentry SDK, you can pass that `init` function as the second parameter in the\nrenderer and the two SDKs functionalities will be combined:\n```javascript\nimport { init } from '@sentry/electron/renderer';\nimport { init as reactInit } from '@sentry/react';\n\ninit({ /* config */ }, reactInit);\n\n```\n\nTo set context information or send manual events, use the exported functions of `@sentry/electron`. Note that these\nfunctions will not perform any action before you have called `init()`:\n\n```javascript\nimport * as Sentry from '@sentry/electron/main';\n\n// Set user information, as well as tags and further extras\nconst scope = Sentry.getCurrentScope();\nscope.setExtra('battery', 0.7);\nscope.setTag('user_mode', 'admin');\nscope.setUser({ id: '4711' });\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## Contributors\n\nThanks to everyone who contributed to the Sentry Electron SDK!\n\n\u003ca href=\"https://github.com/getsentry/sentry-electron/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contributors-img.web.app/image?repo=getsentry/sentry-electron\" /\u003e\n\u003c/a\u003e\n","funding_links":["https://sentry.io/pricing/","https://sentry.io/"],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetsentry%2Fsentry-electron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetsentry%2Fsentry-electron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetsentry%2Fsentry-electron/lists"}