dat.gui is a cool JavaScript ilbrary that gives you a control panel for manipulating variables and calling functions in your code. It’s lightweight and simple to implement – just a few lines of code.
Control panels like this are a great way to show off how dynamic creative JavaScript experiments really are. You can see how Hakim uses it in his Textify.it project, or how Paul Lewis uses it in his numerous HTML5 experiments.
You can download dat.gui from the website, or check out the source on Google Code.