Building a Mastodon Client in to my Cyberpunk SSH App

  • February 3, 2023

Let me quickly get you up to speed: I wanted to build a website for my hacker projects, but instead of a website I ended up building an SSH app (because I’m weird). Basically, instead of visiting it in your web browser you have to open your terminal, run an SSH command, and then you use text commands to play with the application, read about my projects, etc.

Actually, there is a website, but it just plays a video demo and gives you a button to click if you want to check it out: hydrox.fun

Where does Mastodon fit in? Well, embedded in this application is a very simple and specific Mastodon client.

I thought it would be cool if users of the app could send me a message somehow and I thought it would be really cool if I could reply and they could see it in the app. Basically, this would give people a pseudo-anonymous way for them to message “Hydrox” through the app in a fun “80s Hacker Movie” kinda style.

Here’s a demo:

So how does this work? It’s all via the Mastodon API, which is very simple and great for project like this (or a Shortcut to easily post on Mac, iOS, or iPadOS).

The SSH app is written in go, and heavily uses the wonderful Charm libraries for the animation, graphics, and the SSH wrapper. I’m also using the Mastodon library, go-mastodon.

This was a fun silly project, but I wanted to quickly demo it here as the promise of Mastodon, and open social platforms in general, is really exciting. There’s a lot of things we can do with this now that there is something approaching critical mass!

If you want to talk about the app, you can use the app (!!) at ssh://hydrox.fun:1337…or you just hit me up on Mastodon directly. Either way is fine, but one isn’t as cool an hackery as the other.

Related Posts

Post to Mastodon v2.2 - Bug Fixes and Setup Questions

Another update regarding my Post to Mastodon Apple Shortcut automation, which is now at version 2.2! Specifically, I’ve learned two things about Apple Shortcuts today: Their logic for input type sucks and is very buggy. You can set setup questions so people don’t have to edit the shortcut after they download it!

Read more

Post to Mastodon v2 Shortcut - Image Support

Yesterday I released an Apple Shortcut (macOS, iOS, and iPadOS) that will allow you to quickly post to your Mastodon instance. As you might imagine, it received a little traction on Mastodon including the following feedback: A feature request already? Over the holidays?! I don’t have time to figure out…it’s done!

Read more

Posting to Mastodon via Shortcuts

The best thing to come out of Elon Musk’s Twitter purchase (and then backing out of the purchase, and then purchase, and then massive layoffs, and allowing crazies back on Twitter, and whatever happened today) is that Mastodon has been so much fun! One extremely minor annoyance has been the lack of good Mastodon clients, and while TapBots is hard at work on that right now, it makes posting on Mastodon a little bit harder than it was on Twitter.

Read more