Nerdy Sunday: Twisted Facebook IM with AIR in the Elastic Cloud?

Today I stumbled into AirApps, an index of apps using the Adobe AIR platform, which reminded me of this TechQuila Shots post describing an idea for a desktop IM client based on the Facebook API (your Facebook friends are your “buddies” and the client is a Facebook app). Pretty simple, pretty brilliant. I thought it’d make a good candidate for an AIR app. I then decided to check out existing IM and IM-like AIR apps to see what had already been done.

One app I discovered was AIRChat, which was written to chat with people on the AIRBus. I never figured out what the AIRBus was because I got distracted by the source code for the chat server. It’s written with the Python Twisted networking framework, which I’d heard of, so I clicked through to see what the code looks like. It’s INCREDIBLY terse. The two files that make it up are less than 60 lines of code, total: AirChat.py - AirService.py

It’s running on an Amazon EC2 cluster. It’s a very simple app, but it’s still damn impressive…

Leave a Reply