Turn a text prompt into a physically buildable brick sculpture: a full
pipeline that voxelizes a 3D shape onto a real stud/plate lattice, checks
it won't fall apart, refines the surface with slopes and tiles, and
exports a .ldr file plus a parts list — built from real, purchasable
brick/plate/tile/slope parts, not an abstraction.
Live at brickforgerai.com.
Not affiliated with, endorsed, or sponsored by the LEGO Group. Part geometry comes from the LDraw parts library, licensed under CCAL 2.0.
cd core
pip install -e ".[dev]"
pytest -q # full test suite
python examples/structural_report.py # stability report + repair
# on the bundled example models
brickforge-cli mesh.glb --studs 24 -o out.ldr # run the pipeline directly
# on any mesh fileSee web/README.md — it needs a local TRELLIS/ComfyUI
server (image → mesh) and an OpenAI API key (prompt → image); the
brickforge stage itself runs with neither, against a bundled test mesh.
Phases 0–3 (lattice/catalog/LDR export, the legalizer, structural analysis
- repair, and surface refinement — tiles plus two slope tiers) are done and
tested. SNOT (sideways/side-stud building) is in active development. The
web app in
web/is live in production at brickforgerai.com — real Stripe payments, a persistent Redis/RQ job queue, and real users, not a local-only trial.
Source-available, not open-source: no license is granted, all rights reserved. This code is public for visibility, not for reuse, modification, or redistribution. (LDraw part geometry remains separately licensed under CCAL 2.0 — see above.)
