use
gowsay
Cowsay in a browser, no install
Type a message and an ASCII cow says it, as cowsay does in a terminal. Pick one of 49 cows and 8 moods, then copy the art or share a link that draws the same cow.
The page is a Go program that also installs with go install as a
gowsay command for the terminal. gowsay serve runs the page
and a JSON API on a host of your own.
The Slack command, /moo, needs that host and a Slack app's signing
secret.
why it exists
The original cowsay is a Perl script with separate cow files. It runs in a terminal and has no HTTP API.
gowsay is one program that answers in a terminal, on a web page, over an API and in Slack.
what it taught
One function draws every cow gowsay shows, including the cow already on the page when it loads. A request for gowsay.1mb.dev/?t=hello&m=dead returns the dead-eyed cow inside the HTML, with no script run.