Skip to content
A Riak-powered Ajax-polling chatroom. Not for production use!
Pull request Compare This branch is 2 commits ahead, 11 commits behind seancribbs:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



A simple web-based chatroom app. Designed as a proof-of-concept for
Ben Black’s Riak training at VelocityConf 2010.

Features / Problems

  • Everything is stored and served out of Riak. Take that, couchapps!
  • Tested in Chrome, Safari, Firefox. Other browsers, caveat emptor.
  • Remembers your login credentials via unencrypted cookies.
  • Randomizes the polling interval to avoid dogpile effects.
  • Uses full-bucket map-reduce, so won’t perform well at huge numbers of messages.
  • Use gravatar, should you decide not to remain anonymous.


  1. Startup Riak locally on the standard HTTP port (8098).
  2. Join your local node to the cluster, if necessary.
  3. Run the bash script.
  4. Visit

Learn more

Read the source! The majority of the work is in yakriak.js, and the
map and reduce functions in the yakmr/ directory.

Credit where credit’s due

  • jQuery 1.4.2 (jQuery team)
  • riak-javascript-client (Basho)
  • json2.js (Douglas Crockford)
  • cookie.js (Maxime Haineault, John W. Long)
  • md5.js (Paul Johnston)
Something went wrong with that request. Please try again.