{"name":"@jennifer/gotify","description":"Push notifications to a Gotify server","versions":{"0.1.0":{"version":"0.1.0","kind":"git","url":"https://github.com/jennifer-language/deck-gotify.git","ref":"0.1.0","commit":"c84b8ffac7237850eb1b9a51e3a2c29ffda90d2d","checksum":"","yanked":false,"license":"LGPL-3.0-only","requires":{},"engines":{"jennifer":"\u003e=0.25.0"},"capabilities":["net"],"keywords":["gotify","notifications","push"],"description":"Push notifications to a Gotify server","publishedAt":"1793208184","repoId":1434258463,"repoOwnerId":305727207,"repoOwner":"jennifer-language"}},"readme":"# @jennifer/gotify\n\n[![test](https://github.com/jennifer-language/deck-gotify/actions/workflows/test.yml/badge.svg)](https://github.com/jennifer-language/deck-gotify/actions/workflows/test.yml)\n[![Documentation](https://img.shields.io/badge/docs-github%20pages-blue)](https://jennifer-language.github.io/deck-gotify/)\n[![release](https://img.shields.io/github/v/release/jennifer-language/deck-gotify)](https://github.com/jennifer-language/deck-gotify/releases/latest)\n\nSends push notifications to a [Gotify](https://gotify.net) server from a\n[Jennifer](https://jennifer-lang.dev/) program, with optional markdown bodies\nand tap-to-open URLs. Replaces the `gotify` module of Jennifer's standard\nlibrary (shipped since 0.18.0, deprecated from 0.26.0, removed in 0.28.0);\nthe API is unchanged, only the import differs.\n\n**[Documentation](https://jennifer-language.github.io/deck-gotify/)**\n\n## Install\n\n```sh\njvc add @jennifer/gotify\n```\n\nThis vendors the deck to `vendor/jennifer/gotify/`. Without `jvc`, unpack the\n`src/` subtree of a release archive (`jennifer-gotify-\u003cversion\u003e.tar.gz`) there.\n\n## Usage\n\n```jennifer\nimport \"@jennifer/gotify/\" as gotify;\nimport \"http.j\" as http;\n\ndef g as gotify.Config init gotify.Config{url: os.getEnv(\"GOTIFY_URL\"), token: os.getEnv(\"GOTIFY_TOKEN\")};\ndef r as http.Response init gotify.push($g, \"Deploy\", \"build 1234 is live\", 5);\nio.printf(\"%d\\n\", $r.status);   # 200; a wrong token is 401, not an error\n```\n\n`examples/push.j` pushes a plain and a tap-to-open notification.\n\n## Requirements\n\nJennifer 0.25.0 or newer and network access to the Gotify server. Pushes 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/gotify_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"}