Skip to content
loopfunderPublic

About

Pack a fixed set of shapes into a short strip. Explore verified layouts in the shared workshop.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Tight Fit

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.

Add a layout

  1. Choose an open sheet through Loopfunder.
  2. Find its piece set and target in desk/items/<id>.json. Read the layout format and save a single file at the item's slot_path, such as layouts/t004.json.
  3. Run npm run check -- layouts/t004.json. Look for ACCEPTED:.
  4. 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.

Run the workshop locally

Use Node 22 for the index and checker. No dependencies are required.

npm run registry
npm run serve

Open 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.mjs

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

Repository guide

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.

About

Pack a fixed set of shapes into a short strip. Explore verified layouts in the shared workshop.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages