{"id":16245442,"url":"https://github.com/mmalecki/catchnhole","last_synced_at":"2026-01-28T13:01:56.122Z","repository":{"id":37489177,"uuid":"486615802","full_name":"mmalecki/catchnhole","owner":"mmalecki","description":"An ergonomic way to create nutcatches, screw holes and countersinks in OpenSCAD.","archived":false,"fork":false,"pushed_at":"2023-06-07T13:24:11.000Z","size":200,"stargazers_count":43,"open_issues_count":3,"forks_count":6,"subscribers_count":5,"default_branch":"latest","last_synced_at":"2025-06-04T09:07:45.740Z","etag":null,"topics":["mechanical-engineering","openscad"],"latest_commit_sha":null,"homepage":"","language":"OpenSCAD","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mmalecki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-28T13:56:02.000Z","updated_at":"2025-06-03T14:30:05.000Z","dependencies_parsed_at":"2024-10-20T19:22:42.021Z","dependency_job_id":null,"html_url":"https://github.com/mmalecki/catchnhole","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/mmalecki/catchnhole","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmalecki%2Fcatchnhole","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmalecki%2Fcatchnhole/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmalecki%2Fcatchnhole/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmalecki%2Fcatchnhole/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mmalecki","download_url":"https://codeload.github.com/mmalecki/catchnhole/tar.gz/refs/heads/latest","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmalecki%2Fcatchnhole/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28845768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T12:37:07.070Z","status":"ssl_error","status_checked_at":"2026-01-28T12:37:06.657Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mechanical-engineering","openscad"],"created_at":"2024-10-10T14:26:24.397Z","updated_at":"2026-01-28T13:01:56.099Z","avatar_url":"https://github.com/mmalecki.png","language":"OpenSCAD","funding_links":[],"categories":[],"sub_categories":[],"readme":"# catchnhole\nBecause `nutsnbolts` was taken.\n\nAn ergonomic way to create nutcatches, screw holes and countersinks in OpenSCAD.\n\n![Nutcatches, screw holes and countersinks](examples/simple.png).\n\n## Requirements and installation\n**`catchnhole` uses OpenSCAD's JSON `import`, which is only present in the [nightly\nbuild](https://github.com/openscad/openscad#building-openscad), and must be\nenabled** (`Edit` -\u003e `Preferences` -\u003e `Features` -\u003e `import-function`).\n\nAdd a git submodule to your project:\n\n```sh\ngit submodule add https://github.com/mmalecki/catchnhole catchnhole\n```\n\n## Usage\n```openscad\nuse \u003ccatchnhole/catchnhole.scad\u003e;\n\ndifference () {\n  translate([-5, -5, 0]) cube([10, 10, 10]);\n\n  // Draw a nutcatch parallel to bolt shaft:\n  nutcatch_parallel(\"M3\");\n  // Draw a bolt gripping the nutcatch:\n  bolt(\"M3\", length = 10);\n\n  // Or, draw a nutcatch sidecut into the part:\n  translate([0, 0, 4]) {\n    nutcatch_sidecut(\"M3\");\n    // Draw a bolt gripping the nutcatch:\n    bolt(\"M3\", length = 6);\n  }\n}\n```\nFor more advanced usage, see the [`examples` directory](./examples).\n\n### API\n\n#### `bolt(name, length, kind = \"headless\", head_diameter_clearance = 0.1, countersink = 0)`\nDraw a bolt up the Z axis, with head at the top.\n\nArguments:\n  * `name` (string) - name of the bolt, e.g. `\"M3\"`\n  * `length` (number) - length of the bolt\n  * `kind` (string) - the kind of the bolt, available values:\n    * `\"headless\"` - no bolt head\n    * `\"socket_head\"` - socket head cap (ISO 4762)\n    * `\"countersunk\"` - countersunk head (ISO 10642, DIN 7991)\n    * `\"hex_head\"` - hex head (ISO 4014)\n  * `head_diameter_clearance` - how much side clearance to leave for the bolt head, where applicable\n  * `head_top_clearance` - how much top clearance to leave for the bolt head, where applicable\n  * `length_clearance` - how much clearance to leave for the bolt past `length` (down the Z axis; useful if your origin point is a nut and your `length` is calculated, or just want to allow for longer bolts)\n  * `countersink` (number) - how much to \"countersink\" the bolt - move it down by the `countersink` * bolt head length\n\n#### `bolt_head(name, kind, head_diameter_clearance = 0.1)`\nDraw a bolt head up the Z axis.\n\nArguments:\n  * `name` (string) - name of the bolt, e.g. `\"M3\"`\n  * `kind` (string) - the kind of the bolt, available values:\n    * `\"socket_head\"` - socket head cap (ISO 4762)\n    * `\"countersunk\"` - countersunk head (ISO 10642)\n    * `\"hex_head\"` - hex head (ISO 4014)\n  * `head_diameter_clearance` - how much side clearance to leave for the bolt head, where applicable\n  * `head_top_clearance` - how much top clearance to leave for the bolt head, where applicable\n\n#### `nutcatch_parallel(name, height_clearance = 0, width_clearance = 0)`\nDraw a nutcatch parallel to the bolt axis.\n\nArguments:\n  * `name` (string) - name of the nut, e.g. `\"M3\"`\n  * `kind` (string) - the kind of the nut, available values:\n    * `\"hexagon\"` - hexagon (ISO 4032)\n    * `\"hexagon_thin\"` - thin hexagon (ISO 4035)\n    * `\"hexagon_lock\"` - hexagon locknut (ISO 7040)\n  * `height_clearance` (number) - additional nut height clearance\n  * `width_clearance` (number) - additional nut width clearance\n\n#### `nutcatch_sidecut(name, height_clearance = 0, width_clearance = 0)`\nDraw a nutcatch sidecut into the part:\n\nArguments:\n  * `name` (string) - name of the nut, e.g. `\"M3\"`\n  * `kind` (string) - the kind of the nut, as noted in `nutcatch_parallel`\n  * `height_clearance` (number) - additional nut height clearance\n  * `width_clearance` (number) - additional nut width clearance\n\n## Acknowledgements\n* The [authors](https://github.com/boltsparts/boltsparts/graphs/contributors) of the [BOLTS](https://github.com/boltsparts/boltsparts) library\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmalecki%2Fcatchnhole","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmalecki%2Fcatchnhole","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmalecki%2Fcatchnhole/lists"}