Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

gorilator

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gorilator

One command to install, run, and supervise the Gorilator RPG game server natively (no Docker) as a systemd/launchd service, with an optional Cloudflare Tunnel setup.

latest
Source
npmnpm
Version
1.9.0
Version published
Maintainers
1
Created
Source

🦍 gorilator

One command to install, run, and supervise the Gorilator RPG game server natively — no Docker. It clones the game, builds it from source, and registers it as a boot-persistent OS service (systemd on Linux, launchd on macOS) that you control from anywhere with the global gorilator command. An optional gorilator setup wires it to a public Cloudflare hostname.

Prefer containers? The repo still ships Docker Compose and a one-click Railway template — see the project's DEPLOY.md. This CLI is the Docker-free path.

Install

npx gorilator install

This will:

  • Check prerequisites (Node ≥ 20.6, git, pnpm — installing supported missing pieces).
  • Clone the game to /opt/gorilator (Linux) or ~/.gorilator/app (macOS).
  • pnpm install, build the shared schema, build the same-origin client, and build this CLI.
  • Generate .env (server port, monitor credentials, a stable Nostr signing key).
  • Register and start a service whose main server port serves the client page, WebSocket, monitor, and API (plus an optional direct local client port for convenience).
  • Install/refresh the global npm gorilator command, persist npm's global bin directory on PATH when needed, and print the local URLs and monitor credentials.

On a bare box with no Node yet, bootstrap everything with the public single-file installer. On supported Linux/macOS systems it installs ca-certificates, curl, git, Node, then runs the same native CLI as npx gorilator install:

curl -fsSL https://raw.githubusercontent.com/agustinkassis/gorilator-rpg/main/packages/cli/install.sh | sudo bash

From a checked-out repo on Windows, use the Node/Command Prompt wrapper instead of the POSIX shell wrapper:

pnpm gorilator install
.\packages\cli\gorilator.cmd install

Go public — gorilator setup

gorilator setup

Opens an arrow-key setup menu with categories for server settings, server NSEC, Cloudflare, and Colyseus/environment settings. Choosing Cloudflare install/update prompts for a base domain and one game subdomain (default game.<domain>), then:

  • Installs & authorizes cloudflared, creates the gorilator-rpg tunnel, and routes DNS for that host.
  • Writes an ingress that routes game.<domain> → the server port.
  • Rebuilds the client same-origin (VITE_SAME_ORIGIN=1) and restarts the daemon — so the page, WebSocket, monitor, and API all share HTTPS/WSS on the same public origin. Setup also disables the optional dedicated local client port, leaving one local game port behind the tunnel.
  • Runs cloudflared as a boot service and prints your public URLs.
Direct:      http://host:2567   client + WebSocket    ┐ one native process
             http://host:8080   optional client page  ┘ only with --client-port 8080

Cloudflare ─▶ game.<domain> ─▶ localhost:2567
              client page + WebSocket + monitor + API

Manage the daemon

gorilator status      # service state + health check + local & public URLs   (alias: info)
gorilator start       # start the service (prints the port it listens on)
gorilator stop        # stop the service
gorilator restart     # restart the service
gorilator logs        # show recent logs; add --follow, --lines, --filter, --since
gorilator update      # stop services, git pull, rebuild, start services
gorilator remote      # compare local package versions against remote/latest
gorilator setup       # interactive setup menu: ports, NSEC, Cloudflare, env
gorilator tunnel <cmd># Cloudflare tunnel — login | status | restart
gorilator plugin <cmd># plugins — list | enable | disable | add <path|npub> (--link)
gorilator uninstall   # stop and remove services, config, command, and installed files
gorilator help <cmd>  # show detailed help for any command

gorilator uninstall removes the local Gorilator daemon, local tunnel service/config, install record, global npm command, and installed app directory. Use --keep-files, --keep-command, or --keep-tunnel to preserve those parts.

Requirements

  • Node.js ≥ 20.6 (the runtime that runs npx/the daemon).
  • git (to fetch the game source).
  • Linux (systemd) or macOS (launchd). Linux uses a system service and may prompt for sudo; macOS uses a per-user LaunchAgent (no sudo).
  • Windows can run the checkout/npm wrappers, but the native service installer is still limited to Linux/macOS. Use WSL/Linux/macOS for gorilator install service deployment.
  • For setup: a domain on Cloudflare (free plan is fine). No DNS records to pre-create — setup makes them.

Configuration

gorilator install accepts flags and environment overrides:

FlagEnvDefaultMeaning
--repo <url>GORILATOR_REPOhttps://github.com/agustinkassis/gorilator-rpg.gitGame source repository
--ref <ref>GORILATOR_REFmainBranch or tag to deploy
--dir <path>GORILATOR_DIR/opt/gorilator · ~/.gorilator/appWhere the game is cloned
--port <n>GAME_SERVER_PORT2567Server port (WebSocket + monitor + API)
--client-port <n>CLIENT_PORTOptional dedicated local port for the client page
--yesGORILATOR_YES=1Assume "yes" to prompts (non-interactive)
--skip-serviceInstall/build only; don't register the OS service
--skip-tunnelDon't offer the Cloudflare setup after install
--local-cli <pkg>GORILATOR_LOCAL_CLIInstall the global command from a local path/tarball (testing)

gorilator setup is interactive by default. It reads GORILATOR_DOMAIN and GORILATOR_HOST/GORILATOR_GAME_HOST for non-interactive Cloudflare runs. Legacy GORILATOR_SERVER_HOST/GORILATOR_CLIENT_HOST are accepted as fallbacks.

License

MIT

Keywords

gorilator

FAQs

Package last updated on 11 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts