How bullwinkle3000/dactyl-keyboard works
Project type and purpose
• This is a Python-based model generator (“open-source tool”) for creating parameterized ergonomic keyboard geometries (Dactyl-Manuform and trackball clusters) in CAD formats (OpenSCAD/STEP/STL).
• It provides a CLI and scripts to load JSON configurations, assemble geometric primitives via CadQuery or SolidPython/OpenSCAD, and output ready-to-print 3D models.
File structure
• Top-level scripts:
• dactyl_manuform.py: main entrypoint
• generate_configuration.py: builds or mutates run_config.json
• model_builder.py / bulk_build.py / builder.py: orchestrate batch and single-run builds
• Configuration:
• configs/default.json
• run_config.json / run_config.yaml
• src/json/…: library of JSON snippets (materials, mounts, options, clusters)
• Core source tree (src/):
• src/clusters: cluster classes (strategy-pattern—each subclass encapsulates a thumb/trackball cluster)
• src/helpers_*: abstraction over geometry engines (CadQuery vs. SolidPython)
• src/json_loader.py: loads & merges JSON fragments into in-memory config
• src/build_report.py: reporting/logging
• src/model_builder.py: high-level build step
• Output directories:
• things/: final generated SCAD, STEP, STL, DXF files
• DevOps and environment:
• Dockerfile, build scripts (run.sh, dactyl.sh, Makefile)
• conda.sh, shell.nix, .github/workflows/release.yaml
README for additional insights
• Two “ENGINES”: “solid” (OpenSCAD/SolidPython) vs. “cadquery” (OpenCascade via CadQuery).
• Multiple runner environments: Docker, Conda, direct Python.
• Workflow: configure → run dactyl_manuform.py → files drop into things/
• Extensibility points: “overrides” JSON, custom clusters, custom plate geometry imports.