I wanted a simple project that I thought would interest other people. With my knowledge of ANSI terminal escape sequences and a little inspiration from parrot.live, I decided to make a site that would automatically generate and stream ascii-rendered GIFs to a terminal (using
curl downloads data over TCP and streams the output to the terminal. Putting escape sequences in the data streamed from server to client means that you can clear the terminal, change colors, and more.
If you're interested in learning more about how it technically works, I recommend reading the Wikipedia article on ANSI escape codes.
How I built it
Flask as a webserver, because I only really needed one endpoint and it is very simple without being a pain to work with. Python is easy to prototype out with as well. Dockerizing the implementation did not take very long and is very useful for portability. Deploying on an Ubuntu server was particularly easy since the project was Dockerized.
I plan to release the source code as soon as I have the chance to clean it up.
curl ssh.bz in your terminal to view an animated party parrot.
To view any GIF, run
For example, running
curl ssh.bz/?url=https://media.giphy.com/media/IB9foBA4PVkKA/giphy.gif will reveal an animated parrot in your terminal.