No description
  • TypeScript 100%
Find a file
keeb 1c9c22e510 Publish @keeb-namespaced types (rename @user→@keeb); bump to 2026.05.25.1
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-25 16:57:06 -07:00
.claude/skills/terraria feat: add embedded terraria skill for AI agents 2026-04-06 18:35:41 -07:00
extensions/models Publish @keeb-namespaced types (rename @user→@keeb); bump to 2026.05.25.1 2026-05-25 16:57:06 -07:00
.gitignore Initial commit: @keeb/terraria swamp extension 2026-02-27 12:31:12 -08:00
.swamp.yaml Initial commit: @keeb/terraria swamp extension 2026-02-27 12:31:12 -08:00
CLAUDE.md Add repository and tags to manifest 2026-03-02 22:01:59 -08:00
manifest.yaml Publish @keeb-namespaced types (rename @user→@keeb); bump to 2026.05.25.1 2026-05-25 16:57:06 -07:00
README.md Publish @keeb-namespaced types (rename @user→@keeb); bump to 2026.05.25.1 2026-05-25 16:57:06 -07:00

@keeb/terraria

Swamp extension for Terraria (tModLoader) server control via Docker and tmux over SSH.

Models

terraria/server

Control a Terraria server running in a Docker container with tmux.

Method Description
warnShutdown Send in-game countdown warnings before shutdown and wait 30 seconds
status Query player count and player names from the tmux pane
collectMetrics Collect player count and write Prometheus textfile metrics

Global arguments: sshHost, sshUser (default root), containerName (default tmodloader), serverName (default server).

Workflows

None — Terraria server start/stop is handled through docker/compose workflows. Metrics collection runs via the collect-game-metrics workflow from @keeb/minecraft.

Dependencies

Install

swamp extension pull @keeb/terraria

Usage

Warn players before a maintenance window, then read the current player list:

# Broadcast "SERVER SHUTTING DOWN IN 30 SECONDS" and sleep 30s
swamp model method run my-terraria warnShutdown

# Query current players — writes the "server" resource with online/players
swamp model method run my-terraria status
swamp model get my-terraria --json

License

MIT — see LICENSE.