Skip to content
cc-forgePublic

About

Support-free 3D-printable drawer units, and a self-hosted inventory where searching for a part opens its drawer.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Drawdex logo: a drawer cabinet with its bottom drawer open and lit

Drawdex

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.

CI Unit tests End-to-end tests Supports Printer presets
Code: AGPL-3.0 Models: CC BY-SA 4.0 Top language Last commit Stars

Project page · Quick start · Try the parts in 3D · Printing · Report a print

The inventory with demo data: typing a part name flies the 3D rack to its drawer, which slides open with the right compartment lit

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.

In numbers

0 45° 1577 40 20
supports to remove maximum overhang unit tests end-to-end tests printer presets

How it works

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
Loading
  1. 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.
  2. 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 the frame.json the generator produces.
Generator Inventory Phone
The generator: parameters on the left, 3D preview in the centre, print list on the right The whole rack in the inventory: five colored frames on two shelves The same search on a phone

Try the parts in 3D

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

Features

  • 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.

Quick start

Needs Node 24 or later and pnpm.

pnpm install
pnpm test

Generator, in the browser:

pnpm dev:generator

Generator, from the command line. Writes the same ZIP as the page:

pnpm drawdex generate examples/progetto.json --out ./out

The 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.

Printing

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.

Running the inventory

docker compose up -d --build

docs/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:

  1. packages/spec/src/brand.ts, the one constant the code reads
  2. The drawdex script key in the root package.json
  3. apps/inventory-web/index.html and apps/inventory-web/public/manifest.webmanifest
  4. docker-compose.yml: the image name and the DRAWDEX_* variables, plus their table in docs/DEPLOY.md
  5. The header of docs/PRINTERS.md: regenerate it with pnpm drawdex printers-doc > docs/PRINTERS.md
  6. 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.

Contributing

Print reports, bug reports and pull requests are welcome: see CONTRIBUTING.md. Security issues go through private reporting, as SECURITY.md explains.

Licence

About

Support-free 3D-printable drawer units, and a self-hosted inventory where searching for a part opens its drawer.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages