Go to OpenJSCAD.org (Tested browsers include Chrome, Firefox, Opera, Safari)
cd base-directory-of-website git clone https://github.com/jscad/OpenJSCAD.org cd OpenJSCAD.org cd packages/web . // this is where the web version is cp ../examples ./examples // copy the examples here <start a web server here>
And then access the contents via the URL of the web-site.
NOTE: You might need configuration changes to allow access to the some of the contents (examples etc).
install node.js > 6.0 cd base-directory-of-website git clone https://github.com/jscad/OpenJSCAD.org cd OpenJSCAD.org npm run boostrap cd packages/web . // this is where the web version is cp ../examples ./examples // copy the examples here <start a web server here> modify the code as you see fit (see 'Adding new features the other modules in this repository' section)
if you want the capability , just like the official OpenJSCAD.org site, to load remote projects/files directly from the web based user interface, but without the hassle with CORS issues, you can use a proxy file (see remote.pl & remote.php): this is a server side script that does the following
use and path of the proxy can be set by:
proxyUrlvalue in src/ui/index.js
then you can use it like so: https:///?uri=http://www.thingiverse.com/download:164128 or https:///#http://www.thingiverse.com/download:164128
Note: a PR with a node.js based proxy would be a welcome addition :)
We offer pre-built versions of OpenJSCAD to be uses directly here :
but you can also rebuild them manually if you need :
npm run build-web
npm run build-min
npm run build-opt
Since OpenJSCAD is made up of multiple dependent modules (csg.js, openscad-openjscad-translator etc),
the easiest method is to use
npm link to have a 'live' updating development version of OpenJSCAD:
git clone https://github.com/jscad/OpenJSCAD.org.git
npm run bootstrap
npm run start-dev
Note : you can also change the code in all the other packages/xxx folders and it will also impact the web ui (ie : if you make changes to packages/core in parts that are used in the Web Ui, you do not need to run additional commands)
Then, for example for CSG.js:
git clone https://github.com/jscad/csg.js.git
npm link ../csg.jsto make @jscad/csg refer to local ../csg.js.
You can now make changes to the CSG.js code and see it impact your locally running copy of OpenJSCAD live.
There are a few known issues, please be sure to check this out before submitting additional bug reports/issues.
Q: issues running certain npm commands like
npm run build-web with cnpm
Q: Attempting to use OpenJSCAD from file:// in Chrome results in errors like "File Error: [EncodingError] Please check permissions error."
A: This is a permissions issue in Chrome : restart chrome using the "--allow-file-access-from-files" option
OpenJSCAD.org is part of the JSCAD Organization, and is maintained by a group of volunteers. We welcome and encourage anyone to pitch in but please take a moment to read the following guidelines.
We only accept bug reports and pull requests on GitHub.
If you have a change or new feature in mind, please start a conversation with the Core Developers and start contributing changes.
Small Note: If editing this README, please conform to the standard-readme specification.
See for more details
OpenJSCAD and its sub components are built upon great open source work, contribution & modules
and many more!
Thank you to all our backers! 🙏 [Become a backer]
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]
The MIT License (MIT) (unless specified otherwise)
Drag & drop a local file:
Drag & drop multiple files (Chrome & Firefox) or a folder (Chrome):
That's all for now,
Rene K. Mueller, Jeff Gay, Mark Moissette & JSCAD Organization