Is the cli package also included in the web version?
I posted a prompt suggesting the addition of some generative ai capabilities. In running the app locally I see that it is system linking the
@jscad/webpackages and running the
postInstall.jsscript, but then after successfully bootstrapping it's running this
My goal is to create a prompt input area in the editor.js section, but we will need a server side capabilities to keep the api key to which ever ai api we send the prompt commands to.
Fairly easy integration.
z3dev last edited by
The website doesn't have a backend service/process. Everything is handled by the browser, including loading designs.
The only trick is for designs provided an a URL parameter. In this case, the URL is posted to a little script that reads the contents, stores the file locally, and returns the URL to the local file.
Of course, some other backend service could be added.
@z3dev The only reason I wanted the cli was node.js to access environment variables server side.
z3dev last edited by z3dev
@Jason-Sprouse what you installed was the WHOLE project, which requires NODEJS, NPM, etc. you will find the code for the CLI and the WEBUI. Once setup, you can change the code, run tests, add new functionality, etc. The packages are linked together.
The CLI can be installed directly from NPM. See the README for the CLI.
It's not node based, and just uses a minified compiled version of jscad.