A proof of concept for a web API that can export 3MF files from a parametric OpenSCAD model. A typical use would be to have a form on a website that allows users to enter the desired parameters, then submit the form to an API endpoint, allowing the user to download the generated 3MF file.
You can see an example of how this can be embedded into a webpage here: https://hanno.braun-odw.eu/notes/spacer/
The API is a webserver written in Rust, running in a Docker container. I chose Docker, because it provided a way to also ship OpenSCAD in the same container.
If you don't want to run your own server, there are a lot providers that host Docker containers. I've been using Clever Cloud and I'm very happy with them.
Build and run the development version:
Build and run the production version:
docker build -t model-api . docker run -p 80:80 model-api
This project is open source, licensed under the terms of the Zero Clause BSD License (0BSD, for short). This basically means you can do anything with it, without any restrictions, but you can't hold the author liable for problems.
See LICENSE.md for all details.