Since postgres has basic json type support now, and PL/Javascript exists, it's only a matter of time until an extension appears that lets you deploy javascript applications directly to the database.
Who needs CouchDB or Node.js when you can just say CREATE EXTENSION 'couchnodegres.js'