The source code is released under the very permissive MIT license, so you can do pretty much anything you want with it.
At runtime Carota has no external dependencies. You just pull in the carota-min.js file using the SCRIPT tag and away you go. Or else get node and use:
npm install carota
to get the full source, including this demo site. By the way, Carota itself is displaying all this text, meaning that you can play with the editor right now! Try Ctrl+A and then Backspace to clear this document and see how the JSON view on the right changes as you make further edits. Press Ctrl+Z to undo your changes.
Image / Demo:
GitHub / Download:
The MIT License (MIT)