Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execution via node.js, is it possible? #43

Open
brad-jones opened this issue Dec 10, 2020 · 3 comments
Open

Execution via node.js, is it possible? #43

brad-jones opened this issue Dec 10, 2020 · 3 comments

Comments

@brad-jones
Copy link

This might already be possible but I couldn't see any docs or obvious entrypoint CLI tool to do this? Can WASM be used with node???

Say I have a JS/TS script that defines my model can I use node.js (not the browser) to then export an STL/STEP/SVG/etc file?
Similar to the example given by CadQuery https://cadquery.readthedocs.io/en/latest/installation.html#test-your-installation

I like the idea of using say VsCode on one screen to edit the JS/TS script and then having a simple STL viewer open on another screen watching for changes. This is similar to how I can use both OpenSCAD and CadQuery.

Other use cases would be the ability to have a CI/CD pipeline that say automatically generates various exports like an STL, 2d plans, bill of materials, slices it into gcode if your 3d printing & then creates a new github release with such assets just like you would if it were a traditional software package that your pipeline was compiling & releasing.

@zalo
Copy link
Owner

zalo commented Dec 18, 2020

I believe node.js can execute WebAssembly, but I've never used node.js so I wouldn't know where to start 🙃

A barebones cli version of CascadeStudio that just uses the StandardLibrary and the WASM to generate .stl's would be interesting though...

@Irev-Dev
Copy link

Irev-Dev commented Jan 6, 2021

I think VS-code extension and generalising this all a bit more, node etc would be awesome.

I'm tempted to attempt so of this. I can't in the immediate future.

@gabrielgriesser
Copy link

Any news for that ?

I'm trying to use Cascade Studio as a VueJS component. But it's complicated to export main elements and reuse them in VueJS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants