{"id":50821782,"url":"https://github.com/basicallysource/foldable-bin-generator","last_synced_at":"2026-06-13T14:34:10.962Z","repository":{"id":363696790,"uuid":"1264463020","full_name":"basicallysource/foldable-bin-generator","owner":"basicallysource","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-10T01:05:08.000Z","size":664,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-10T02:15:03.925Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://bin-gen.basically.website/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/basicallysource.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-09T22:56:04.000Z","updated_at":"2026-06-10T01:05:11.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/basicallysource/foldable-bin-generator","commit_stats":null,"previous_names":["basicallysource/foldable-bin-generator"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/basicallysource/foldable-bin-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basicallysource%2Ffoldable-bin-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basicallysource%2Ffoldable-bin-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basicallysource%2Ffoldable-bin-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basicallysource%2Ffoldable-bin-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/basicallysource","download_url":"https://codeload.github.com/basicallysource/foldable-bin-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basicallysource%2Ffoldable-bin-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34288664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-13T14:34:05.460Z","updated_at":"2026-06-13T14:34:10.957Z","avatar_url":"https://github.com/basicallysource.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# foldable-bin-generator\n\nTurn a bin's CAD (STEP B-rep) into a single, foldable, laser-cuttable flat\npattern (SVG + DXF) for LightBurn — laser one piece of 1/8\" cardboard and\nfold it up into a sorting-machine bin.\n\nLive: **[https://bin-gen.basically.website](https://bin-gen.basically.website/)** — pushes to `main` auto-deploy.\n\n```\napp/, components/, lib/   Next.js UI (flatten, refold check, fold tester)\napi/index.py              stateless Flask API  →  one Vercel Python function\napi/_lib/binflatten/      geometry engine (DO NOT EDIT casually — see below)\npublic/bins/              the 5 built-in bin STEPs, selectable in the UI\ntests/                    equivalence suite + frozen golden corpus\nverify.py                 refold-verification CLI (run before cutting)\n```\n\nThe browser keeps the chosen STEP and posts it with every request (bin STEPs\nare ~50 kB; Vercel's request cap is 4.5 MB); SVG/DXF come back inline and\ndownload client-side. Flattening re-runs automatically on every model pick\nand parameter change.\n\n## Run locally\n\n```bash\nnpm install\npip install -r requirements.txt   # flask/numpy/shapely, pinned\nnpm run dev                       # Next on :3000 + Flask API on :5328 (proxied)\n```\n\n## Changing the geometry engine\n\nThe engine (`api/_lib/binflatten/`) is the carefully-calibrated part: fold\ncompensation, overlap-aware unfolding, seam tabs, kerf. Any change must\nfollow `EQUIVALENCE.md`: refold-verify every bin (`python verify.py\npublic/bins/\u003cbin\u003e.step`), regenerate the golden corpus\n(`python tests/make_golden.py`), update the sha256 manifest in\n`tests/check_source_identical.py`, and re-verify the deployment:\n\n```bash\npython tests/check_source_identical.py   # engine untouched? (sha256)\npython tests/check_equivalence.py        # 48-case corpus, byte-equal locally\npython tests/check_deployed.py https://foldable-bin-generator.vercel.app\n```\n\nKnown physical deviation: the leaning front wall's raised bottom edge costs\n~1 mm of ground-level front extent (it sits on the real floor/toes).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasicallysource%2Ffoldable-bin-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasicallysource%2Ffoldable-bin-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasicallysource%2Ffoldable-bin-generator/lists"}