# CaseCraft 3D > CaseCraft 3D is a browser app that generates 3D-printable enclosures (a box and a matching lid) from parameters: size, walls, lid closure, PCB standoffs, connector cutouts, ventilation, text, dividers, screws and more. This guide teaches an AI assistant to design one and hand it back as a link that opens the design in the app, ready to export as STL, 3MF or STEP. You are designing a CaseCraft design: a JSON object of parameters. Everything is in millimetres unless stated. You only write the fields you want to change; every other field keeps its default. Unknown keys and values of the wrong type or outside the allowed values are silently replaced by the default, so spell keys and values exactly as listed here. ## How to answer 1. Work out the design (see the rules and the parameter reference below). 2. Write the JSON with only the sections and fields that differ from the defaults. 3. Answer with a link that opens it: the address of the site this guide came from (normally `https://casecraft-3d.netlify.app`) followed by `/#json=` and the JSON percent-encoded as JavaScript's `encodeURIComponent` does it. Example: `https://casecraft-3d.netlify.app/#json=%7B%22dimensions%22%3A%7B%22width%22%3A80%7D%7D` opens an 80 mm wide box. - Encode the whole JSON, with no spaces or line breaks in it. If you cannot run code, encode at least `{` `%7B`, `}` `%7D`, `"` `%22`, `[` `%5B`, `]` `%5D`, space `%20`, `#` `%23`, `%` `%25` and `&` `%26`; letters, digits and `-_.:,` may stay as they are (they are valid in the part of a URL after `#`). - Check the JSON is valid before encoding it (balanced braces, double quotes, no trailing commas). 4. Also give the same JSON in a ```json code block. If the link does not open, the user pastes the JSON into **Design with AI → Open the result** in the app. 5. List the main sizes you chose: outer and inner size, wall thickness, lid closure, what goes where. Clicking the link asks the user before it replaces the design they are editing. The header badge then shows the CAD check: **CAD Ready**, warnings or errors. Ask the user to tell you about errors, and fix them. To change an existing design, the user gives you its JSON (only the changed fields). Keep those fields and change what was asked. ## Coordinates and sizes - **Axes:** X runs left → right, Y runs front → back, Z runs up. The origin is the centre of the box body. - **Faces:** `"front"` (−Y), `"back"` (+Y), `"left"` (−X), `"right"` (+X), `"bottom"` (the floor). - **Outer size:** `dimensions.width` / `depth` / `height` are always the **outer** size of the box body along X / Y / Z. `height` runs from the underside of the floor to the rim and does not include the lid. - **`dimensions.mode` affects the app's sliders only.** `"inner"` makes them show the cavity size, but the stored numbers stay outer. To get a cavity of W × D × H, write: - `width = W + wallLeft + wallRight`; - `depth = D + wallFront + wallBack`; - `height = H + wallBottom`. - With uniform walls, every wall is `wallThickness`. - **Lid height:** - **Friction or snap lid:** the plate sits on the rim, so the closed case is `height + lid.topThickness` tall. - **Lid lip:** a ring of `lid.lipThickness` that hangs `lid.height` into the cavity along the walls. Nothing on the walls may sit in that top band (cutouts, vents). Parts inside must stay below it, or keep more than `lipThickness` + `tolerance` away from the walls. - **Sliding lid:** the plate is recessed into the walls, so the closed height is `height`. - **Cavity centre:** the cavity is centred on the origin when opposite walls are equally thick. With unequal walls its centre is `((wallLeft − wallRight) / 2, (wallFront − wallBack) / 2)`. - Standoff offsets and module holder positions are measured from the cavity centre. - Cutout `u` is measured from the origin. ## Design rules that work - **Walls:** 1.6–2.4 mm (4–6 lines of a 0.4 mm nozzle); 2 mm is a sturdy default. Floor the same as the walls. - **Clearance around a board:** 1.5 mm or more on each side between the PCB and the walls. Add room for connectors and cables that stick out. - **Inner height:** standoff height + PCB thickness + the tallest part above the PCB's top + 2 mm. If the user gives a height measured from the PCB's underside, it already includes the PCB. - Add `lid.height` when the board comes within `lipThickness` + `tolerance` of a wall, or tall parts sit there. Otherwise the lip, a thin ring along the walls, misses them. - **Lid fit:** `lid.tolerance` 0.2 mm suits most printers; 0.25–0.3 for looser ones. A snap lid needs `lid.height` ≥ 2 × `snapDepth` + 3. - **Connector cutouts:** centre the hole on the connector. Its height above the floor is the standoff height + PCB thickness + half the connector height. Make the hole 0.4–1 mm larger than the connector; the presets below already are. - **Cutout height limit:** a wall cutout must stay below the lid lip: `v + height/2 ≤ height − wallBottom − lid.height`. - **Standoffs:** M2 (hole 1.8, post 5), M2.5 (hole 2.3, post 6), M3 (hole 2.8, post 7), M4 (hole 3.8, post 9). Posts need 0.5 mm clear of the walls. - **Board clips:** a board without mounting holes uses `standoffs.layout: "clips"`. It needs 2.6 mm free beside each long edge for the clips. - **Text:** engraved text deeper than the wall cuts through. Keep `depth` ≤ wall − 0.4. Common boards (PCB size, mounting holes centre to centre): - **Raspberry Pi 5 / 4 B / 3 B+:** PCB 85 × 56 × 1.4, M2.5 holes 58 × 49. The hole rectangle sits 3.5 mm in from the PCB's left, front and back edges. - The USB and Ethernet end is on the right. - Power and HDMI are along the front edge. - **Raspberry Pi Zero 2 W:** PCB 65 × 30 × 1, M2.5 holes 58 × 23, 3.5 mm in from every edge. - **Raspberry Pi Pico:** PCB 51 × 21 × 1, M2 holes 47 × 11.4, centred on the PCB. - The Micro-USB is centred on one short end and sticks out 1.3 mm. - Its centre is 1.4 mm above the PCB top, so use the Micro-USB preset on that end wall, at `u` of the board's centre. - **Arduino Uno R3:** PCB 68.6 × 53.3 × 1.6, M3 holes at (13.97, 2.54), (15.24, 50.8), (66.04, 7.62) and (66.04, 35.56) from the PCB's front-left corner. Use `layout: "custom"` with these as `points`. - **ESP32-DevKitC:** PCB 48.3 × 27.9 × 1.6, no mounting holes. Use `layout: "clips"`. - The antenna sticks out 6 mm past one end. - The Micro-USB is on the other end. For these boards the app's **Settings → Fit to a Board** sizes the box exactly and adds the port cutouts. Suggest it when the user names one. Connector cutout presets (`shape`, `width` × `height`, `cornerRadius`): | Connector | shape | width × height | cornerRadius | | --- | --- | --- | --- | | USB-C | `"slot"` | 9.6 × 3.8 | 0 | | Micro-USB | `"rect"` | 8.4 × 3.4 | 0.8 | | Mini-USB | `"rect"` | 8.4 × 4.6 | 0.5 | | USB-A | `"rect"` | 13.6 × 6.2 | 0.5 | | HDMI | `"rect"` | 15.6 × 6.4 | 0.5 | | Micro-HDMI | `"rect"` | 7.6 × 3.8 | 0.6 | | RJ45 (Ethernet) | `"rect"` | 16.4 × 13.8 | 0.5 | | SD card | `"rect"` | 26 × 3.2 | 0 | | DC barrel jack 5.5 mm | `"circle"` | 8.2 (diameter) | 0 | | 12 mm push button | `"circle"` | 12.4 (diameter) | 0 | | 5 mm LED | `"circle"` | 5.2 (diameter) | 0 | ## Parameter reference Format: `section.field` (type, default; range) — meaning. Ranges are the app's sliders. Values outside them are not rejected but may give odd geometry or a CAD error. ### dimensions — size, walls, corners - `dimensions.mode` (`"outer"` | `"inner"`, default `"outer"`) — Which size the app's sliders show. The stored size is always outer; see Coordinates. - `dimensions.width` (mm, 100; 10–1000) — Outer size along X. - `dimensions.depth` (mm, 80; 10–1000) — Outer size along Y. - `dimensions.height` (mm, 50; 10–1000) — Outer height of the body, floor underside to rim, lid excluded. - `dimensions.wallThickness` (mm, 2; 0.8–10) — Thickness of every wall and the floor while `uniformWalls` is true. - `dimensions.uniformWalls` (bool, true) — false: use the five per-side fields below instead. - `dimensions.wallFront`, `dimensions.wallBack`, `dimensions.wallLeft`, `dimensions.wallRight`, `dimensions.wallBottom` (mm, 2; 0.8–10) — Per-side wall and floor thickness, used only when `uniformWalls` is false. - `dimensions.cornerStyle` (`"chamfer"` | `"round"`, default `"chamfer"`) — Shape of the four outer vertical edges. - `dimensions.cornerSize` (mm, 1; 0 up to the side wall thickness) — Chamfer size or corner radius. - `dimensions.seamTrap` (bool, false) — A tiny V-notch on a rear outer corner, so the slicer hides its Z-seam there. - `dimensions.seamTrapCorner` (`"back_left"` | `"back_right"`, default `"back_left"`) — Which rear corner gets the notch. - `dimensions.seamTrapDepth` (mm, 0.45; 0.2–1) — Depth of the notch. ### lid — closure and fit - `lid.enabled` (bool, true) — Make a matching lid. - `lid.style` (`"friction"` | `"snap"` | `"slide"`, default `"friction"`): - `"friction"`: a lip slides inside the walls. - `"snap"`: the lip has bumps that click into grooves in the two long walls. - `"slide"`: a flat plate slides in from the front along grooves in the left, right and back walls. The front wall is cut down to the grooves. No lip; it does not combine with screws, magnets, dividers, stacking, or wire slots on the left/right/back. - `lid.height` (mm, 10; 2–20) — Lip height: how far the lip hangs into the cavity. Must be less than the inner height. - `lid.tolerance` (mm, 0.2; 0–1) — Gap per side between the lip and the walls. - `lid.topThickness` (mm, 2; 0.8–10) — Thickness of the lid plate. - `lid.uniformLip` (bool, true) — false: use the per-side lip thicknesses. - `lid.lipThickness` (mm, 2; 0.8–10) — Lip wall thickness while `uniformLip` is true. - `lid.lipFront`, `lid.lipBack`, `lid.lipLeft`, `lid.lipRight` (mm, 2; 0.8–10) — Per-side lip thickness, used only when `uniformLip` is false. - `lid.snapDepth` (mm, 0.5; 0.3–0.8) — How far the snap bumps stick out. `"snap"` only. - `lid.magnets` (bool, false) — Pockets for disc magnets in matching corner blocks of the box and lid. Not with corner screws or a sliding lid. - `lid.magnetDiameter` (mm, 6; 3–10) — Magnet diameter (the pocket adds 0.2). - `lid.magnetThickness` (mm, 2; 1–5) — Magnet thickness (the pocket adds 0.2). ### screws — corner screws holding the lid Four bosses inside the lid lip's corners; screws go horizontally through the box walls into them. Needs a friction or snap lid. - `screws.enabled` (bool, false) — Add corner screws. Turns magnets off. - `screws.holeSide` (`"x_sides"` | `"y_sides"`, default `"x_sides"`) — Screws through the left/right walls, or through the front/back walls. - `screws.bossShape` (`"horizontal_rib"` | `"square_chamfer"` | `"square_fillet"` | `"column"` | `"gusseted_column"` | `"chamfer"`, default `"horizontal_rib"`) — Shape of the bosses. - `screws.bossRadius` (mm, 5; 1–15) — Boss radius or size. - `screws.bossLength` (mm, 6; 1–25) — How far a boss reaches in from the wall. - `screws.bossHeight` (mm, 8; 1 up to `lid.height`) — Boss height down the lip. - `screws.cornerOffset` (mm, 6) — Distance along the wall from the lip corner to the screw axis. - `screws.holeDepthOffset` (mm, 5; 1.5 up to `lid.height` − 1) — Depth of the screw axis below the rim. - `screws.guideType` (`"dimple"` | `"through_hole"` | `"none"`, default `"dimple"`) — Drill guide in the boss: a dimple to drill out, a pilot hole, or none (solid boss). - `screws.holeDiameter` (mm, 2; 1–4) — Pilot hole diameter. - `screws.headSink` (`"none"` | `"countersink"` | `"counterbore"`, default `"none"`) — Recess for the screw head in the wall. Pilot holes only. - `screws.headDiameter` (mm, 4; holeDiameter + 0.4 to 8) — Head recess diameter at the surface. - `screws.headDepth` (mm, 1.2; 0.4 to wall − 0.4) — Counterbore depth. ### standoffs — PCB mounting - `standoffs.enabled` (bool, false) — Add standoffs (posts with screw holes) or board clips. - `standoffs.layout` (`"rect"` | `"custom"` | `"clips"`, default `"rect"`): - `"rect"`: four holes `width` × `depth` apart. - `"custom"`: the holes listed in `points`. - `"clips"`: a board without holes rests on its short ends and snaps under four clips on its long sides. - `standoffs.width` (mm, 50) — `"rect"`: hole spacing (centre to centre) along X. - `standoffs.depth` (mm, 40) — `"rect"`: hole spacing along Y. - `standoffs.points` (array of `{ "x", "y" }`, empty) — `"custom"`: hole centres in board coordinates with any origin (copy them from the board drawing). The pattern is centred on its bounding box, then moved by the offset. - `standoffs.offsetX`, `standoffs.offsetY` (mm, 0) — Where the pattern's centre (for clips: the board's centre) sits relative to the cavity centre, along X / Y. - `standoffs.height` (mm, 6; 1 to the inner height) — Post height above the floor; for clips, the height of the PCB underside. - `standoffs.outerDiameter` (mm, 6; 3–20) — Post diameter. - `standoffs.holeDiameter` (mm, 2.8; 1 to outerDiameter − 1) — Screw pilot hole diameter (screw presets are under Design rules). - `standoffs.holeDepth` (mm, 5; 1 to height) — Blind hole depth from the post top. - `standoffs.throughHole` (bool, false) — Bore the holes through the floor instead. - `standoffs.boardWidth`, `standoffs.boardDepth` (mm, 50 and 25; 5–200) — `"clips"`: PCB size along X / Y. - `standoffs.pcbThickness` (mm, 1.6; 0.6–3) — `"clips"`: PCB thickness. ### holders — more clipped boards - `holders.items` (array, empty) — Extra small boards held in clips like `"clips"` standoffs (a charger, a sensor). They work with or without standoffs. Each item has: - `holders.items[].id` (string) — Any unique text; leave it out and one is made. - `holders.items[].x`, `holders.items[].y` (mm) — Board centre relative to the cavity centre. - `holders.items[].width`, `holders.items[].depth` (mm; 5–200) — PCB size along X / Y. - `holders.items[].pcbThickness` (mm; 0.6–3) — PCB thickness. - `holders.items[].height` (mm; 1–100) — Height of the PCB underside above the floor. ### cutouts — holes for connectors, buttons, LEDs - `cutouts.items` (array, empty) — Holes through the faces. Each item has: - `cutouts.items[].id` (string) — Any unique text; leave it out and one is made. - `cutouts.items[].face` (`"front"` | `"back"` | `"left"` | `"right"` | `"bottom"`) — The face it goes through. - `cutouts.items[].shape` (`"rect"` | `"circle"` | `"slot"`) — `"slot"` is a stadium (fully rounded ends); `"circle"` uses `width` as the diameter. - `cutouts.items[].u` (mm) — Horizontal position of the hole centre: - walls: along the wall from the box centre — world X on front/back, world Y on left/right; - floor: world X. - `u` is simply the world coordinate along the wall: X on front/back, Y on left/right, measured from the box centre. A cutout with `u: -20` on the front or back wall sits toward the left wall. On the left or right wall it sits toward the front. - Seen from outside, +u points right on the front and right faces and left on the back and left faces. - `cutouts.items[].v` (mm) — Walls: height of the hole centre above the inside of the floor. Floor: world Y (+ towards the back). - `cutouts.items[].width` (mm; 1–100) — Size along `u` (diameter for a circle). - `cutouts.items[].height` (mm; 1–100) — Size along `v`. A vertical slot has height > width. - `cutouts.items[].cornerRadius` (mm, 0) — Corner rounding of a `"rect"`. ### wireSlots — cable notches with lid tabs A U-notch cut down from the rim in the chosen walls. The lid grows a tab that fills it, leaving a cable hole at the bottom. - `wireSlots.sides` (`"none"` | `"right"` | `"left"` | `"front"` | `"back"` | `"left_right"` | `"front_back"` | `"all"`, default `"none"`) — Which walls get a slot. - `wireSlots.width` (mm, 10; 4–40) — Slot width. - `wireSlots.holeHeight` (mm, 5) — Height of the cable hole left under the lid tab. - `wireSlots.bottomOffset` (mm, 0) — Height of the slot bottom above the inside of the floor. - `wireSlots.chamfer` (mm, 1.5; 0–4) — 45° chamfer on the slot's bottom corners. - `wireSlots.tolerance` (mm, 0.2; 0.05–0.6) — Fit gap around the tab. - `wireSlots.offsetLeft`, `wireSlots.offsetRight` (mm, 0) — Shift of the left/right slot along Y (+ towards the back). - `wireSlots.offsetFront`, `wireSlots.offsetBack` (mm, 0) — Shift of the front/back slot along X (+ to the right). - `wireSlots.grooveEnabled` (bool, false) — Interlocking side grooves between tab and slot. - `wireSlots.grooveDepth` (mm, 1.2; 0.5–3) — Groove depth. - `wireSlots.grooveWidth` (mm, 1; 0.6 to wall − 0.4) — Rail (tongue) thickness. - `wireSlots.fillGap` (bool, false) — Solid bridge filling the guide. - `wireSlots.supportEnabled` (bool, false) — Stiffening gusset behind the tab. - `wireSlots.supportHeight` (mm, 0) — Gusset height; 0 = full tab height. - `wireSlots.compensationEnabled` (bool, false) — Slicer wall compensation (with grooves and fill bridge). - `wireSlots.targetWallThickness` (mm, 0; 0.6–2) — Target wall for compensation; 0 = automatic. ### dividers — compartments - `dividers.divisionsX` (array of numbers, empty) — Walls parallel to Y. Each value is a **percentage (0–100) of the inner width** from the left inner wall to the divider's centre. `[33.33, 66.67]` gives three equal columns. Up to 8. - `dividers.divisionsZ` (array of numbers, empty) — Walls parallel to X. Each value is a percentage of the inner depth from the front inner wall. `[50]` gives two rows. - `dividers.thickness` (mm, 1.2; 0.6 to the wall thickness) — Divider thickness. Dividers run up to the rim; the lid lip is notched around them. ### fingerSlots — grip notches - `fingerSlots.axes` (`"none"` | `"x"` | `"z"` | `"both"`, default `"none"`): - `"x"`: notches in the left/right walls and in `divisionsX` dividers. - `"z"`: notches in the front/back walls and in `divisionsZ` dividers. - `fingerSlots.width` (mm, 20; 8–40) — Notch width. - `fingerSlots.depth` (mm, 15; 4 to height − wall − 2) — Notch depth down from the rim. - `fingerSlots.position` (%, 50; 0–100) — Position along each compartment: 50 = centred. - `fingerSlots.dividers` (bool, true) — Cut the notches through dividers. - `fingerSlots.outerWalls` (bool, false) — Also cut the outer walls (always done when there are no dividers). ### boxPattern — ventilation holes in the walls and floor - `boxPattern.type` (`"none"` | `"circles"` | `"squares"` | `"diamonds"` | `"hexagons"` | `"octagons"` | `"triangles"` | `"slots"`, default `"none"`) — Hole shape. - `boxPattern.walls` (array of `"front"` | `"back"` | `"left"` | `"right"` | `"bottom"`, default all five) — Faces that get holes. - `boxPattern.size` (mm, 10; 3–25) — Hole size. - `boxPattern.spacing` (mm, 2; 0.5–8) — Solid web between holes, horizontally. - `boxPattern.spacingY` (mm, 2; 0.5–8) — Web between holes, vertically. - `boxPattern.topology` (`"staggered"` | `"aligned"` | `"diagonal"`, default `"staggered"`) — Grid layout. - `boxPattern.heightStart`, `boxPattern.heightEnd` (%, 0 and 100) — Vertical band of the wall that gets holes, as a percentage of the free wall height. Walls only. - The free height already runs from 1 mm above the floor to just below the lid lip, so 0–100 is safe. Narrow it only to keep vents away from something low or high. - `boxPattern.offsetX`, `boxPattern.offsetY` (mm, 0; ±20) — Shift of the grid from centred. - `boxPattern.marginHorizontal` (mm, 0; −20–30) — Extra margin from the wall's side edges. Holes keep clear of cutouts, screws, wire slots, finger slots, standoffs, dividers and text by themselves. They never reach the lid lip zone, where the snap grooves are. ### lidPattern — ventilation holes in the lid - `lidPattern.type` (same values as `boxPattern.type`: `"none"` | `"circles"` | `"squares"` | `"diamonds"` | `"hexagons"` | `"octagons"` | `"triangles"` | `"slots"`, default `"none"`) — Hole shape. - `lidPattern.size` (mm, 10; 2–50) — Hole size. - `lidPattern.spacing`, `lidPattern.spacingY` (mm, 2; 0.5–20) — Web between holes. - `lidPattern.margin` (mm, 1; 0–20) — Margin inside the lip. ### boxText — text on a wall or the floor - `boxText.content` (string, empty) — The text; `\n` starts a new line. Latin and Cyrillic. - `boxText.side` (`"front"` | `"back"` | `"left"` | `"right"` | `"bottom"`, default `"front"`) — Face for the text. - `boxText.style` (`"engraved"` | `"embossed"`, default `"engraved"`) — Cut into the face, or raised from it. - `boxText.font` (`"sans-serif"` | `"serif"` | `"monospace"`, default `"sans-serif"`) — Font. - `boxText.size` (mm, 10; 4–40) — Font size. - `boxText.depth` (mm, 0.6; 0.2–3) — Engraving depth or emboss height. - `boxText.align` (`"left"` | `"center"` | `"right"`, default `"center"`) — Line alignment. - `boxText.rotation` (degrees, 0; 0, 90, 180 or 270) — Rotation about the face centre. - `boxText.offsetX`, `boxText.offsetY` (mm, 0; ±40 and ±30) — Shift from the centre of the closed case's face: right and up as seen from outside. - `boxText.lineSpacing` (× size, 1.2; 1–2.2) — Line spacing. - `boxText.charSpacing` (mm, 0; −1–10) — Extra space between letters. ### lidText — text on the lid Centred on the lid top. - `lidText.content` (string, empty) — The text. - `lidText.style` (`"engraved"` | `"embossed"`, default `"engraved"`) — Cut in or raised. - `lidText.size` (mm, 12) — Font size. - `lidText.depth` (mm, 0.6) — Depth or height; keep it below `lid.topThickness` − 0.4. - `lidText.rotation` (degrees, 0) — Rotation. - `lidText.charSpacing` (mm, 0) — Extra space between letters. ### logo — an SVG logo Normally loaded from an SVG file in the app. You may write simple polygons yourself: - `logo.shapes` (string, empty = no logo) — Shapes separated by `|`. Each shape is rings separated by `;`: the outer ring first, then holes. A ring is `x,y` points separated by spaces, in a unit square centred on the origin (Y up, longer side 1). A square: `-0.5,-0.5 0.5,-0.5 0.5,0.5 -0.5,0.5`. - `logo.name` (string) — Label shown in the app. - `logo.target` (`"front"` | `"back"` | `"left"` | `"right"` | `"bottom"` | `"lid"`, default `"front"`) — Where it goes. - `logo.style` (`"engraved"` | `"embossed"`, default `"engraved"`) — Cut in or raised. - `logo.size` (mm, 30; 5–200) — Length of the logo's longer side. - `logo.depth` (mm, 0.6; 0.2–3) — Depth or height. - `logo.offsetX`, `logo.offsetY` (mm, 0; ±100) — Shift from the face centre. - `logo.rotation` (degrees, 0; −180–180) — Rotation about its own centre. ### stacking — stackable boxes - `stacking.enabled` (bool, false) — The rim gets a recess and the bottom a matching step, so identical boxes stack. Walls need about 1.8 mm or more. Not with a sliding lid. - `stacking.height` (mm, 3; 1.5–10) — Recess depth. - `stacking.clearance` (mm, 0.25; 0.1–0.8) — Gap between the step and the recess. ### gridfinity — a Gridfinity bin instead of an enclosure When `gridfinity.enabled` is true, the design is a standard Gridfinity bin with no lid. Every other section except `quality` is ignored. - `gridfinity.enabled` (bool, false) — Make a Gridfinity bin. - `gridfinity.unitsX`, `gridfinity.unitsY` (count, 2 and 1; 1–8) — Grid cells of 42 mm. - `gridfinity.heightUnits` (count, 3; 2–20) — Height in 7 mm units. - `gridfinity.stackingLip` (bool, true) — Stacking lip on top. - `gridfinity.magnets` (bool, true) — 6.5 × 2.4 mm magnet holes under each cell. - `gridfinity.dividersX`, `gridfinity.dividersY` (count, 0; 0–10) — Evenly spaced dividers. - `gridfinity.labelTab` (bool, false) — 45° label shelf along the back wall. ### board — reference board in the viewer - `board.id` (string, empty) — Draws a ghost board in the viewer: `"rpi5"`, `"rpi4b"`, `"rpi3bplus"`, `"rpi-zero-2w"`, `"rpi-pico"`, `"arduino-uno-r3"`, `"arduino-mega-2560"`, `"arduino-nano"`, `"esp32-devkitc"`, `"esp32-s3-devkitc-1"`. It does not change the box. To fit a box to a board, set the size, standoffs and cutouts yourself, or ask the user to use **Settings → Fit to a Board**. - `board.rotation` (degrees, 0; 0, 90, 180 or 270) — Rotation of the ghost board. - `board.show` (bool, true) — Show the ghost board. ### quality — mesh detail - `quality.circleSegments` (count, 64; 16–256) — Segments per circle. - `quality.fontCurveSegments` (count, 5; 2–12) — Segments per text curve. - `quality.nozzleDiameter` (mm, 0.4) — Printer nozzle, used by the CAD check. - `quality.lineWidth` (mm, 0.4) — Extrusion line width, used by the CAD check. ## Examples **Electronics case** for a board with M2.5 holes 58 × 49 mm: - outer 90 × 70 × 35 mm, 2 mm walls (cavity 86 × 66 × 33); - friction lid; - USB-C on the front at 8 mm; - hexagon vents on the sides. https://casecraft-3d.netlify.app/#json=%7B%22dimensions%22%3A%7B%22width%22%3A90%2C%22depth%22%3A70%2C%22height%22%3A35%7D%2C%22standoffs%22%3A%7B%22enabled%22%3Atrue%2C%22width%22%3A58%2C%22depth%22%3A49%2C%22height%22%3A5%2C%22holeDiameter%22%3A2.3%7D%2C%22cutouts%22%3A%7B%22items%22%3A%5B%7B%22face%22%3A%22front%22%2C%22shape%22%3A%22slot%22%2C%22u%22%3A0%2C%22v%22%3A8%2C%22width%22%3A9.6%2C%22height%22%3A3.8%7D%5D%7D%2C%22boxPattern%22%3A%7B%22type%22%3A%22hexagons%22%2C%22size%22%3A6%2C%22walls%22%3A%5B%22left%22%2C%22right%22%5D%7D%7D ```json {"dimensions":{"width":90,"depth":70,"height":35},"standoffs":{"enabled":true,"width":58,"depth":49,"height":5,"holeDiameter":2.3},"cutouts":{"items":[{"face":"front","shape":"slot","u":0,"v":8,"width":9.6,"height":3.8}]},"boxPattern":{"type":"hexagons","size":6,"walls":["left","right"]}} ``` **Desk organizer:** - 150 × 100 × 35 mm, 1.8 mm walls; - no lid; - three columns and two rows; - finger notches. https://casecraft-3d.netlify.app/#json=%7B%22dimensions%22%3A%7B%22width%22%3A150%2C%22depth%22%3A100%2C%22height%22%3A35%2C%22wallThickness%22%3A1.8%7D%2C%22lid%22%3A%7B%22enabled%22%3Afalse%7D%2C%22dividers%22%3A%7B%22divisionsX%22%3A%5B33.33%2C66.67%5D%2C%22divisionsZ%22%3A%5B50%5D%7D%2C%22fingerSlots%22%3A%7B%22axes%22%3A%22both%22%2C%22width%22%3A18%2C%22depth%22%3A12%7D%7D ```json {"dimensions":{"width":150,"depth":100,"height":35,"wallThickness":1.8},"lid":{"enabled":false},"dividers":{"divisionsX":[33.33,66.67],"divisionsZ":[50]},"fingerSlots":{"axes":"both","width":18,"depth":12}} ``` **Battery box** with a 140 × 85 × 55 mm cavity: - 2.4 mm walls, so outer 144.8 × 89.8 × 57.4; - corner screws through the front and back walls (countersunk pilot holes); - cable slots in the left and right walls; - engraved text on the lid. https://casecraft-3d.netlify.app/#json=%7B%22dimensions%22%3A%7B%22mode%22%3A%22inner%22%2C%22width%22%3A144.8%2C%22depth%22%3A89.8%2C%22height%22%3A57.4%2C%22wallThickness%22%3A2.4%7D%2C%22screws%22%3A%7B%22enabled%22%3Atrue%2C%22holeSide%22%3A%22y_sides%22%2C%22guideType%22%3A%22through_hole%22%2C%22headSink%22%3A%22countersink%22%7D%2C%22wireSlots%22%3A%7B%22sides%22%3A%22left_right%22%2C%22width%22%3A14%2C%22holeHeight%22%3A6%2C%22bottomOffset%22%3A4%7D%2C%22lidText%22%3A%7B%22content%22%3A%22UPS%2020000%22%7D%7D ```json {"dimensions":{"mode":"inner","width":144.8,"depth":89.8,"height":57.4,"wallThickness":2.4},"screws":{"enabled":true,"holeSide":"y_sides","guideType":"through_hole","headSink":"countersink"},"wireSlots":{"sides":"left_right","width":14,"holeHeight":6,"bottomOffset":4},"lidText":{"content":"UPS 20000"}} ``` ## Before you answer - [ ] Sizes are outer. `mode: "inner"` changes nothing in the numbers; you added the walls yourself. - [ ] Every key and value is spelled exactly as in this guide. - [ ] Wall cutouts sit below the lid lip, inside the wall, and do not overlap each other. - [ ] Standoffs and clipped boards fit inside the cavity with their clearances. - [ ] The JSON is valid, the link is fully percent-encoded, and the same JSON is in a code block.