Ifhttp
👾 HTTP REST server for Z-Machine interactive fiction
Install / Use
/learn @statico/IfhttpREADME
ifhttp
ifhttp provides an HTTP REST interface for interacting with Z-Machine interactive fiction (IF) stories (typically .z8 files). Clients can connect to the service to start a game and then POST commands to it. Sessions are deleted after a while in a feeble attempt to save memory. This service is definitely DoS-able.
See a live example on https://www.langworth.com/
Usage
$ docker pull ghcr.io/statico/ifhttp
$ docker run -p 8080:8080 -v /path/to/stories:/data ghcr.io/statico/ifhttp npm run -s start -- /data/story.z8
API
All request and response bodies should be JSON. In addition to a status code, requests may return a JSON object with an error property which describes the error.
GET /new
Returns a session ID for a new game.
Response:
{
"session": "<id>",
"output": "<text>"
}
POST /send
Sends a command to the game.
Request:
{
"session": "<id>",
"message": "<user input>"
}
Response:
{
"output": "<text>"
}
Reference
Related Skills
bluebubbles
346.4kUse when you need to send or manage iMessages via BlueBubbles (recommended iMessage integration). Calls go through the generic message tool with channel="bluebubbles".
gh-issues
346.4kFetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]
healthcheck
346.4kHost security hardening and risk-tolerance configuration for OpenClaw deployments
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
