← All work

Senior Android Engineer

BrickWorks

A mobile and web platform that turns a BrickLink store into a scan-and-confirm operation: recognise a part with the camera, print its label, and let it sync in the background, even with no signal.

RoleSenior Android Engineer
PeriodNov 2024 – Dec 2025
TeamFounder plus mobile, web and backend engineers · I owned the Android app and its sync, vision and printing
DomainE-commerce · On-device ML · Offline-first · Android
Stack
  • Kotlin
  • Jetpack Compose
  • TensorFlow Lite
  • ML Kit
  • Room
  • WorkManager
  • Nuxt.js
  • FastAPI
  • Celery
Inventory items managed
10M+
First-try brick recognition
85%
Barcode scan success
99%
Labelling time
−80%
BrickWorks · system architecture
  1. 01 Android

    • CameraX + TFLite recognition
    • ML Kit barcode
    • Wi-Fi label printing
  2. 02 Local first

    • Room inventory store
    • WorkManager sync & pricing jobs
    • Conflict resolution
  3. 03 Backend

    • FastAPI
    • Celery workers & beat
    • PostgreSQL
  4. 04 Marketplace

    • BrickLink API
    • Nuxt web app

Use cases

Who uses BrickWorks, and how

01

BrickLink seller

Processing a bulk lot of loose bricks

A seller buys a mixed bulk lot and needs every part identified, priced and listed before it can sell.

  1. Point the camera at a part and let on-device recognition identify it, or scan a barcode
  2. Confirm colour and condition, then print a label on a Wi-Fi thermal printer
  3. The item lands in inventory and syncs to the store in the background

OutcomeIntake that used to mean catalogue searches and handwritten labels becomes a scan-and-confirm loop.

02

Store owner

Pricing with market data

Without price history, sellers either undercut themselves or list above what buyers will pay.

  1. Open a part to see recent price trends and demand
  2. Adjust the listing price from the same screen
  3. Price updates sync to the marketplace automatically

OutcomePricing decisions based on data rather than guesswork.

03

Seller packing orders

Fulfilling orders away from the desk

Orders arrive while the seller is in the stockroom, away from a desktop.

  1. See new orders and their status on the phone
  2. Pick items using stored locations and confirm stock
  3. Mark orders as shipped, even with no signal, and sync when back online

OutcomeOrders are processed where the stock is, and inventory stays accurate.

Context

BrickLink is the main marketplace for LEGO® parts. Serious sellers run catalogues of thousands of individual parts, each defined by design, colour and condition. BrickLink gives them a website, not an operations tool: intake means catalogue searches by hand, labels are handwritten, and stock drifts out of sync with listings. BrickWorks is the mobile and web platform that turns a BrickLink store into a scan-and-confirm operation.

My role

Senior Android engineer, and the owner of everything on the device: the local-first data layer, background sync, camera-based recognition, barcode scanning and label printing. I also contributed to the Nuxt web app and worked against the FastAPI and Celery backend that talks to BrickLink.

Constraints

  • Scale on a phone. Sellers’ inventories run into the millions of items across the platform. Lists, search and sync had to stay fast on a mid-range device.
  • Warehouses have bad Wi-Fi. Intake happens in garages and storerooms. The app had to work fully offline and reconcile later without losing edits.
  • 30K+ visually similar parts. Many parts differ by one stud or a hidden pin. Recognition had to be honest about uncertainty.
  • Hardware in the loop. Label printers drop off the network, run out of labels and jam.

Key decisions

Hardest problem

Background work at this scale. Inventory sync, price refreshes and order processing all compete for the network and the database. I split them into separate WorkManager chains with constraints and backoff, batched Room inserts inside transactions, and reported progress to the UI through a repository so users always knew what was syncing. That pattern became the WorkManager in Production series.

Results

  • A Kotlin inventory app over 10M+ inventory items, with offline editing and conflict resolution on reconnect.
  • 85% first-try on-device brick recognition across 30K+ parts.
  • 99% barcode scan success with ML Kit.
  • A Wi-Fi thermal label printing module that cut labelling time by 80% (see Printing labels with the Brother QL SDK).

What I’d do next

Train the recognition model on mistakes sellers corrected in the app, so accuracy rises with use, and move more of the data layer into Kotlin Multiplatform for an iOS client.

Stack

LayerStack
AndroidKotlin · Jetpack Compose · CameraX · Hilt · Retrofit
VisionTensorFlow Lite · ML Kit barcode
Data & backgroundRoom · WorkManager
WebNuxt.js
BackendFastAPI · Celery worker & beat · PostgreSQL
DeliveryFastlane · Docker · CI/CD