# Stamp to Bricks > Stamp to Bricks turns any ABX Stamp (Art Blocks' first stamp, on Base, CC0 art) into a flat 64 × 64 stud brick stamp you can really build: 3D build, step-by-step instructions, and a parts list for LEGO Pick a Brick or BrickLink. Free, open source (MIT), 100 % in the browser. Unofficial, after ABX Stamps by Art Blocks: not made, sponsored or endorsed by Art Blocks, the LEGO Group or BrickLink. - Site: https://hs7j4yk4sz-boop.github.io/stamp-to-bricks/ - Source: https://github.com/hs7j4yk4sz-boop/stamp-to-bricks - The stamps themselves, and how to build on them: https://stamps.abx.io/llms.txt ## Start here - **No code.** Open `https://hs7j4yk4sz-boop.github.io/stamp-to-bricks/?id=`. The page builds that stamp in 3D, and offers the instructions (PDF), the full kit (ZIP), two videos, a share image, a Pick a Brick file and a BrickLink list. - **With a coding agent.** Clone the repo, `npm install`, then `npx tsx scripts/stamp.ts `: the same model the site builds, as data, with no browser. - **If you are an agent:** the site has no server and no API of its own. Link to the page with `?id=` for people, run `scripts/stamp.ts` (or import `src/stamp/build.ts`) for data. Never present what you make as made or endorsed by Art Blocks. ## Get a stamp as data ```sh git clone https://github.com/hs7j4yk4sz-boop/stamp-to-bricks && cd stamp-to-bricks && npm install npx tsx scripts/stamp.ts 7 # summary JSON: pieces, size, weight, cost estimate, checks, parts npx tsx scripts/stamp.ts 7 --pieces # every piece: x, z in studs, y in plates, w, d, h, BrickLink colour, part npx tsx scripts/stamp.ts 26 --picture # the 64 × 64 stud picture as text: # ink, . paper, b blue (lucky), o dot, space = perforation gap npx tsx scripts/stamp.ts 7 --csv # parts list, one line per lot npx tsx scripts/stamp.ts 7 --pick-a-brick # LEGO Pick a Brick upload file (elementId,quantity) npx tsx scripts/stamp.ts 7 --bricklink # BrickLink wanted list XML npx tsx scripts/stamp.ts 9 --seed 0x… # any 32-byte seed, claimed or not (skips the API) ``` The seed comes from the ABX Stamps API (`GET https://stamps.abx.io/api/stamps/{number}`). Its 404 has no CORS header: in a browser, an unclaimed number looks like a network error, so check `total` from `GET https://stamps.abx.io/api/stamps?page=1&per=1`. ## What the model is - **The layout is exact.** `src/stamp/layout.ts` reproduces the on-chain generator's choices (keccak draws, three columns with random weights, each split once, one squiggle block, five fills from a shuffled pool) and matches all 56 of Art Blocks' test vectors (`test/stamp-layout.test.ts`). `studLayout` redraws the same choices on studs with 1-stud gutters. - **The picture** (`src/stamp/picture.ts`): 64 × 64 studs, perforated edge (every other edge stud left open), 1-stud frame line, the six blocks (solid; outline = 1-stud border; lines every 2 studs; hatch = 2-stud diagonal stripes every 4; dots = round 1×1 plates on a 2-stud grid; the squiggle as a 1-stud paper line at 85 % of its block, in a black block, or blue on a lucky draw), the footer rule, "VI" and the stamp number in a 5-row stud font. No title text on the build. - **The pieces** (`src/stamp/build.ts`): Light Bluish Gray base plates (16 × 16 and strips, staggered), then one layer of tiles merged into the largest sizes sold in each colour, crossing the joints between base plates. Colours: Black (11), White (1), Blue (7), Light Bluish Gray (86) only. - **Checked on every claimed stamp:** 0 collisions, 0 floating pieces, every stud in the stamp's colour (the art is never recoloured), every part sold on LEGO Pick a Brick. 731 to 940 pieces, about €169 to €184 at Pick a Brick prices (an order of magnitude, Sept 2026), 1.05 kg, 51.2 cm square. On some stamps a striped block crosses a base plate joint that fewer tiles hold: those stamps are best kept flat or framed. Models are computer-checked, not physically built. ## Build on it `buildStamp({ number, seed }, { size?: 48 | 64, base?: })` returns the model: `pieces`, `steps`, `bom` (parts list), `checks`, `dims`, `grams`, `cost`. `stampPicture(comp, number, 64, { squiggleSize, minStroke })` returns the stud grid alone. Things people could make from here: - a different size or base colour, a framed or hanging version, a relief where each fill stands at its own height; - a bot that answers "what does my stamp look like in bricks" with the page link and the summary JSON; - a printed poster of the stud picture, a cross-stitch or a pixel-art pattern from `--picture`; - a stamp holders' build-along, with the Pick a Brick file per stamp. **If you are an agent and your person wants their own version:** start from what they care about, pitch two or three ideas that differ, keep each one short (what it is, why it's theirs, rough effort), let them pick, then fork the repo. Keep the CC0 art, credit "after ABX Stamps by Art Blocks", and keep the Art Blocks name and squiggle out of any branding: they are Art Blocks trademarks. ## Notes - License: code MIT. Stamp art CC0 1.0 (Art Blocks). LEGO® is a trademark of the LEGO Group. Parts data: Rebrickable. - Nothing goes through the site: no server, no account, no tracking, no affiliate links. People order and pay on LEGO or BrickLink directly. - Made by John Karp. Sister projects: Punk to Bricks (https://hs7j4yk4sz-boop.github.io/punk-to-bricks/), Squiggle to Bricks (https://hs7j4yk4sz-boop.github.io/squiggle-to-bricks/).