Took me a bit to figure out that Total.js is a framework and the Slack clone (Messenger) is built on top of it.
Total.js itself appears to be 15k lines in a single file with no dependencies, built and maintained by one guy (for the most part). Insanity.