danmarshall / jscad-now

🧱👀 Instantly view a jscad V2 module while coding
MIT License
22 stars 6 forks source link
3d 3d-models 3d-printing jscad openjscad

jscad-now

🧱👀 Instantly view a jscad V2 module while coding

jscad-now

jscad-now is a live reloading viewer powered by budo and browserify and the @jscad/regl-renderer. It is an offline way to help you develop your local jscad models.

Installation

This tool is meant to be installed globally on your machine, so that you can invoke it in any folder where you are developing a model.

npm install -g jscad-now

Usage

Navigate a terminal to any jscad project folder. Enter:

jscad-now <path-to-your-jscad-file>.js

A local web server starts, and a browser appears where you can view your model and adjust its parameters.

Press ENTER in the terminal when you are finished viewing to stop the server and clean up the temp file.

Features

To-do

  1. Download the current model via @jscad/io
  2. Configurable port number (run multiple instances)
  3. Parameter type coercion