Various older version of Clayworks are available from this site for free, with full source available. Up-to-date versions will become available in due course.

The source code for 2.x and 3.x versions are available both here as zip file and from github. You can also run these in the browser from the links provided.