You can use Clay by opening clay.html in Chrome or a similar modern browser.
Clay is the document and also the tool; when you create a document using clay and save it as another HTML file, that HTML file can also create documents.
Specifically, it's a single HTML file with zero outside dependencies that allows you to experiment with arbitrary Javascript code and also save all your work including the output, ready to edit when the saved file is loaded again.
Technologies Used
No libraries used for DOM manipulation or event handling; just doing it straight was good enough and led to much fewer total lines of code, and being cross platform wasn't my goal.
- Dedicated Web Worker to act as a sandbox for Javascript code execution
- LDT -- A lightweight decorator for text areas. Way better for our purposes than CodeMirror and its ilk. Also, I love that it doesn't have dependencies.
-
console.save -- I adapted this into
console.saveHtml