@rulecad/fixings 0.0.0-stage → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 JoniBach and contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,37 @@
1
- # Temporary Holding Version
1
+ # @rulecad/fixings
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Screws, nuts, washers and inserts described by rule sets, and the holes and seats they need in a printed part. Part
4
+ of [rulecad](https://github.com/JoniBach/rulecad), a kit for designing physical things where every measurement says
5
+ which rule it comes from.
6
+
7
+ **This is a first release that holds the name.** It installs and loads, and it has no functions to call yet. They
8
+ arrive with 0.1.0. Until then there is no reason to install it.
9
+
10
+ ```js
11
+ import { status } from '@rulecad/fixings'
12
+ status.release // 'placeholder' now, 'ready' from 0.1.0
13
+ ```
14
+
15
+ ## What it will do
16
+
17
+ - **A fixing as a model from its rules.** `fixingModel('M3x12 cap')` gives the head, the clearances, the tap drill
18
+ and the pitch, each with the standard it comes from. Metric from M1.6 to M12, and inch sizes.
19
+ - **Holes by purpose.** A clearance hole, a pilot a screw cuts its own thread in, a hole to tap, a hole for an
20
+ insert: the design says what the hole is for, and the rules and the printer size it.
21
+ - **Seats.** Counterbores, countersinks, nut pockets, nut traps and insert bosses that print without supports.
22
+ - **Reference hardware.** Light solids of screws, nuts, washers and inserts for an assembly.
23
+ - **Threads cut for printing**, for the large threads where that is worth doing.
24
+ - **Strength and length.** Whether enough thread is engaged, the load that strips it, and the sold length that fits
25
+ a stack of parts.
26
+
27
+ In `@rulecad/cad` it becomes `v.fixings` in designs and a `fasten` relation in assemblies that checks a screwed
28
+ joint and puts every screw on the shopping list.
29
+
30
+ ## Where the work is
31
+
32
+ The plan and its tickets are in [issue 212](https://github.com/JoniBach/rulecad/issues/212). The specification is
33
+ `docs/fixings-and-frames.md` in the repository.
34
+
35
+ ## Licence
36
+
37
+ MIT.
package/fixings.d.mts ADDED
@@ -0,0 +1,9 @@
1
+ /**
2
+ * What this release is. `release` is `'placeholder'` until the package has functions to call (0.1.0), then `'ready'`:
3
+ * code that wants fixings can test it instead of failing on a missing export.
4
+ * @type {Readonly<{ release: 'placeholder' | 'ready', plan: string }>}
5
+ */
6
+ export const status: Readonly<{
7
+ release: "placeholder" | "ready";
8
+ plan: string;
9
+ }>;
package/fixings.mjs ADDED
@@ -0,0 +1,10 @@
1
+ // @rulecad/fixings: screws, nuts, washers and inserts from rule sets, and the holes and seats they need.
2
+ // This first release holds the package's name on npm so the release workflow can publish what follows; the functions
3
+ // arrive with 0.1.0. The plan is https://github.com/JoniBach/rulecad/issues/212.
4
+
5
+ /**
6
+ * What this release is. `release` is `'placeholder'` until the package has functions to call (0.1.0), then `'ready'`:
7
+ * code that wants fixings can test it instead of failing on a missing export.
8
+ * @type {Readonly<{ release: 'placeholder' | 'ready', plan: string }>}
9
+ */
10
+ export const status = Object.freeze({ release: 'placeholder', plan: 'https://github.com/JoniBach/rulecad/issues/212' });
package/package.json CHANGED
@@ -1,6 +1,27 @@
1
1
  {
2
2
  "name": "@rulecad/fixings",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.1",
4
+ "description": "Screws, nuts, washers and inserts from rule sets, and the holes and seats they need in printed parts. A first release that holds the name while the package is built: it installs and has nothing to call yet.",
5
+ "type": "module",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./fixings.d.mts",
9
+ "default": "./fixings.mjs"
10
+ }
11
+ },
12
+ "types": "./fixings.d.mts",
13
+ "files": [
14
+ "fixings.mjs",
15
+ "fixings.d.mts",
16
+ "README.md",
17
+ "LICENSE"
18
+ ],
19
+ "license": "MIT",
20
+ "keywords": ["screws", "fasteners", "threads", "3d-printing", "jscad", "cad"],
21
+ "engines": { "node": ">=20.10" },
22
+ "sideEffects": false,
23
+ "repository": { "type": "git", "url": "git+https://github.com/JoniBach/rulecad.git", "directory": "packages/fixings" },
24
+ "homepage": "https://github.com/JoniBach/rulecad/tree/main/packages/fixings#readme",
25
+ "bugs": { "url": "https://github.com/JoniBach/rulecad/issues" },
26
+ "scripts": { "test": "node --test" }
27
+ }