Victus Spiritus

home

Distributed Social App with CouchDB. Brilliant!

05 Oct 2010


While learning how to best lay the groundwork for a shared media application, I happened upon an early alpha of a distributed social app on CouchDB. The couchapp allows anyone to register and begin posting so try it out. There's no federation yet, but additional couch databases can be continuously replicated. The distributed nature of the application spawns by setting up two way replication or synchronization between multiple nodes. This is one of the benefits of couchDB that makes it a great system for media sharing, and why I've decided to build on it.

The couchapp was crafted by the skilled PDX web hacker Max Ogden. I know of Max's knack for building through my cofounder Tyler. While I've been busy reading docs on couchapp frameworks, Max has been busy crafting one app after another. This post is a tip of the hat to Mr. Ogden's work, good hacking.

The source can be found/forked here on github. Max implemented (cloned) the Diaspora interface protocol. But thats where the technical resemblance to the XMPP concept developed by the Diaspora team ends.

*update* Max mentioned he's also planning to make couchappspora fully ostatus compliant. Here's his github repo for that effort.

ostatus-js: an attempt to implement OStatus in JavaScript:
note: This will most likely always require E4X

OStatus consists of the following protocols:

  • WebFinger
  • PortableContacts
  • Activity Streams
  • PubSubHubBub
  • Atom
  • Salmon