a mini interactive javascript console for library/plugin demos and homepages
Clone or download
wjcrowcroft Merge pull request #20 from kgividen/patch-1
LICENSE MIT via kgividen/patch-1
Latest commit 95b97e9 Jan 3, 2018


JavaScript Sandbox Console

js sandbox console screenshot

a javascript playground to enhance demos and homepages for javascript libraries, plugins and scripts, giving visitors an easy and chilled-out way to test-drive functionality.

see the project homepage for a live demo, features, installation guide and more info.

maintained by Open Exchange Rates (see it in action on the money.js homepage).



  • Now maintained by Open Exchange Rates
  • Improved documentation


  • Added setValue method, to programmatically set the value inside the sandbox


  • Added an iframe setting on the Sandbox Model that creates a hidden iframe and evaluates all commands inside its 'sandboxed' scope - effectively blocking access to global variables.
  • Added a script loader method sandbox.model.load to inject a script into the page (or the iframe).
  • Added :load special command, available from the sandbox command line, to bootstrap any script into the global context (most useful in iframe mode. E.g.: :load http://code.jquery.com/jquery-1.6.4.js


  • Added very basic stringification for objects. If JSON.stringify(obj) works, it prints the result, otherwise it's obj.toString()


  • Mirrored gh-pages and master branches


  • Added view.toEscaped() method to escape HTML strings for safe output templating


  • First release