2.4.0-alpha.21 • Published 27 days ago

gobot-gotify v2.4.0-alpha.21

Weekly downloads
-
License
ISC
Repository
github
Last release
27 days ago

Gobot

npm.io npm.io npm.io npm.io

Gotify via npm

This package allows you to use Gotify as an npm dependency.

Part of the Gobot project.

Usage

Quick run

npx gobot gotify --version

Quick use

npm i gobot
import { gobot } from 'gobot'
const bot = await gobot(`gotify`)
bot.run([`--version`])

Basic version locking

npm i gobot-gotify

With gobot-gotify present, Gobot will default to the gotify version corresponding to the gobot-gotify version you installed. Now you can use gotify as a real dependency.

import { gobot } from 'gobot'
const bot = await gobot(`gotify`)
bot..run([`--version`])

Locking to a specific version

The gobot-gotify package version always mirrors the underlying gotify version:

npm i gobot-gotify@2.4.0

Override the default version imposed by this package

In rare cases, you may want to intentionally run a different version of gotify even though gobot-gotify is installed.

// Run a specific version (override)
const bot = await gobot(`gotify`, { version: `2.4.0` })
bot.run([`--version`])

// Or the latest version (override)
const bot = await gobot(`gotify`, { version: `*` })
bot.run([`--version`])

Pass environment variables

import { gobot } from 'gobot'
const bot = await gobot(`gotify`, {
  env: process.env, // This is not always necessary, but some apps do need it
})
bot.run([`--version`])

Install globally for CLI access

Exactly one gobot-gotify can be installed globally. It will receive a bin alias:

npm i -g gobot-gotify
gotify --help

# Upgrade to  @latest or any version
npm i -g gobot-gotify@latest

CLI

gobot-gotify comes with a bin shortcut for CLI usage.

gotify [options]

Gotify (https://gotify.net) runner for Gobot (https://github.com/benallfree/gobot)

Options

NameDefaultDiscussion
--g-vtrueShow informational output
--g-vvfalseShow even more output
--g-vvvfalseShow even more output
--g-cache-pathhost specificThe cache path to use
--g-use-version*Run a specific binary version (format: x.y.z semver or x.y.* semver range)
--g-oshost specificSpecify OS/Platform
--g-archhost specificSpecify OS/Platform

API

Full API docs

Quirks

Because Gotify has both client and server binaries, this one is named gotify to signify that it is the server, while the CLI client is gotifyc.

Sample project

View the Gotify sample project on github.

Try Gobot's other apps

Gobot has a growing list (currently 52) of official apps. Have you tried them all?

Getting Help

Join our Discord community.

Why?

If you are writing a nodejs application that depends upon binaries being present (like PocketHost does), you can add this package as a dependency and execute the binary via CLI or programmatically. This package will make sure your desired external binaries are always available.

If you just want to grab a binary quickly for your own use, npx gobot@latest <app> is quite a bit easier than manually downloading zips and installing binaries in shell paths. Gobot handles it all for you effortlessly.

Adding your app to the Gobot registry

We want to add native support for lots of binary apps!

If you use publish statically linked binary releases on github, you are already 98% compatible with Gobot. In fact, Gobot may already know how to work with it.

To see what initial support looks like:

npx gobot inspect <user>/<repo>

This will index all the releases from your repo and show you exactly what Gobot sees.

If you see everything you expect, you're golden. If things are missing, it may mean some custom programming. Either way, jump on Discord and let us know your results.

If you have the flexibility or are starting a new project, make sure your release names follows these rules:

  • Ends in .zip, .tgz, .tar.gz, .bz2
  • Include the version (semver recommended)
  • Include the platform (freebsd, darwin, linux, win32)
  • Include the architecture (arm64, x64, ia32, arm)

Note: GoReleaser is a great option if you're publish a Go-based project.

Contributing

We could use help testing and making sure this works across lots of platforms.

To test a build locally:

pnpm test

All known releases

gobot-gotify versions mirror gotify versions. Gobot knows about 57 releases of gotify:

Versionlinuxwin32
2.4.0arm64/x64/ia32/armx64/ia32
2.3.0arm64/x64/ia32/armx64/ia32
2.2.5arm64/x64/ia32/armx64/ia32
2.2.4arm64/x64/ia32/armx64/ia32
2.2.3arm64/x64/ia32/armx64/ia32
2.2.2arm64/x64/ia32/armx64/ia32
2.2.1arm64/x64/ia32/armx64/ia32
2.2.0arm64/x64/ia32/armx64/ia32
2.1.7arm64/x64/ia32/armx64/ia32
2.1.6arm64/x64/ia32/armx64/ia32
2.1.5arm64/x64/ia32/armx64/ia32
2.1.4arm64/x64/ia32/armx64/ia32
2.1.3arm64/x64/ia32/armx64/ia32
2.1.2arm64/x64/ia32/armx64/ia32
2.1.1
2.1.0arm64/x64/ia32/armx64/ia32
2.0.23arm64/x64/ia32/armx64/ia32
2.0.22arm64/x64/ia32/armx64/ia32
2.0.21arm64/x64/ia32/armx64/ia32
2.0.20arm64/x64/ia32/armx64/ia32
2.0.19arm64/x64/ia32/armx64/ia32
2.0.18arm64/x64/ia32/armx64/ia32
2.0.17arm64/x64/ia32/armx64/ia32
2.0.16arm64/x64/ia32/armx64/ia32
2.0.15arm64/x64/ia32/armx64/ia32
2.0.14arm64/x64/ia32/armx64/ia32
2.0.13arm64/x64/ia32/armx64/ia32
2.0.12arm64/x64/ia32/armx64/ia32
2.0.11arm64/x64/ia32/armx64/ia32
2.0.10arm64/x64/ia32/armx64/ia32
2.0.9arm64/x64/ia32/armx64/ia32
2.0.8arm64/x64/ia32/armx64/ia32
2.0.7arm64/x64/ia32/armx64/ia32
2.0.6arm64/x64/ia32/armx64/ia32
2.0.5arm64/x64/ia32/armx64/ia32
2.0.4arm64/x64/ia32/armx64/ia32
2.0.3arm64/x64/ia32/armx64/ia32
2.0.2arm64/x64/ia32/armx64/ia32
2.0.1arm64/x64/armx64
2.0.0arm64/x64/armx64
1.2.1arm64/x64/armx64
1.2.0arm64/x64/armx64
1.1.8arm64/x64/armx64
1.1.7arm64/x64/armx64
1.1.6arm64/x64/armx64
1.1.5arm64/x64/armx64
1.1.4arm64/x64/armx64
1.1.3arm64/x64/armx64
1.1.2arm64/x64/armx64
1.1.1arm64/x64/armx64
1.1.0arm64/x64/armx64
1.0.5arm64/x64/armx64
1.0.4arm64/x64/armx64
1.0.3arm64/x64/armx64
1.0.2arm64/x64/armx64
1.0.1arm64/x64/armx64
1.0.0arm64/x64/armx64
2.4.0-alpha.21

27 days ago

2.4.0-alpha.20

28 days ago

2.4.0-alpha.19

1 month ago

2.4.0-alpha.18

1 month ago

2.2.3-alpha.17

2 months ago