Scrobblio is a project mainly written in ..., it's free.
node/sockets.io rendering of friendly scrobbles