English · Español
Parametric generator for 3D-printable rugged boxes (FDM). Set the inside dimensions and get, in real time, a complete box with hinges, self-locking latches, a watertight gasket and compartments, ready to print with no supports and no hardware.
Open the generator in your browser · Download the latest release
- Features
- Getting started
- How to use it
- Printing
- Development
- How it works
- Contributing
- License and credits
The box
- Inside dimensions as input, with separate depths for the base and the lid.
- Knuckle hinges and self-locking hook latches, scaled automatically to the box size (20 to 380 mm).
- Seal options: printed TPU gasket, 1.75 mm TPU filament cord (nothing to print), double labyrinth or simple tongue and groove.
- Rounded or octagonal corners, corner ribs, stackable and Gridfinity compatible (baseplate inside or feet).
- Plain, hexagon, stripes, cross-braced or sci-fi lid, plus your own SVG logo, engraved or embossed.
- Material saver with a ribbed design that keeps the stiffness.
The contents
- Base and lid each hold, independently: nothing, a blank insert, an insert with custom cutouts for your items, or compartments with their own lids. Any combination.
- Custom cutouts from an SVG tracing of each item (1:1 scale). Several items get packed in the smallest space automatically, with finger cutouts.
- Compartment lids with pivot hinges, a finger well and a snap-fit or magnetic latch (press-fit disc magnets in the size you pick, with a suggested count or your own).
Printing
- Every part comes out oriented and support-free: teardrop holes, overhangs ≤ 45° and bridges ≤ 10 mm.
- If a part doesn't fit flat, it goes diagonal with easy-to-snap-off mouse ears, or tilted with a contact bevel, support fins and supports built into the STL.
- Tolerance test: test pieces that reproduce each joint in its real print orientation; the result is saved as a profile for your printer.
- A shadow groove hides the shrink line between floor and walls.
The app
- A single
.htmlfile: no install, works offline. - 3D view assembled, exploded or as print plates, with an animated opening and a cross-section.
- English and Spanish (more languages are easy to add), undo and redo, light and dark mode, full keyboard support.
- Exports STL per part or per plate plus a
README.txtwith slicer settings, assembly steps and everything you need to buy or cut.
![]() |
![]() |
![]() |
![]() |
Open https://parra0713.github.io/parametric-rugged-box/. Nothing is sent
to any server: the box is computed in your browser and your settings are
only stored there. The language follows your browser; you can change it
in the top bar or with ?lang=en / ?lang=es.
- Download
rugged-box-vX.Y.Z.htmlfrom the latest release. - Double-click it to open it in Chrome, Edge or Firefox.
The whole program, geometry engine included, lives in that one file.
Requires Node.js 20 or newer.
git clone https://github.com/Parra0713/parametric-rugged-box.git
cd parametric-rugged-box
npm install
npm run dev # http://localhost:5173 with live reload
npm run build # builds dist/rugged-box.html- Box: enter the inside space you need and the shape.
- Contents: choose what goes in the base and in the lid. For custom cutouts, add an SVG tracing of each item.
- Lid: pattern and logo.
- Mechanics: seal type and size class (auto by default).
- Printing: your bed and, once per printer and filament, the tolerance test.
- Export all: open the plates in your slicer.
The right panel sums up how each part will print, any warnings and what you need besides the printed parts (magnets, cord, filament for pins).
| Part | Material | Recommended |
|---|---|---|
| Base and lid | PETG, ASA or PLA | 0.2 mm layers, 4–6 walls, 15–25% gyroid. Lid with the decorated face on the bed. |
| Latches | PETG | Lying down, as exported; 5+ walls. |
| Pins | PETG or PLA | Lying on the flat face, 100% infill. |
| Printed gasket | TPU 95A | Slow, 100% infill. With "cord" there's nothing to print: you cut filament. |
| Compartment lids | PETG or PLA | Outer face on the bed, 3+ walls. |
| Inserts | PLA | 2 walls, 0% infill. |
Every export includes a README.txt with the settings and assembly steps
for that specific box.
npm test # geometry, bed, assembly, performance, memory, UI and translations
npm run test:sweep # sweep from 20 to 380 mm (results in logs/)
npm run test:org # compartments: close, open 0–95°, no supports
npm run test:ui # UI in a real browser (needs Playwright)
npm run i18n # translation checkindex.html, src/main.js, src/viewer.js UI and 3D view (three.js)
src/i18n/ languages: es.js (source), en.js
src/worker.js, src/engineClient.js geometry threads
src/engine/params.js parameters, UI schema and limits
src/engine/engine.js part orchestration and print helpers
src/engine/*.js hinges, latches, seal, lid, inserts,
compartments, calibration, tilting
src/packer.js, src/content.js item packing and SVG tracing import
tests/ Node and browser tests
docs/ design notes and UI guide (Spanish)
Geometry is built with manifold-3d (the CSG engine OpenSCAD also uses) compiled to WebAssembly, in worker threads so the UI never freezes. Each change first shows a quick preview (~0.1 s) and then the full model when you let go of the control.
Every design decision (hinge geometry, self-locking latch, gasket sizing, tilted printing, material saver, calibration, compartments and latches) is explained in docs/DISENO.md (Spanish).
Issues and pull requests are welcome. Before opening one:
- Run
npm testand, if you touchsrc/engine/, alsonpm run test:sweep. - If you change the UI, follow the UI guide and
run
npm run test:ui. - A new feature adds its case to
tests/budget.test.mjs(performance budget). - Every new UI text goes in
src/i18n/locales/es.jsanden.js.
npm run i18n:new -- frcreatessrc/i18n/locales/fr.jswith every key, starting from the English text.- Translate it using the words makers use in that language (what the slicers and forums say: walls, infill, brim, overhang…). Keys you leave out fall back to English.
- Add one line to
LOCALESinsrc/i18n/index.js. npm run i18nandnpm testmust pass.
Bump version in package.json and VERSION in src/engine/params.js,
build (npm run build), write the notes in docs/releases/vX.Y.Z.md and
push to main. The tag, the release and the site are created automatically.
MIT.
Ideas and references from the community: Whity's Rugged Storage Box, the Gridfinity Rugged Storage Box, the Parametric Tough Box, Zack Freedman's Gridfinity and gridfinity-rebuilt-openscad, M. Trahan's support fins and Apple's Human Interface Guidelines. Full list in docs/DISENO.md.




