{"id":16321590,"url":"https://github.com/hstarorg/node-git-webhooks","last_synced_at":"2026-04-30T12:34:20.992Z","repository":{"id":75613028,"uuid":"107854312","full_name":"hstarorg/node-git-webhooks","owner":"hstarorg","description":"The webhooks lib for code repositories based on git.","archived":false,"fork":false,"pushed_at":"2017-11-26T12:56:08.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T20:03:18.272Z","etag":null,"topics":["github","gitlab","webhooks"],"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/hstarorg.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":"2017-10-22T09:54:03.000Z","updated_at":"2017-10-24T07:00:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"cde31d6c-df5b-4127-8d3d-af07ee57e047","html_url":"https://github.com/hstarorg/node-git-webhooks","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.1875,"last_synced_commit":"2683bb775a73df9eedc64cb4b09299cd6ccdc697"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hstarorg/node-git-webhooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hstarorg%2Fnode-git-webhooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hstarorg%2Fnode-git-webhooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hstarorg%2Fnode-git-webhooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hstarorg%2Fnode-git-webhooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hstarorg","download_url":"https://codeload.github.com/hstarorg/node-git-webhooks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hstarorg%2Fnode-git-webhooks/sbom","scorecard":{"id":470995,"data":{"date":"2025-08-11","repo":{"name":"github.com/hstarorg/node-git-webhooks","commit":"2683bb775a73df9eedc64cb4b09299cd6ccdc697"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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":"Code-Review","score":0,"reason":"Found 0/16 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":"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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 'master'"],"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"}}]},"last_synced_at":"2025-08-19T13:53:16.478Z","repository_id":75613028,"created_at":"2025-08-19T13:53:16.478Z","updated_at":"2025-08-19T13:53:16.478Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32465009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"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":["github","gitlab","webhooks"],"created_at":"2024-10-10T22:48:16.633Z","updated_at":"2026-04-30T12:34:20.974Z","avatar_url":"https://github.com/hstarorg.png","language":"TypeScript","readme":"# node-git-webhooks\nThe webhooks lib for code repositories based on git.\n\n# Usage\n\n```bash\n# Local install\nnpm i -S node-git-webhooks\n```\n\n```js\nconst gitWebhooks = require('node-git-webhooks').default;\n\nconst options = {}; // The webhooks server optoions\n\n// Gitlab Server\nconst server = new gitWebhooks.GitlabWebHooksServer(options);\n// All gitlab webhooks type.\nconst gitlabEventType = gitWebhooks.GitlabEventType;\nserver.subscribe((evt, data) =\u003e {\n  if (evt === gitlabEventType.Push) {\n    console.log('push', data);\n  } else if (evt === gitlabEventType.IssueNote) {\n    console.log('issue note', data);\n  }\n});\n\n// Also support Github Server\n// const server = new gitWebhooks.GithubWebHooksServer(options);\n// All github webhooks type.\n// const githubEventType = gitWebhooks.GithubEventType;\n// server.subscribe((evt, data) =\u003e {\n//   if (evt === githubEventType.Push) {\n//     console.log('push', data);\n//   } else if (evt === githubEventType.IssueNote) {\n//     console.log('issue note', data);\n//   }\n// });\n\nserver.onError(err =\u003e {\n  console.error('Error', err);\n});\n\n// Run web hooks server at port 8000;\nserver.listen(8000).then(server =\u003e {\n  console.log('server started...');\n});\n```\n\n**options**\n\n```\n{\n  token: string // The webhooks Secret(github) or Secret Token(gitlab)\n}\n```\n\n**Note: If use github webhooks server, should choose the application/json content-type.**\n\n# How to Develop\n\n```bash\n# Clone the project\ngit clone \u003crepositoty url\u003e\n\n# Install deps\nnpm i\n\n# Run dev\nnpm run dev\n\n# Run build and generate declarations.\nnpm run build\n```\n\n# [CHANGLOG](CHANGLOG.md)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhstarorg%2Fnode-git-webhooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhstarorg%2Fnode-git-webhooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhstarorg%2Fnode-git-webhooks/lists"}