Search for the part. Its drawer opens.
Modular drawer units that 3D print without supports, and a self-hosted inventory that knows what every drawer holds.
Project page · Quick start · Try the parts in 3D · Printing · Report a print
Important
Status: the software is complete and tested, but nothing has been physically printed yet. Clearances, the drawer stop and the key fit are computed values. Print the calibration coupon first, and tell us how it went.
| 0 | 45° | 1577 | 40 | 20 |
|---|---|---|---|---|
| supports to remove | maximum overhang | unit tests | end-to-end tests | printer presets |
flowchart LR
G["Generator<br/>in the browser"] -->|"ZIP: 3MF plates, STL, PRINT.md"| P["Your printer<br/>no supports"]
G -->|frame.json| I["Inventory<br/>self-hosted"]
P --> R[("Drawer rack")]
I -->|"search a part"| V["3D rack opens<br/>its drawer"]
I -.->|optional| O["Opener<br/>ESP32 + FluidNC"]
O -.->|"pushes the drawer out"| R
- Generator (
apps/generator): a static web page. Set the grid, modules, drawers, dividers and labels, group them into frames, and export files ready for the slicer. It shows weight, cost and print time as you go, and checks that every part fits your printer. Runs entirely in the browser. - Inventory (
apps/inventory-api,apps/inventory-web): self-hosted. Knows what is in each drawer and compartment, how many are left and where to find them. Shows the whole rack in 3D, and searching for a part flies to its drawer and opens it. Reads theframe.jsonthe generator produces.
| Generator | Inventory | Phone |
|---|---|---|
![]() |
![]() |
![]() |
GitHub opens STL files in an interactive viewer: drag to rotate, scroll to zoom. These come straight
from examples/progetto.json.
| Part | What it shows |
|---|---|
| Module, 4x4 pitches | Prints lying on its back, with the channels for the joining keys; no surface beyond 45° |
| Drawer with 2x2 dividers | Prints on its floor, with the label holder and finger grip in the front |
| Calibration coupon | One small bay for four test drawers at 0.2, 0.3, 0.4 and 0.5 mm clearance |
- Zero supports. 45° chamfers instead of fillets, wall thickness in multiples of the extrusion width, heights in multiples of the layer height.
- Calibration coupon. Four drawers at different clearances: print it first and keep the one that slides best.
- Fits your printer. 20 presets with their real build volumes, plus your own; the generator shows the largest module and drawer each one can print.
- QR labels. True-size SVG, or A4 PDF with crop marks. Each QR code leads to its drawer's page.
- Project BOMs. Import a bill of materials from KiCad, see what is missing, get a pick list in drawer order.
- Your data stays home. One folder holds the database and the uploads, and it is the complete backup.
Needs Node 24 or later and pnpm.
pnpm install
pnpm testGenerator, in the browser:
pnpm dev:generatorGenerator, from the command line. Writes the same ZIP as the page:
pnpm drawdex generate examples/progetto.json --out ./outThe ZIP holds plates/plate-NN.3mf, parts/*.stl, frame.json and PRINT.md, which lists the plates,
grams, cost and slicer settings for each group of parts.
Everything prints without supports, already oriented on the plate:
- Modules lie on their back, so print height is the module depth.
- Drawers print on their floor.
- Keys that join modules print flat.
Tip
Start with the coupon: one small bay and four small drawers with clearances of 0.2, 0.3, 0.4 and 0.5 mm. Set the project clearance to whichever feels right.
Small drawers. A 1-pitch module has no room for both the 12 mm label and a pull lip, so its drawer gets a finger notch instead, and on a 1x1 drawer the label covers that notch once it is in. The generator warns when this happens. For an easier grip, use modules at least 2 pitches tall, a wider drawer, or no label on the smallest drawers.
The largest printable parts for every preset are in docs/PRINTERS.md.
docker compose up -d --builddocs/DEPLOY.md covers Proxmox, access through Tailscale, upgrades and password reset.
Do not expose it to the internet. The camera scanner and the PWA need HTTPS, which tailscale serve provides.
Backup: the data/ folder is the complete backup, holding data/cassetto.db and data/uploads/. The
JSON export in the app lists attachments without embedding them and leaves out the login, so it does
not replace that folder.
Opener (optional): a pusher that opens the drawer for you
A carriage behind a frame can push out the drawer you searched for: two stepper motors, a servo-driven finger and an ESP32 running FluidNC. The modules need an open back. Nothing has been built yet; the software runs against a pretend controller. Design, parts list, controller configuration and calibration are in docs/OPENER.md.
Deploying the generator to Cloudflare Pages
It is a static site with relative asset paths. Not yet deployed, so these settings are untested:
| Setting | Value |
|---|---|
| Root directory | / |
| Build command | pnpm --filter @proj/generator build |
| Output directory | apps/generator/dist |
| Environment | NODE_VERSION=26, and PNPM_VERSION matching your local pnpm --version |
Repository layout
| Path | Purpose |
|---|---|
packages/spec |
zod schemas for project files and frame.json, stable ids |
packages/geometry |
manifold-3d geometry, printability checks, plate packing, export, CLI |
packages/inventory-contract |
API schemas and routes shared by API and web |
apps/generator |
React and three.js generator, geometry in a Web Worker |
apps/inventory-api |
Hono, Drizzle, SQLite with FTS5; also serves the web app and drives the opener |
apps/inventory-web |
React PWA |
Renaming the project
The name lives in a few places:
packages/spec/src/brand.ts, the one constant the code reads- The
drawdexscript key in the rootpackage.json apps/inventory-web/index.htmlandapps/inventory-web/public/manifest.webmanifestdocker-compose.yml: the image name and theDRAWDEX_*variables, plus their table indocs/DEPLOY.md- The header of
docs/PRINTERS.md: regenerate it withpnpm drawdex printers-doc > docs/PRINTERS.md - This README
Two names stay cassetto, an earlier name, on purpose: the database data/cassetto.db and the generator's
browser storage keys (cassetto.project, cassetto.printers, cassetto.lang). If they followed the name,
a rename would open an empty database and lose saved projects, so the stock and the work would seem to
have vanished.
Print reports, bug reports and pull requests are welcome: see CONTRIBUTING.md. Security issues go through private reporting, as SECURITY.md explains.
- Code: AGPL-3.0
- Generated models, including the ones in
docs/models: CC BY-SA 4.0


