Social Reactions is an open-source widget that allows affiliates to display a product together with social reactions about it (just from Twitter right now).
It's written in Ruby and works on Sinatra. You can get the code here:
Social Reactions on Github
(git clone git://github.com/2performant/2Performant-Social-Reactions.git)