{"id":14637832,"url":"https://github.com/sari3l/notify","last_synced_at":"2025-09-07T06:31:01.198Z","repository":{"id":37184119,"uuid":"503188301","full_name":"sari3l/notify","owner":"sari3l","description":"各端、平台快速消息通知程序，支持配置文件形式或API调用","archived":false,"fork":false,"pushed_at":"2024-10-22T09:44:03.000Z","size":107,"stargazers_count":23,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-02T10:37:46.672Z","etag":null,"topics":["api","bark","chanify","dingtalk","discord","executable","feishu","mailgun","notifications","telegram"],"latest_commit_sha":null,"homepage":"","language":"Go","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/sari3l.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":"2022-06-14T02:56:45.000Z","updated_at":"2024-10-22T09:42:30.000Z","dependencies_parsed_at":"2024-06-20T00:06:22.705Z","dependency_job_id":"e155e7a2-c15c-452c-bdaf-bb7506f4981a","html_url":"https://github.com/sari3l/notify","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/sari3l/notify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sari3l%2Fnotify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sari3l%2Fnotify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sari3l%2Fnotify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sari3l%2Fnotify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sari3l","download_url":"https://codeload.github.com/sari3l/notify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sari3l%2Fnotify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274005341,"owners_count":25205934,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"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":["api","bark","chanify","dingtalk","discord","executable","feishu","mailgun","notifications","telegram"],"created_at":"2024-09-10T02:01:17.304Z","updated_at":"2025-09-07T06:31:00.840Z","avatar_url":"https://github.com/sari3l.png","language":"Go","readme":"\u003ch1 align=\"center\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/sari3l/notify/main/static/logo.png\" alt=\"Logo\"/\u003e\u003c/h1\u003e\n\n[![license](https://img.shields.io/github/license/sari3l/notify?style=flat-square)](https://github.com/sari3l/notify/LIENCES)\n[![Go Report Card](https://goreportcard.com/badge/github.com/sari3l/notify)](https://goreportcard.com/report/github.com/sari3l/notify)\n[![CodeFactor](https://www.codefactor.io/repository/github/sari3l/notify/badge)](https://www.codefactor.io/repository/github/sari3l/notify)\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fsari3l%2Fnotify.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fsari3l%2Fnotify?ref=badge_shield)\n\n## Usage\n\n```shell\n\u003e ./notify -h       \nUsage:\n  notify [OPTIONS]\n\nApplication Options:\n  -s, --show        显示配置信息\n  -c, --config=     指定配置文件 (default: $HOME/.config/notify-config.yaml)\n  -i, --id=         指定通知id\n  -l, --level=      指定通告等级 (default: 0)\n  -a, --aboveLevel= 指定最低通告等级\n  -n, --noticer=    指定通知模块\n  -v, --version     版本信息\n\nHelp Options:\n  -h, --help        Show this help message\n```\n\n## 安装\n\n```shell\ngo install -v github.com/sari3l/notify/cmd/notify@latest\n```\n\n## 配置\n\n1. 配置文件默认路径`$HOME/.config/notify-config.yaml`，或通过`-c|--config`指定\n2. 具体每个推送配置、样例见相关路径下 README.md\n\n### 基本设置\n\n每个配置内容下均可以设置三个参数，均可在`-s`中可见\n\n- notifyLevel 指定当前配置等级，默认`0`\n- notifyFormatter 指定当前配置内容占位符，默认`[]`\n- notifyDescription 当前配置内容描述内容，默认`\"\"`\n\n## 支持\n\n- 多参输入\n  - `echo -e \"part1\\npart2\" | notify -n bark`\n  - `notify part1 part22 -n bark`\n- 指定id、level、模块，或最低level广播\n- 多占位自动映射\n  ```golang\n  opt := feishu.Option{Webhook: viper.GetString(\"notify.webhook\")}\n  opt.NotifyFormatter = []string{\"{{part1}}\", \"{{part2}}\"}\n  opt.MsgType = \"text\"\n  opt.Content = map[string]any{\"text\": \"{{part2}}{{part1}}\"}\n  opt.ToNotifer.Send([]string{\"1\",\"2\"})\n  \n  \u003e\u003e 21\n  ```\n\n## Licenses\n\n[GPL v3.0](https://github.com/sari3l/nofity/blob/main/LICENSE)\n\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fsari3l%2Fnotify.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fsari3l%2Fnotify?ref=badge_large)","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsari3l%2Fnotify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsari3l%2Fnotify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsari3l%2Fnotify/lists"}