Skip to content

ProjectsCatalog Studio

Client project · Retail · Cairo

From a phone photo to a ready product

Cairo's largest stationery store sells 15–17k products. I built the system its staff use every day: photograph a product on a phone, and seconds later it is on white with its barcode under it, named in Arabic and English, and waiting for review at the cashier.

  • Works in the phone's browser, nothing to install
  • Runs on the store's own server
  • Every barcode checked, never changed by AI
from the photo to ready for review
9 s
AI cost per product
$0.002
finished images per product: clean, and with its barcode
2
items from the old system, cleaned and ready to link
27,706

The problem

A Telegram bot that couldn't keep up

Before, the staff sent every product as a Telegram message: a photo, with the barcode typed under it. The bot's own database, over 33 working days and 1,992 products, tells the story.

  • 17 hours to a review

    Half the products waited longer than that for a reviewer, and 10% waited more than 4 days. 16 were stuck for good.

  • ~90% of names rewritten

    The AI wrote Arabic only, and the reviewers ended up editing about 90% of the names by hand.

  • 460+ days for the catalogue

    At 60 products a day, the 27,706 items in the store's system would take more than 460 working days. And the AI could change a barcode by mistake.

What I built

Four steps, from the shelf to the store's system

Catalog Studio is a website the staff open on their phones and laptops, with nothing to install, and a processing line on the store's own server.

  1. Capture

    Staff member · upload 1–12 s

    Take a photo, scan the barcode with the camera or type it, choose piece or box, and tap Save. The upload carries on in the background, and if the internet drops, the photo waits on the phone.

  2. Prepare

    Automatic · 6–22 s

    On the store's server the background is removed, and the product is centred on a white square with its barcode under it. AI writes the name and a short description in Arabic and English and suggests a department.

  3. Review

    Reviewer · a batch is held 20 min

    At the cashier, a reviewer takes a batch of 5, compares before and after, scans the barcode straight off the screen, edits if needed, then approves with Enter or rejects with R.

  4. Sync

    Automatic · next: the ERP's API

    Approved products go to the store's new ERP through its API, once per barcode, so nothing is ever created twice.

Same photo, before and after

One phone photo, two finished images

Four products I photographed on a phone for this page, then ran through the same background-removal model and the same compose step as the store's server. Nothing is drawn or invented: logos and printed text stay as shot.

  • Phone photo: Twisting stunt RC car, orange
    Phone photo
    Clean: Twisting stunt RC car, orange
    Clean
    With barcode: Twisting stunt RC car, orange
    With barcode

    Twisting stunt RC car, orange

    عربية ريموت استانت دوّارة، برتقالي

    Suggested department
    Toys › Remote control
    Barcode
    2178304195529
  • Phone photo: Pyrosol Gold flying insect killer, 300 ml
    Phone photo
    Clean: Pyrosol Gold flying insect killer, 300 ml
    Clean
    With barcode: Pyrosol Gold flying insect killer, 300 ml
    With barcode

    Pyrosol Gold flying insect killer, 300 ml

    بيروسول جولد مبيد الحشرات الطايرة 300 مل

    Suggested department
    Home › Insect killers
    Barcode
    2041730582617
  • Phone photo: Venum boxing gloves, black and gold
    Phone photo
    Clean: Venum boxing gloves, black and gold
    Clean
    With barcode: Venum boxing gloves, black and gold
    With barcode

    Venum boxing gloves, black and gold

    جوانتي ملاكمة Venum، أسود ودهبي

    Suggested department
    Sports › Boxing
    Barcode
    2263059174483
  • Phone photo: Horse Imperia zip wallet, brown
    Phone photo
    Clean: Horse Imperia zip wallet, brown
    Clean
    With barcode: Horse Imperia zip wallet, brown
    With barcode

    Horse Imperia zip wallet, brown

    محفظة جلد بسوستة Horse Imperia، بني

    Suggested department
    Bags › Wallets
    Barcode
    2295418607332

These barcodes are sample codes in the 200–299 range, which GS1 keeps for in-store use, so they can never match a real product. Each one passes its check digit and scans.

Why the barcode

One code, from the shelf to the ERP

The barcode is the product's key at every step. So the system treats it as data to protect, not text to improve.

  1. Kept exactly as scanned

    The code the staff member scans is stored as read. The AI writes names and descriptions; it never touches the code.

  2. Checked, not guessed

    An international barcode (GTIN) must pass its check digit. A wrong digit is refused, not fixed. A store's own internal code is accepted too, and printed as Code 128.

  3. Scanned again at review

    The reviewer's scanner reads the barcode printed under the photo, right off the laptop screen. If it doesn't match, approval stops.

  4. The ERP's key

    The ERP sync sends each product once per barcode, so a retry or a second photo never makes a duplicate.

With barcode: Venum boxing gloves, black and gold
An EAN-13, part by part
Prefix200–299: in-store use
226
Item number9 digits
305917448
Check digitfrom the other 12
3

Before and after

The old bot and Catalog Studio, side by side

