{"id":13755208,"url":"https://github.com/onebeyond/systemic-slack","last_synced_at":"2025-10-14T16:13:49.847Z","repository":{"id":42825492,"uuid":"265861522","full_name":"onebeyond/systemic-slack","owner":"onebeyond","description":"Simple systemic component to send messages or files in Slack to any room","archived":false,"fork":false,"pushed_at":"2023-07-20T11:48:44.000Z","size":177,"stargazers_count":2,"open_issues_count":6,"forks_count":1,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-09-25T17:02:21.512Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/systemic-slack","language":"JavaScript","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/onebeyond.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}},"created_at":"2020-05-21T13:54:03.000Z","updated_at":"2023-03-05T13:21:05.000Z","dependencies_parsed_at":"2024-01-13T03:12:09.385Z","dependency_job_id":null,"html_url":"https://github.com/onebeyond/systemic-slack","commit_stats":null,"previous_names":["guidesmiths/systemic-slack"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/onebeyond/systemic-slack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onebeyond%2Fsystemic-slack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onebeyond%2Fsystemic-slack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onebeyond%2Fsystemic-slack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onebeyond%2Fsystemic-slack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onebeyond","download_url":"https://codeload.github.com/onebeyond/systemic-slack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onebeyond%2Fsystemic-slack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279019558,"owners_count":26086750,"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-10-14T02:00:06.444Z","response_time":60,"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":[],"created_at":"2024-08-03T10:00:48.797Z","updated_at":"2025-10-14T16:13:49.819Z","avatar_url":"https://github.com/onebeyond.png","language":"JavaScript","funding_links":[],"categories":["Modules"],"sub_categories":[],"readme":"[![Maintainability](https://api.codeclimate.com/v1/badges/0838d2212b7b743931cc/maintainability)](https://codeclimate.com/github/onebeyond/systemic-slack/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/0838d2212b7b743931cc/test_coverage)](https://codeclimate.com/github/onebeyond/systemic-slack/test_coverage)\n\n# systemic-slack\nsystemic-slack\n\nSimple systemic component to send messages or files in Slack to any room.\n\n## Environment variables\n* SLACK_TOKEN - Slack API token [Slack Token Page](https://api.slack.com/tokens)  \n\n## Usage\n```js\nconst System = require('systemic')\nconst slack = require('systemic-slack')\n\nnew System()\n    .configure({\n        slack: {\n          token: process.env.SLACK_TOKEN\n        }\n    })\n    .add('logger', console)\n    .add('slack', slack()).dependsOn('config')\n    .start((err, components) =\u003e {\n        /// do anything with components.slack\n    })\n```\n\n## How to send a message\n\nUse the client method `chat.postMessage`, documentation is available [here](https://api.slack.com/methods/chat.postMessage)\n```js\nawait components.slack.chat.postMessage({\n  channel: 'CXXXXXX', // channel ID\n  text, // Text to send\n});\n```\n\n## How to send a file\n\nUse the client method `files.upload`, documentation is available [here](https://api.slack.com/methods/files.upload)\n```js\nconst {createReadStream} = require('fs');\nslackClient.files.upload({\n  filepath,\n  title,\n  channels: [ 'CXXXXXXX' ],\n  file: createReadStream(filepath),\n});\n```\n\n\n## Message format\nMessage content can be formated using MarkDown syntax [Markdown cheatseet](https://www.markdownguide.org/cheat-sheet/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonebeyond%2Fsystemic-slack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonebeyond%2Fsystemic-slack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonebeyond%2Fsystemic-slack/lists"}