{"name":"@jennifer/slack","description":"Post messages to Slack through an Incoming Webhook","versions":{"0.1.0":{"version":"0.1.0","kind":"git","url":"https://github.com/jennifer-language/deck-slack.git","ref":"0.1.0","commit":"bb0d872adda627e828d1b5619ec46b7604a206f6","checksum":"","yanked":false,"license":"LGPL-3.0-only","requires":{},"engines":{"jennifer":"\u003e=0.25.0"},"capabilities":["net"],"keywords":["slack","notifications","webhook","block-kit"],"description":"Post messages to Slack through an Incoming Webhook","publishedAt":"1793614618","repoId":1442163616,"repoOwnerId":305727207,"repoOwner":"jennifer-language"}},"readme":"# @jennifer/slack\n\n[![test](https://github.com/jennifer-language/deck-slack/actions/workflows/test.yml/badge.svg)](https://github.com/jennifer-language/deck-slack/actions/workflows/test.yml)\n[![Documentation](https://img.shields.io/badge/docs-github%20pages-blue)](https://jennifer-language.github.io/deck-slack/)\n[![release](https://img.shields.io/github/v/release/jennifer-language/deck-slack)](https://github.com/jennifer-language/deck-slack/releases/latest)\n\nPosts messages to a Slack channel through an Incoming Webhook from a\n[Jennifer](https://jennifer-lang.dev/) program, as plain text or as Block Kit\nblocks. Replaces the `slack` module of Jennifer's standard library (shipped\nsince 0.18.0, deprecated from 0.26.0, removed in 0.28.0); the API is\nunchanged, only the import differs.\n\n**[Documentation](https://jennifer-language.github.io/deck-slack/)**\n\n## Install\n\n```sh\njvc add @jennifer/slack\n```\n\nThis vendors the deck to `vendor/jennifer/slack/`. Without `jvc`, unpack the\n`src/` subtree of a release archive (`jennifer-slack-\u003cversion\u003e.tar.gz`) there.\n\n## Usage\n\n```jennifer\nimport \"@jennifer/slack/\" as slack;\nimport \"http.j\" as http;\n\ndef url as string init os.getEnv(\"SLACK_WEBHOOK_URL\");\ndef r as http.Response init slack.send($url, \"deploy finished\");\nio.printf(\"%d\\n\", $r.status);   # 200 with body \"ok\"; a bad webhook is 4xx, not an error\n```\n\n`examples/post.j` posts a plain and a Block Kit message.\n\n## Requirements\n\nJennifer 0.25.0 or newer and network access to `hooks.slack.com`. Posts need\nthe default `jennifer` binary; the stock `jennifer-tiny` has no network driver.\n\n## Development\n\n```sh\ntools/check-all.sh                   # the full gate, as CI runs it\njennifer test src/slack_test.j       # the test overlay\ntools/check-docs.sh                  # docs against the code\ntools/pack.sh dist                   # build the release archive\n```\n\n## Licence\n\nLGPL-3.0-only, see [LICENSE](LICENSE). Copyright (C) 2026 mplx \u0026lt;mplx@jennifer-lang.dev\u0026gt;.\n\n`tools/check-headers.sh` checks every source file's SPDX header against\n`deck.toml`.\n"}