The Telegram bot and Catalog Studio, step by step
StepTelegram botCatalog Studio
CaptureA message: a photo, and the barcode typed under itA page on the phone: photo, barcode scanned by the camera, Save
No internetThe message fails, and the staff member waitsThe photo waits on the phone and uploads by itself
PhotoAs shot, stored in Google DriveTwo images on white, on the store's own server
NameArabic only, and about 90% rewrittenArabic and English, with rules learned from 223 approved names
DepartmentFree text: 70+ spellingsA fixed tree of 3 levels
BarcodeThe AI could change it by mistakeKept as scanned; internal codes accepted
ReviewOne by one in Telegram, and 16 stuckBatches of 5, released after 20 minutes
AITwo expensive models per product (GPT-4o and Claude Opus)One fast model (Gemini 2.5 Flash), about $0.002 per product
Wait for review17 hours (median)9 seconds (the last product shot)

Same client, a second job

And the old catalogue: 27,723 messy rows

Every photo has to link to an item in the store's system. So alongside the main build, I cleaned the old database those items come from.

  1. The file

    • The old program exported one 54 MB file.
    • It was named .xls but was really Excel 2003 XML.
    • Converted to a 7 MB CSV, then to SQL.
  2. The import

    • 27,723 items in the file, 27,706 imported in one transaction: all or nothing.
    • First a rehearsal on a temporary database, a dry run and a backup, then the real run.
    • 17 barcodes were registered twice in two shapes: the newest one was kept.
  3. Spelling

    • 1,896 names fixed: 1,121 by rules for free, 775 by AI.
    • Rules first: every word takes the form the shop itself writes most.
    • AI only for real typos, and a safety check turned down its edits in 708 names.
  4. Link and secure

    • Built multi-tenant from day one, so any shop can use it later.
    • Row-level security on every table, and no secrets in the browser.
    • 249 automated tests passed.
  5. Barcode review

    • 12,178 items have an international barcode (GTIN, valid check digit), 15,528 a local code.
    • Root cause: 12,297 of those local codes are just the item's serial number in the old program.
    • 336 groups of items look like the same product registered more than once (735 items).

The cleanup in numbers

What the cleanup found

items in the file → items imported, in one transaction
27,723 → 27,706
names fixed: 1,121 by rules, 775 by AI
1,896
of AI fixes right in a 60-name sample; the rest go to a person
~90%
total AI cost, with every answer cached
$0.47
groups of duplicated items (735 items)
336
local codes that were just serial numbers: the root cause
12,297
Duplicated items by department
  • Toys401
  • Office supplies176
  • Fabric & birthdays67
  • Unspecified44
  • Stories39
  • Paper & library8

Toys hold 55% of the duplicated items.

Source: the duplicate review of the store's 27,706 items. Total: 735 items.

What the store got: an 11-page report in Arabic and an Excel file with one recommendation per group. 95 groups merge now, 79 need a price decision first, 162 need a person to look.

Before and after

The shop's own spelling, everywhere

Rules fix the common forms for free. AI catches the real typos, like فبركاسل, fixed to فابركاستل. The old name is never erased.

Spelling fixes and how many names each one changed
BeforeAfterNames
ورقهورقة49
مللىمللي45
مياةمياه41
سوستهسوستة41
فرشاهفرشاة32
اكسلفوناكسليفون8
سلسةسلسلة8
فبركاسلفابركاستل4

Try it yourself

The cleanup tools, in your browser

Sample data, no AI, and nothing is sent anywhere: everything runs on this page.

Sample data

Product names, one per line. The rules layer fixes the forms the shop gets wrong most. The names are in Arabic, like the store's.

In the real project, rules fixed 1,121 names for free and AI fixed 775, for $0.47 in total.

How it is built

Safe, cheap to run, and easy to check

Built with

  • Next.js PWA on Vercel
  • Supabase (self-hosted, Postgres, RLS)
  • n8n
  • rembg (u2net)
  • Python (image compose)
  • OpenRouter · Gemini 2.5 Flash
  • IndexedDB offline queue
  • Security

    Every table has row-level security, and each shop sees only its own data. The AI key is stored encrypted on the server and never reaches a phone or a browser.

  • No photo is lost

    A photo is saved on the phone first and uploaded second, and it leaves the phone only after the server confirms it.

  • Cost

    Background removal runs on the store's server for $0 (a paid API is $0.02 a photo), and the AI is about $0.002 a product: about $55 for all 27,706 items.

  • A person decides

    Nothing reaches the ERP before a reviewer approves it, every edit records who did what, and 280+ automated tests run before every release.

What is next

Where it goes from here

  • ERP sync

    Approved products go straight into the store's new ERP, as soon as its API arrives.

  • Live numbers

    A dashboard for the owner: photographed, waiting, approved, and each staff member's output.

  • Ready for any shop

    Built from day one to serve more than one shop, each with its own data. So the next store starts from a working system.

Got shelves full of products to list?

Tell me how you add products today. I'll tell you what I'd automate first.