Upload a photo of any clothing item → AI identifies it → instantly find community QC photos from Weidian sellers.
📸 Upload photo
↓
🤖 Claude Vision identifies the item (e.g. "Nike Air Force 1 Low White")
↓
✏️ Confirm (or edit) the item name
↓
🔍 Search Reddit + Google for community spreadsheets
↓
🧵 Extract Weidian itemIDs via regex
↓
🖼️ Display QC photo links → finderqc.com/product/Weidian/{itemID}
| Layer | Tech |
|---|---|
| Framework | Next.js 14 (App Router) |
| Styling | Tailwind CSS 3 |
| AI Vision | Anthropic claude-opus-4-6 |
| Search | Reddit JSON API + Google Custom Search |
| QC photos | finderqc.com |
git clone https://github.com/xtasySyrup/repsFinder.git
cd repsFinder
npm installcp .env.local.example .env.localEdit .env.local:
ANTHROPIC_API_KEY=sk-ant-... # Required — get at console.anthropic.com
GOOGLE_API_KEY=AIza... # Optional — broadens results
GOOGLE_CX=... # Optional — your Google Custom Search engine IDReddit is queried anonymously via the public JSON API — no credentials needed.
npm run devOpen http://localhost:3000.
| Route | Method | Description |
|---|---|---|
/api/identify |
POST |
Sends base64 image to Claude vision, returns { itemName } |
/api/search |
POST |
Queries Reddit + Google CSE for "{item} weidian spreadsheet", returns raw results |
/api/qc |
POST |
Runs Weidian itemID regex over all results, returns { items[] } with finderqc URLs |
All three text sources (URL, title, snippet) from every search result are scanned with:
/itemID(?:=|%3D)(\d{6,12})/giThis catches both plain and URL-encoded forms of itemID=1234567890.
Each found ID maps to:
- QC photos →
https://finderqc.com/product/Weidian/{itemID} - Seller listing →
https://weidian.com/item.html?itemID={itemID}
repsFinder/
├── app/
│ ├── api/
│ │ ├── identify/route.ts ← Anthropic vision
│ │ ├── search/route.ts ← Reddit + Google CSE
│ │ └── qc/route.ts ← Weidian regex + finderqc formatter
│ ├── globals.css
│ ├── layout.tsx
│ └── page.tsx ← Full client UI
├── .env.local.example
├── next.config.ts
├── tailwind.config.ts
└── tsconfig.json
- Go to Programmable Search Engine
- Create a new engine — set it to search the entire web
- Copy the Search engine ID →
GOOGLE_CX - Get an API key from Google Cloud Console →
GOOGLE_API_KEY
Without Google CSE the app still works; Reddit alone surfaces most community spreadsheets.
MIT