Wave-gadgets is a project mainly written in JavaScript, it's free.
gadgets source code for google wave