{"id":15571663,"url":"https://github.com/hatamiarash7/webhookhandler","last_synced_at":"2025-04-16T04:46:29.176Z","repository":{"id":38036817,"uuid":"292100724","full_name":"hatamiarash7/WebhookHandler","owner":"hatamiarash7","description":"A Webhook Handler for Github, Gitlab and other platforms","archived":false,"fork":false,"pushed_at":"2025-04-11T01:40:01.000Z","size":269,"stargazers_count":6,"open_issues_count":16,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T02:43:10.430Z","etag":null,"topics":["github","github-webhook","github-webhook-handler","github-webhook-listener","github-webhooks","gitlab-webhook","gitlab-webhooks","hacktoberfest","webhook","webhooks","webhooks-catcher"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hatamiarash7.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-09-01T20:28:26.000Z","updated_at":"2025-03-11T20:17:52.000Z","dependencies_parsed_at":"2023-12-14T20:45:14.913Z","dependency_job_id":"41744469-7d51-4c32-8107-8174607c9b48","html_url":"https://github.com/hatamiarash7/WebhookHandler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatamiarash7%2FWebhookHandler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatamiarash7%2FWebhookHandler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatamiarash7%2FWebhookHandler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hatamiarash7%2FWebhookHandler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hatamiarash7","download_url":"https://codeload.github.com/hatamiarash7/WebhookHandler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249197944,"owners_count":21228662,"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":["github","github-webhook","github-webhook-handler","github-webhook-listener","github-webhooks","gitlab-webhook","gitlab-webhooks","hacktoberfest","webhook","webhooks","webhooks-catcher"],"created_at":"2024-10-02T18:00:51.641Z","updated_at":"2025-04-16T04:46:29.158Z","avatar_url":"https://github.com/hatamiarash7.png","language":"HTML","readme":"# Webhook Handler\n\n[![GitHub license](https://img.shields.io/github/license/hatamiarash7/WebhookHandler)](https://github.com/hatamiarash7/WebhookHandler/blob/master/LICENSE) [![Docker](https://github.com/hatamiarash7/WebhookHandler/actions/workflows/docker.yml/badge.svg)](https://github.com/hatamiarash7/WebhookHandler/actions/workflows/docker.yml) ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/hatamiarash7/webhook/latest)\n\nA Webhook Handler for Github, Gitlab, .... It's just a simple parser and you should extend this project if you need a visualization.\n\n## Configure\n\nYou need to set env variables for using webhooks. Create a `.env` like this :\n\n```env\nSECRET=changeme\n\nDB_CONNECTION=\"mongodb://localhost:27017/webhook\"\n\nPROVIDER=github\n\n# Github:  X-Hub-Signature\n# Gitlab:  X-Gitlab-Token\n# Gogs:    X-Gogs-Signature\n# Gitea:   HTTP_X_GITEA_SIGNATURE\nSIGNATURE=\"X-Hub-Signature\"\n\nLOG_LEVEL=info\n\nTRUST_KEY=changeme\n```\n\nUse `SECRET` value in github settings :\n\n![secret](.github/secret.webp)\n\n**Important** : You should select `application/json` for content type.\n\n### Trusted platforms\n\nFor use with trusted platforms or offline/local usage, you can pass a `trusted` query to webhook URL. For example :\n\n```txt\nhttp://\u003cdomain\u003e/gitlab?trusted=1234\n```\n\nNow, the program will ignore verification and catch anything received.\n\n❕ This query value should equal to `TRUST_KEY` variable from your `env.` file.\n\n## Run\n\n```bash\nnpm install\nnode hook.js\n```\n\nOr use docker\n\n```bash\ndocker pull hatamiarash7/webhook\ndocker run -d\n    -p 3000:3000\n    -e SECRET='changeme'\n    -e DB_CONNECTION='mongodb://localhost:27017/webhook'\n    -e PROVIDER='github'\n    -e SIGNATURE='X-Hub-Signature'\n    -e LOG_LEVEL='debug'\n    -e TRUST_KEY='changeme'\n    hatamiarash7/webhook\n```\n\n![screenshot](.github/webhook.webp)\n\n## Log\n\nWe have 6 level for logging\n\n- trace\n- debug\n- info\n- warn\n- error\n- fatal\n\nSet any level in `.env` file :\n\n```env\nLOG_LEVEL=info\n```\n\n## To-Do\n\n- [x] Connect to DB\n- [ ] Test with git platforms\n  - [x] Github\n  - [ ] Gitlab\n  - [ ] Gitea\n  - [ ] Gogs\n- [x] Configure a logger\n- [ ] Add another crypto methods\n- [ ] Add a simple dashboard\n\n---\n\n## Support\n\n[![Donate with Bitcoin](https://en.cryptobadges.io/badge/micro/3GhT2ABRuHuXGNzP6DH5KvLZRTXCBKkx2y)](https://en.cryptobadges.io/donate/3GhT2ABRuHuXGNzP6DH5KvLZRTXCBKkx2y) [![Donate with Ethereum](https://en.cryptobadges.io/badge/micro/0x4832fd8e2cfade141dc4873cc00cf77de604edde)](https://en.cryptobadges.io/donate/0x4832fd8e2cfade141dc4873cc00cf77de604edde)\n\n[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/D1D1WGU9)\n\n\u003cdiv\u003e\u003ca href=\"https://payping.ir/@hatamiarash7\"\u003e\u003cimg src=\"https://cdn.payping.ir/statics/Payping-logo/Trust/blue.svg\" height=\"128\" width=\"128\"\u003e\u003c/a\u003e\u003c/div\u003e\n\n## Contributing\n\nDon't be shy to be a contributor 😉\n\n1. Fork it !\n2. Create your feature branch : `git checkout -b my-new-feature`\n3. Commit your changes : `git commit -am 'Add some feature'`\n4. Push to the branch : `git push origin my-new-feature`\n5. Submit a pull request\n\n## Issues\n\nEach project may have many problems. Contributing to the better development of this project by reporting them.\n","funding_links":["https://ko-fi.com/D1D1WGU9"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatamiarash7%2Fwebhookhandler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhatamiarash7%2Fwebhookhandler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhatamiarash7%2Fwebhookhandler/lists"}