npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

gobot-caddy

v2.7.6-alpha.23

Published

Caddy helper for Gobot

Downloads

21

Readme

Gobot

Caddy via npm

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

Part of the Gobot project.

Usage

Quick run

npx gobot caddy --version

Quick use

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

Basic version locking

npm i gobot-caddy

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

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

Locking to a specific version

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

npm i [email protected]

Override the default version imposed by this package

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

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

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

Pass environment variables

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

Access the child process

import { gobot } from 'gobot'
const bot = await gobot(`caddy`, {
  env: process.env,
})
const exitCode = await bot.run(
  [`--help`],
  { cwd: `./foo` }, // SpawnOptions
  (proc) => {
    // ChildProcess
    proc.stdout.on('exit', (code) => {
      console.log(`process has exited`)
    })
  },
)

Install globally for CLI access

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

npm i -g gobot-caddy
caddy --help

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

CLI

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

caddy [options]

Caddy (https://caddyserver.com/) runner for Gobot (https://github.com/benallfree/gobot)

Options

| Name | Default | Discussion | | ----------------- | --------------- | --------------------------------------------------------------------------- | | --g-v | true | Show informational output | | --g-vv | false | Show even more output | | --g-vvv | false | Show even more output | | --g-cache-path | host specific | The cache path to use | | --g-use-version | * | Run a specific binary version (format: x.y.z semver or x.y.* semver range) | | --g-os | host specific | Specify OS/Platform | | --g-arch | host specific | Specify OS/Platform |

API

Full API docs

Sample project

View the Caddy sample project on github.

Try Gobot's other apps

Gobot has a growing list (currently 53) 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-caddy versions mirror caddy versions. Gobot knows about 112 releases of caddy:

| Version | freebsd | darwin | linux | win32 | | ------------- | ------------------ | --------- | ------------------ | --------- | | 2.7.6 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64/arm64 | | 2.7.5 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64/arm64 | | 2.7.4 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64/arm64 | | 2.7.3 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64/arm64 | | 2.7.2 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64/arm64 | | 2.7.1 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64/arm64 | | 2.7.0 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64/arm64 | | 2.7.0-beta.2 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64/arm64 | | 2.7.0-beta.1 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64/arm64 | | 2.6.4 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64/arm64 | | 2.6.3 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64/arm64 | | 2.6.2 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64/arm64 | | 2.6.1 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64/arm64 | | 2.6.0 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64/arm64 | | 2.6.0-beta.5 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64/arm64 | | 2.6.0-beta.3 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64/arm64 | | 2.5.2 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64/arm64 | | 2.5.1 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64/arm64 | | 2.5.0 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64/arm64 | | 2.5.0-rc.1 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64/arm64 | | 2.5.0-beta.1 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64/arm64 | | 2.4.6 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64/arm64 | | 2.4.5 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64/arm64 | | 2.4.4 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64/arm64 | | 2.4.3 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64 | | 2.4.2 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64 | | 2.4.1 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64 | | 2.4.0 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64 | | 2.4.0-rc.1 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64 | | 2.4.0-beta.2 | arm64/x64/arm | arm64/x64 | arm64/x64/arm | x64 | | 2.4.0-beta.1 | arm64/x64/arm | x64 | arm64/x64/arm | x64 | | 2.3.0 | arm64/x64/arm | x64 | arm64/x64/arm | x64 | | 2.3.0-rc.1 | arm64/x64/arm | x64 | arm64/x64/arm | x64 | | 2.3.0-beta.1 | arm64/x64/arm | x64 | arm64/x64/arm | x64 | | 2.2.1 | arm64/x64/arm | x64 | arm64/x64/arm | x64 | | 2.2.0 | arm64/x64/arm | x64 | arm64/x64/arm | x64 | | 2.2.0-rc.3 | arm64/x64/arm | x64 | arm64/x64/arm | x64 | | 2.2.0-rc.2 | arm64/x64/arm | x64 | arm64/x64/arm | x64 | | 2.2.0-rc.1 | arm64/x64/arm | x64 | arm64/x64/arm | x64 | | 2.1.1 | arm64/x64/arm | x64 | arm64/x64/arm | x64 | | 2.1.0 | arm64/x64/arm | x64 | arm64/x64/arm | x64 | | 2.1.0-beta.1 | arm64/x64/arm | x64 | arm64/x64/arm | x64 | | 2.0.0 | arm64/x64/arm | x64 | arm64/x64/arm | x64 | | 2.0.0-rc.3 | arm64/x64/arm | x64 | arm64/x64/arm | x64 | | 2.0.0-rc.2 | arm64/x64/arm | x64 | arm64/x64/arm | x64 | | 2.0.0-rc.1 | arm64/x64/ia32/arm | x64 | arm64/x64/ia32/arm | x64/ia32 | | 2.0.0-beta9 | | | | | | 2.0.0-beta8 | | | | | | 2.0.0-beta7 | | | | | | 2.0.0-beta6 | | | | | | 2.0.0-beta4 | | | | | | 2.0.0-beta3 | | | | | | 2.0.0-beta2 | | | | | | 2.0.0-beta12 | | | | | | 2.0.0-beta11 | | | | | | 2.0.0-beta10 | | | | | | 2.0.0-beta1 | | | | | | 2.0.0-beta.20 | | | | | | 2.0.0-beta.19 | | | | | | 2.0.0-beta.18 | | | | | | 2.0.0-beta.17 | | | | | | 2.0.0-beta.15 | | | | | | 2.0.0-beta.14 | | | | | | 2.0.0-beta.13 | | | | | | 1.0.4 | x64 | x64 | arm64/x64/ia32 | x64 | | 1.0.3 | x64 | x64 | arm64/x64/ia32 | x64 | | 1.0.2 | x64 | x64 | arm64/x64/ia32 | x64 | | 1.0.1 | x64 | x64 | arm64/x64/ia32 | x64 | | 1.0.0 | x64 | x64 | arm64/x64/ia32 | x64 | | 1.0.0-beta2 | x64 | x64 | arm64/x64/ia32 | x64/ia32 | | 1.0.0-beta1 | x64 | x64 | arm64/x64/ia32 | x64/ia32 | | 0.11.5 | x64 | x64 | arm64/x64/ia32 | x64/ia32 | | 0.11.4 | x64 | x64 | arm64/x64/ia32 | x64/ia32 | | 0.11.3 | | x64 | arm64/x64/ia32 | x64/ia32 | | 0.11.2 | | | | | | 0.11.1 | x64 | x64 | arm64/x64/ia32 | x64/ia32 | | 0.11.0 | x64 | x64 | arm64/x64/ia32 | x64/ia32 | | 0.10.14 | x64 | x64 | arm64/x64/ia32 | x64/ia32 | | 0.10.13 | x64 | x64 | arm64/x64/ia32 | x64/ia32 | | 0.10.12 | x64 | x64 | arm64/x64/ia32 | x64/ia32 | | 0.10.11 | x64 | x64 | arm64/x64/ia32 | x64/ia32 | | 0.10.10 | x64 | x64 | arm64/x64/ia32 | x64/ia32 | | 0.10.9 | x64 | x64 | arm64/x64/ia32 | x64/ia32 | | 0.10.8 | x64 | x64 | arm64/x64/ia32 | x64/ia32 | | 0.10.7 | x64 | x64 | arm64/x64/ia32 | x64/ia32 | | 0.10.6 | x64 | x64 | arm64/x64/ia32 | x64/ia32 | | 0.10.5 | x64 | x64 | arm64/x64 | x64/ia32 | | 0.10.4 | x64 | x64 | arm64/x64/ia32 | x64/ia32 | | 0.10.3 | x64 | x64 | arm64/x64 | x64/ia32 | | 0.10.2 | x64 | x64 | arm64/x64/ia32 | x64/ia32 | | 0.10.1 | x64 | x64 | arm64/x64/ia32 | x64/ia32 | | 0.10.0 | x64 | x64 | arm64/x64 | x64/ia32 | | 0.9.5 | x64/ia32 | x64 | arm64/x64/ia32 | x64/ia32 | | 0.9.4 | x64/ia32 | x64 | arm64/x64/ia32 | x64/ia32 | | 0.9.3 | x64/ia32 | x64 | arm64/x64/ia32 | x64/ia32 | | 0.9.2 | x64/ia32 | x64 | arm64/x64/ia32 | x64/ia32 | | 0.9.1 | x64/ia32 | x64 | arm64/x64/ia32 | x64/ia32 | | 0.9.0 | x64/ia32 | x64 | arm64/x64/ia32 | x64/ia32 | | 0.8.3 | x64/ia32 | x64 | arm64/x64/ia32 | x64/ia32 | | 0.8.2 | x64/ia32/arm | x64 | x64/ia32/arm | x64/ia32 | | 0.8.1 | x64/ia32/arm | x64 | x64/ia32/arm | x64/ia32 | | 0.8.0 | x64/ia32/arm | x64 | x64/ia32/arm | x64/ia32 | | 0.7.6 | x64/ia32/arm | x64 | x64/ia32/arm | x64/ia32 | | 0.7.5 | x64/ia32/arm | x64 | x64/ia32/arm | x64/ia32 | | 0.7.4 | x64/ia32/arm | x64 | x64/ia32/arm | x64/ia32 | | 0.7.3 | x64/ia32/arm | x64 | x64/ia32/arm | x64/ia32 | | 0.7.2 | x64/ia32/arm | x64 | x64/ia32/arm | x64/ia32 | | 0.7.1 | x64/ia32/arm | x64 | x64/ia32/arm | x64/ia32 | | 0.7.0 | x64/ia32/arm | x64 | x64/ia32/arm | x64/ia32 | | 0.6.0 | x64/ia32/arm | x64 | x64/ia32/arm | x64/ia32 | | 0.5.1 | x64/ia32/arm | x64 | x64/ia32/arm | x64/ia32 | | 0.5.0 | x64/ia32/arm | x64 | x64/ia32/arm | x64/ia32 |