[jdev] making XMPP friendly for web developers / buddycloud HTTP API server

Simon Tennant simon at buddycloud.com
Sun Nov 4 20:04:36 UTC 2012

During the summit we chatted about the need to make XMPP more web-dev friendly.

We started out trying to build the buddycloud web client on BOSH. And while it's certainly possible, the complexity quickly escalated. So Denis, as part of the Google Summer of code program built the buddycloud HTTP API server.


[HTTP requests] ------> [API server + session magic] -----> [XMPP server]

Web developers can now send and receive JSON "100% angle bracket free", and the API server takes care of authentication and translating the the requests into XML and shoving them off the the XMPP server.

The API server maintains a session that a client can re-use by passing through a X-Session-Id token with each HTTP request.

The code is written in Node and is at https://github.com/buddycloud/buddycloud-http-api (Apache license).

We're using it for the buddycloud HTTP API: https://buddycloud.org/wiki/Buddycloud_HTTP_API and have found it very easy to extend with new API endpoints.

Hope it can be useful to people outside of buddycloud too.

Simon Tennant | buddycloud.com | +49 17 8545 0880 | office hours goo.gl/tQgxP

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20121104/ebdca539/attachment.html>

More information about the JDev mailing list