GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - nikoloda/RebuildMate: LEGO Alternate Build Companion App for MOC builders. Allows builders to easily track the parts they've used and compare against the original set inventory.

BranchesTags
Open more actions menu

Latest commit

 

History

26 Commits
26 Commits

Folders and files

NameName
Last commit message
Last commit date
api
api
 
 
data
data
 
 
public
public
 
 
src
src
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
vercel.json
vercel.json
 
 

Repository files navigation

RebuildMate

RebuildMate

Track parts while building LEGO® alternate models from one or more official set inventories.

Combine sets (including duplicates), mark pieces as used, and pick up where you left off. Projects save locally by default; optional cloud sync keeps progress across devices.

Live: rebuildmate.com

Features

  • Multi-set projects with quantities and merged part inventories
  • Part usage tracking with sort/grid controls
  • Local caching of BrickLink set inventories and thumbnails
  • Export/import projects as JSON; export used parts as BrickLink XML
  • Optional email/password account for cloud sync (Supabase)

Quick start (local)

  1. Requirements: Node.js 18+, BrickLink API credentials
  2. Copy .env.example → .env and fill in BrickLink keys (and optional Supabase keys for auth/sync)
  3. Install and start:
npm install
npm run syncColors   # one-time BrickLink color catalog
npm start            # http://localhost:3000
npm run dev          # auto-restart on file changes
npm run typecheck

How it works

Area Behavior
Projects JSON files under data/projects/ (or synced to Supabase when signed in)
Set cache First fetch from BrickLink → data/sets/ + data/images/; later loads are local
UI Vanilla JS in public/; TypeScript Node server in src/
Deploy Vercel-ready (api/ serverless routes + static public/)

BrickLink API & caching

RebuildMate is built to minimize BrickLink API calls. That keeps the app usable offline after sets are cached, and avoids unnecessary load on BrickLink’s servers.

BrickLink credentials stay on the server (.env). The browser never calls BrickLink directly; it hits your local/Vercel API, which proxies and caches responses.

When you add a set (e.g. 10281 or 10281-1):

  1. The server resolves the set number (box numbers like 10281 map to BrickLink variants such as 10281-1; aliases are remembered in data/setAliases.json).
  2. If that set is already in data/sets/, the inventory is read from disk (no BrickLink call).
  3. On a cache miss, the server fetches set metadata and the part inventory from BrickLink, then writes a JSON file under data/sets/.
  4. Set and part thumbnails are downloaded once into data/images/ and served from /cache/images/... afterward.

Deleting a project (or using Clear Unused Images in Settings) prunes thumbnails that no project still needs. Set inventory JSON files stay until you remove them manually or clear that cache.

Reopening a project or adding the same set again uses the local cache. You only talk to BrickLink when loading a set for the first time (or after the cache was cleared).

Colors

Part color swatches use BrickLink’s color catalog (GET /colors), stored locally as data/bricklinkColors.json.

npm run syncColors

Run that once after setup (and occasionally later if BrickLink adds colors). The server loads the file at startup and maps each part’s color_id → hex / name when enriching inventories. That keeps color lookups off the live API during normal use.

A committed copy of bricklinkColors.json ships in the repo so the app works before you sync; syncColors refreshes it from BrickLink when you want an update.

Project layout

public/          Web UI, styles, assets
src/             Local Node server + BrickLink client
api/             Vercel serverless handlers (config, sets)
data/            Local caches and projects (mostly gitignored)
  bricklinkColors.json   Color id → hex (committed; refresh with syncColors)
  sets/                  Cached set inventories (gitignored)
  images/                Cached thumbnails (gitignored)
  projects/              Saved projects (gitignored)

Trademarks

RebuildMate is not affiliated with, endorsed by, or sponsored by the LEGO Group or BrickLink. LEGO® is a trademark of the LEGO Group. BrickLink® is a trademark of BrickLink Limited.

About

LEGO Alternate Build Companion App for MOC builders. Allows builders to easily track the parts they've used and compare against the original set inventory.

rebuildmate.com

Topics

bricklinkbricklink-apibricklink-studiolegolego-buildwebappwebsite

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.