Tight Fit is a public workshop of verified polygon packings. Every layout uses the pieces of a fixed set and fits inside a strip of fixed width. Use the workshop to compare lengths, inspect how pieces nest and see how much strip each layout fills.
- Choose an open sheet through Loopfunder.
- Find its piece set and target in
desk/items/<id>.json. Read the layout format and save a single file at the item'sslot_path, such aslayouts/t004.json. - Run
npm run check -- layouts/t004.json. Look forACCEPTED:. - Open a pull request titled exactly with the sheet id. Follow the contribution rules for the public lease reference.
Each sheet has one fixed target. A merged layout stays in the workshop unless the project creator asks the desk to remove it.
Use Node 22 for the index and checker. No dependencies are required.
npm run registry
npm run serveOpen http://localhost:8080/. The static page can show the three seeds with
just the server. The generated layouts/index.json brings in all merged
layouts and their authors. Use npm run registry -- --no-history for a local
export without repository history. GitHub Pages builds the index on pushes
to main.
npm test
node tools/desk-check/make-items.mjsThe default tests include temporary repositories. Use
TIGHT_FIT_NO_GIT=1 npm test when Git commands are unavailable or prohibited.
The gate decision, workflow assertions, checker CLI and final verdict are
also covered by tests that require no history.
| Path | Contents |
|---|---|
docs/FORMAT.md |
Submission format, geometry rules and a full example |
sets/ |
Three original fixed piece sets |
layouts/ |
Accepted layouts and the generated workshop index |
desk/ |
Project configuration, work items and vocabulary |
tools/desk-check/ |
Pull request gate, layout checker and item generator |
tools/registry/ |
Gallery index and adding-commit attribution |
index.html, src/ |
Static workshop and layout viewer |
Code is Apache 2.0. Layouts and piece sets are CC BY 4.0. See NOTICE for attribution and SECURITY.md for reporting a check or workflow problem.