{"id":13619247,"url":"https://github.com/melvnl/discord-alert","last_synced_at":"2025-04-14T16:30:49.992Z","repository":{"id":108237488,"uuid":"465417876","full_name":"melvnl/discord-alert","owner":"melvnl","description":"Send message to a discord server from your site","archived":false,"fork":false,"pushed_at":"2022-03-15T03:14:44.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-01-27T23:11:27.531Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/melvnl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-03-02T18:08:15.000Z","updated_at":"2024-01-27T23:11:28.152Z","dependencies_parsed_at":null,"dependency_job_id":"2c004abc-49ba-4baa-b7dd-5efc8b3e1c7c","html_url":"https://github.com/melvnl/discord-alert","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/melvnl%2Fdiscord-alert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melvnl%2Fdiscord-alert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melvnl%2Fdiscord-alert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melvnl%2Fdiscord-alert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/melvnl","download_url":"https://codeload.github.com/melvnl/discord-alert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248916543,"owners_count":21182824,"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":[],"created_at":"2024-08-01T21:00:36.767Z","updated_at":"2025-04-14T16:30:49.690Z","avatar_url":"https://github.com/melvnl.png","language":"TypeScript","funding_links":[],"categories":["D"],"sub_categories":[],"readme":"\u003ch1 align='center'\u003e Discord Alert\u003c/h1\u003e\r\n\r\n\u003cp align='center'\u003eA lightweight package to send message/notification with http request to discord server\r\n\r\n### Install\r\n\r\n```js\r\n$ npm install discord-alert\r\n\r\nor\r\n\r\n$ yarn add discord-alert\r\n\r\n```\r\n\r\n### Usage\r\n\r\n```js\r\nimport Notification from \"discord-alert\";\r\n\r\nNotification(\"discord webhook url\", \"message\");\r\n```\r\n\r\n### Parameters\r\n\r\n\u003ctable\u003e\r\n\u003ctr\u003e\r\n\u003ctd\u003e\r\nurl\r\n\u003c/td\u003e\r\n\u003ctd\u003e\r\n your discord server webhook url\r\n\u003c/td\u003e\r\n\u003c/tr\u003e\r\n\u003ctr\u003e\r\n\u003ctd\u003e\r\nmessage\r\n\u003c/td\u003e\r\n\u003ctd\u003e\r\n what message you want to send each time a certain event is being triggered.\r\n\u003c/td\u003e\r\n\u003c/tr\u003e\r\n\u003c/table\u003e\r\n\r\n### Example\r\n\r\nThere are various cases where you can use this package. I'm using it to send a notification each time a user submits a support message for my personal [site](https://www.melvinliu.com/support).\r\n\r\nInstead of receiving the notification through email which is quite convoluted (since you need an SMTP server, etc to make it work). I see discord webhook is much simpler and suit my need.\r\n\r\n### Changelog\r\n\r\n\u003ctable\u003e\r\n\u003ctr\u003e\r\n\u003ctd\u003e\r\n1.0.0\r\n\u003c/td\u003e\r\n\u003ctd\u003e\r\n Initial version with javascript\r\n\u003c/td\u003e\r\n\u003c/tr\u003e\r\n\u003ctr\u003e\r\n\u003ctd\u003e\r\n1.0.1\r\n\u003c/td\u003e\r\n\u003ctd\u003e\r\n Accidental increment (you can ignore this version 😅 )\r\n\u003c/td\u003e\r\n\u003c/tr\u003e\r\n\u003ctr\u003e\r\n\u003ctd\u003e\r\n1.1.0\r\n\u003c/td\u003e\r\n\u003ctd\u003e\r\n Update from javascript to typescript\r\n\u003c/td\u003e\r\n\u003c/tr\u003e\r\n\u003c/table\u003e\r\n\r\n### Author\r\n\r\n- [melvnl](https://github.com/melvnl/)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelvnl%2Fdiscord-alert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmelvnl%2Fdiscord-alert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelvnl%2Fdiscord-alert/lists"}