Try out Machina below. It runs Machina containerized in a WASM webworker for demo purposes, native version runs faster. You can change the code to change the object or download the STL file. For full API description, issues and contributing see Github.
Machina is CAD software with a code interface. It stems from frustration with using expensive and complex software tools to create and design simple objects to print on my 3D printer. Machina will be an opensource python library that will allow scriptable parametric design in the spirit of existing solutions like CadQuery, OpenSCAD, FreeCAD, etc. Defining objects in code will unlock automation (build pipelines), LLM interfacing and easy diff-inspection. Crucial to cad software is the geometric kernel, Machina is built upon the excellent Manifold library that is 1000x faster than other open source kernels.
For now Machina is very alpha and very 'work in progress'. Updates will be published on this webpage and on Github.