{"id":50926070,"url":"https://github.com/ruicsh/unhandler","last_synced_at":"2026-06-16T23:03:17.510Z","repository":{"id":42664614,"uuid":"248946153","full_name":"ruicsh/unhandler","owner":"ruicsh","description":"Creates bug reports for uncaught exceptions and unhandled rejections","archived":false,"fork":false,"pushed_at":"2025-02-20T22:08:38.000Z","size":1308,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-30T03:08:29.845Z","etag":null,"topics":["error-handling","error-monitoring","github-issues"],"latest_commit_sha":null,"homepage":"https://npm.im/@tuplo/unhandler","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/ruicsh.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":"2020-03-21T09:42:26.000Z","updated_at":"2026-04-06T19:48:58.000Z","dependencies_parsed_at":"2023-02-08T05:17:19.825Z","dependency_job_id":"8905dabd-1e60-4af8-9405-1a4b0af12944","html_url":"https://github.com/ruicsh/unhandler","commit_stats":{"total_commits":84,"total_committers":2,"mean_commits":42.0,"dds":"0.011904761904761862","last_synced_commit":"b0ca05f011816167a9e7192808387b3b628bff63"},"previous_names":["ruicsh/unhandler"],"tags_count":42,"template":false,"template_full_name":null,"purl":"pkg:github/ruicsh/unhandler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruicsh%2Funhandler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruicsh%2Funhandler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruicsh%2Funhandler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruicsh%2Funhandler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruicsh","download_url":"https://codeload.github.com/ruicsh/unhandler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruicsh%2Funhandler/sbom","scorecard":{"id":902485,"data":{"date":"2025-08-11","repo":{"name":"github.com/tuplo/unhandler","commit":"298313bff5eaec7fd0a59533464ada7144804621"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/backup.yml:1","Warn: no topLevel permission defined: .github/workflows/build.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":4,"reason":"dependency not pinned by hash detected -- score normalized to 4","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/backup.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/tuplo/unhandler/backup.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/backup.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/tuplo/unhandler/backup.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/tuplo/unhandler/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/tuplo/unhandler/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/tuplo/unhandler/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/tuplo/unhandler/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/tuplo/unhandler/build.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/tuplo/unhandler/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/tuplo/unhandler/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/tuplo/unhandler/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/tuplo/unhandler/build.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:70: update your workflow using https://app.stepsecurity.io/secureworkflow/tuplo/unhandler/build.yml/main?enable=pin","Info:   0 out of   9 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   3 out of   3 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: license:0","Info: FSF or OSI recognized license: MIT License: license:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"10 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-xffm-g5w8-qvg7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-3mv9-4h5g-vhg3","Warn: Project is vulnerable to: GHSA-x574-m823-4x7w","Warn: Project is vulnerable to: GHSA-4r4m-qw57-chr8","Warn: Project is vulnerable to: GHSA-xcj6-pq6g-qj4x","Warn: Project is vulnerable to: GHSA-356w-63v5-8wf4","Warn: Project is vulnerable to: GHSA-859w-5945-r5v3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T16:08:15.479Z","repository_id":42664614,"created_at":"2025-08-24T16:08:15.479Z","updated_at":"2025-08-24T16:08:15.479Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34426745,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"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":["error-handling","error-monitoring","github-issues"],"created_at":"2026-06-16T23:03:16.830Z","updated_at":"2026-06-16T23:03:17.503Z","avatar_url":"https://github.com/ruicsh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"logo.png\" alt=\"Logo\" width=\"120\" height=\"120\"\u003e\n  \u003ch1 align=\"center\"\u003eunhandler\u003c/h3\u003e\n  \u003cp align=\"center\"\u003eCreates bug reports for uncaught exceptions and unhandled rejections\u003c/p\u003e\n  \u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/@tuplo/unhandler\"\u003e\n    \u003cimg src=\"https://img.shields.io/bundlephobia/minzip/@tuplo/unhandler\"\u003e\n  \t \u003ca href=\"https://codeclimate.com/github/tuplo/unhandler/test_coverage\"\u003e\n      \u003cimg src=\"https://api.codeclimate.com/v1/badges/b460b35ffc1d540fb7d9/test_coverage\" /\u003e\u003c/a\u003e\n  \t \u003cimg src=\"https://github.com/tuplo/unhandler/actions/workflows/build.yml/badge.svg\"\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n## Why\n\nCreates bug reports for uncaught exceptions and unhandled rejections. Works like a DYI Sentry client for NodeJS. Can publish bug reports on different trackers simultaneously. Not suited to be used on browsers as it would need to expose your APIs' access secrets to the public.\n\n## Install\n\n```bash\n$ npm install @tuplo/unhandler\n\n# or with yarn\n$ yarn add @tuplo/unhandler\n```\n\n## Usage\n\n```ts\nimport { unhandler } from '@tuplo/unhandler';\n```\n\n**Registers event handlers for `uncaughtException` and `unhandledRejection`**\n\n```ts\nunhandler({\n  appName: 'my-app-1',\n  providers: {\n    github: {\n      user: 'tuplo',\n      repo: 'unhandler',\n      token: 'secret-token-xxxxxxx',\n    },\n  },\n});\n\nthrow new Error('buggy bug');\n\n// will create a GitHub issue with title \"[my-app-1] buggy bug\"\n```\n\n**Creates bug reports directly with `submitError`**\n\n```ts\nimport { submitError } from '@tuplo/unhandler';\n\nconst error = new Error('buggy bug');\n\nawait submitError(error, {\n  appName: 'my-app-1',\n  providers: {\n    github: {\n      user: 'tuplo',\n      repo: 'unhandler',\n      token: 'secret-token-xxxxxxx',\n    },\n  },\n});\n\n// will create a GitHub issue with title \"[my-app-1] buggy bug\"\n```\n\n**Registers an event handler `onBeforeSubmitError` or `onAfterSubmitError`**\n\n```ts\nimport { submitError } from '@tuplo/unhandler';\n\nconst error = new Error('buggy bug');\n\nawait submitError(error, {\n  appName: 'my-app-1',\n  onBeforeSubmitError: (error) =\u003e console.error(error),\n  onAfterSubmitError: (error) =\u003e console.error(error),\n  providers: {\n    github: {\n      user: 'tuplo',\n      repo: 'unhandler',\n     token: 'secret-token-xxxxxxx',\n   },\n  },\n});\n\n// will output the error before and after submitting\n```\n\n## Error tracking providers\n\n- [x] GitHub Issues\n- [ ] Trello\n- [ ] JIRA\n\n## Options\n\n### appName\n\n\u003e `string`\n\nThe name of the application triggering the error.\n\n### onBeforeSubmitError\n\n\u003e `(error) =\u003e Promise\u003cvoid\u003e` | optional\n\nAn optional function to be called just before submitting the error.\n\n### onAfterSubmitError\n\n\u003e `(error) =\u003e Promise\u003cvoid\u003e` | optional\n\nAn optional function to be called just after submitting the error.\n\n### providers\n\n\u003e `Provider[]`\n\n### shouldSubmitError\n\n\u003e `boolean` | optional\n\nDecides if the error should actually be submitted. Normally coupled with `onBeforeSubmitError` to do something else with the `Error` but not submit it. If `false` it doesn't submit the error and doesn't call `onAfterSubmitError`. Defaults to `true`.\n\n\n##### GitHub\n\n| name  | type     | description                                                                     |\n| ----- | -------- | ------------------------------------------------------------------------------- |\n| user  | `string` | The user or organization, owner of the repository where issues will be created. |\n| repo  | `string` | The name of the repository where issues will be created.                        |\n| token | `string` | GitHub's personal access token with a `repo` scope.                             |\n\n### License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruicsh%2Funhandler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruicsh%2Funhandler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruicsh%2Funhandler/lists"}