{"id":15093335,"url":"https://github.com/lucasvillarinho/nofy","last_synced_at":"2025-04-12T07:41:15.773Z","repository":{"id":250348321,"uuid":"834106040","full_name":"lucasvillarinho/nofy","owner":"lucasvillarinho","description":" 📬 NoFy is a versatile, zero-dependencies library for sending notifications to popular services ","archived":false,"fork":false,"pushed_at":"2024-11-08T21:14:30.000Z","size":219,"stargazers_count":22,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T01:38:24.469Z","etag":null,"topics":["discord","email","go","golang","message","notification","slack","whatsapp"],"latest_commit_sha":null,"homepage":"","language":"Go","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/lucasvillarinho.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":["lucasvillarinho"]}},"created_at":"2024-07-26T12:35:39.000Z","updated_at":"2024-10-11T20:38:58.000Z","dependencies_parsed_at":"2024-09-10T03:56:36.810Z","dependency_job_id":"3a35835e-629d-413a-9a43-a44856346d48","html_url":"https://github.com/lucasvillarinho/nofy","commit_stats":null,"previous_names":["lucasvillarinho/nofy","lcvilla/nofy"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasvillarinho%2Fnofy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasvillarinho%2Fnofy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasvillarinho%2Fnofy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasvillarinho%2Fnofy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucasvillarinho","download_url":"https://codeload.github.com/lucasvillarinho/nofy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248536990,"owners_count":21120683,"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":["discord","email","go","golang","message","notification","slack","whatsapp"],"created_at":"2024-09-25T11:21:29.032Z","updated_at":"2025-04-12T07:41:15.751Z","avatar_url":"https://github.com/lucasvillarinho.png","language":"Go","funding_links":["https://github.com/sponsors/lucasvillarinho"],"categories":[],"sub_categories":[],"readme":"\n# `📬 NoFy`\n\n✨ `nofy` is a versatile, zero-dependencies library for sending notifications to popular services.\n\n[![Zero Dependencies](https://img.shields.io/badge/Dependencies-Zero-brightgreen.svg)](https://github.com/lucasvillarinho/nofy/blob/main/go.mod) [![Go Report Card](https://goreportcard.com/badge/github.com/lucasvillarinho/nofy)](https://goreportcard.com/report/github.com/lucasvillarinho/nofy) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/ec1e325348344d43906561ec19471598)](https://app.codacy.com/gh/lucasvillarinho/nofy/dashboard?utm_source=gh\u0026utm_medium=referral\u0026utm_content=\u0026utm_campaign=Badge_grade) [![codecov](https://codecov.io/github/lucasvillarinho/nofy/branch/main/graph/badge.svg?token=93EO1TC9DB)](https://codecov.io/github/lucasvillarinho/nofy)\n\u003ca href=\"https://codeclimate.com/github/lucasvillarinho/nofy/maintainability\"\u003e\u003cimg src=\"https://api.codeclimate.com/v1/badges/957eaee7cf558abcf2d0/maintainability\" /\u003e\u003c/a\u003e [![Sponsor](https://img.shields.io/badge/Sponsor-❤-ff69b4.svg)](https://github.com/sponsors/lucasvillarinho)\n\u003c/div\u003e\n\n### 💫 Features\n\n\u003e [!WARNING]\n\u003e\n\u003eAPI is currently under development. Expect potential changes and unstable behavior.\n\n- **Zero Dependencies**: Lightweight with no external dependencies.\n- **Multi-Service Support**: Send notifications to Slack, Discord, Resend, and more.\n- **Bulk Messaging**: Send notifications to multiple repositories simultaneously.\n- **Extensible**: Easily add more services or custom logic.\n\n### 📦 Installation\n\n#### Install\n\n```sh\ngo get -u github.com/lucasvillarinho/nofy\n```\n\n#### Example\n\n##### Slack\n\n```go\n// Create a new Slack messenger\nslackMessenger, _ := slack.NewSlackMessenger(\n    // Set the Slack token to be used to send (required)\n    slack.WithToken(\"token\"),\n    slack.WithMessage(\n        // Message to be sent to the slack channel (required)\n        // The message is a slice of maps, each map represents a block of the message\n        // In this case, we are sending a single block with a text section\n        slack.Message{\n            Channel: \"channel\",\n            Content: []map[string]any{\n                {\n                    \"type\": \"section\",\n                    \"text\": map[string]string{\n                        \"type\": \"mrkdwn\",\n                        \"text\": \"Hello, World!\",\n                    },\n                },\n            },\n        }))\n\n// Create a new Nofy with the Slack messenger\nnofy := nofy.NewWithMessengers(slackMessenger)\n\n// Send the message for all messengers\n_ = nofy.SendAll(context.Background())\n```\n\n### 💛 Support the author\n\n[![Sponsor](https://img.shields.io/badge/Sponsor-❤-ff69b4.svg)](https://github.com/sponsors/lucasvillarinho)\n\nEnjoying the project? Consider [supporting](https://github.com/sponsors/lucasvillarinho) it to help me keep improving and adding new features!\n\n### 📜 License\n\n [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://github.com/lucasvillarinho/nofy/blob/main/LICENSE)\n\nThis software is licensed under the [MIT](https://github.com/lucasvillarinho/nofy/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasvillarinho%2Fnofy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucasvillarinho%2Fnofy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasvillarinho%2Fnofy/lists"}