Project
Annual Inventory Lookup Tool
A find-it aid built from the annual inventory count
Once a year the store scans every item and records where it sat. For the rest of the year, that count mostly gets used to find things. A staff member is holding a misplaced item, or standing at an empty shelf, and needs to track it down. That's what this tool is for.
At a glance
- Role
- Designed solo and built with Claude Code
- History
- A spreadsheet searched with Ctrl+F, then a search bar the next year, then this app, refined over three annual counts
- Stack
- Next.js, Postgres and the Shopify Admin API, on Vercel, styled with Shopify's Polaris design tokens
- Used by
- Store staff, often on the floor with an item in hand
- Shopify access
- Read-only. It never changes a product, price or stock level
What it does
One search answers two questions: where was this counted, and do sales since then explain where it is now?
- 30,286items in the 2026 count
- 323zones scanned
- 1 in 5items found in more than one zone
Search by SKU, barcode, title or zone name. Each item shows three things side by side: how many were scanned and in which zones, how many have sold since the count, and how many Shopify shows on hand now. From those, staff can tell which spots are worth checking.
- Every zone, with counts. A copy split across zones is the strongest sign it has been moved, so every zone and its count stays visible.
- What it sat next to. Scan order is shelf order. Expanding a zone shows the scans on either side of each copy, so a stray copy comes with the titles it was shelved between.
- Search by zone. Typing a zone name lists everything counted there, for the question "what should be on this shelf?"
- Shopify's own history. Each item shows its adjustment history, read live from Shopify, with the reason, app and staff member behind each change.
How it's built
The count is frozen. Everything since the count stays live.
The count is uploaded once a year and replaced only by the next one. "Sold since" comes from Shopify's own adjustment history, read when an item is opened. Alongside it, Shopify pushes sales, returns and stock changes to the app as they happen, a daily job fills any gap the push missed, and ReStocky posts each receipt straight into the log.
The scanner leaderboard came from the same raw scan log. It shows who counted what, how fast, and across how many zones.
Data security
Staff sign in with their Shopify account, and nothing gets in without proving who sent it.
- Signed in through Shopify. Staff log in with their own Shopify account, and the app accepts only this store. The reply from Shopify is checked for its signature and a one-time code before it's trusted, and the session is a signed, browser-only cookie that expires within a day.
- Every page behind the login. Every page and data request needs a valid session. If login isn't configured, the app refuses everything.
- Updates that prove where they came from. Every update from Shopify is checked against its signature before it's read. The daily job and the two apps that post to it, ReStocky and Item Clearancer, each have their own secret key, compared in a way that doesn't leak it through timing.
- Counted once, even when sent twice. Shopify can deliver the same update more than once. Each one is recorded under its own key, so a repeat is ignored.
- Read-only, and no customer data. It only asks Shopify for permission to read. From orders it keeps item IDs, quantities and times, never who bought them. The only names it stores are the scanners' from the count.
A plain-language data protection page inside the app sets all of this out for staff.
How I tested it
It can't break the store, so the risk was showing a wrong number to someone standing at a shelf.
The tool never changes anything in Shopify, so most of the testing happened on the floor, across three annual counts. The fixes came from what didn't hold up there.
- Two feeds that check each other. Live updates from Shopify can be missed during a deploy or an outage, so a daily job re-reads the same sales. Each sale is recorded under its own key, so it only ever counts once.
- Checking where updates go. A Shopify subscription can look healthy while sending updates to an old address. The app checks where each one points, and one button re-points any that are wrong.
- Fixing what the counts exposed. I spotted it on the floor: for items counted across several days, "sold since" started at the first scan and double-counted sales. It now starts at the latest scan, and a one-time fix corrected the counts already loaded.
What I left out
It shows the facts and leaves the judgment to the person holding the item.
What I tried
Flagging gaps between expected stock and on-hand, and logging unexplained stock changes as adjustments. On the floor, the first confused more than it helped, and the second booked phantom losses whenever on-hand briefly dipped.
What it does now
No reconciliation. On-hand is read live from Shopify, and manual changes are logged only when someone says what they were.
The home screen and leaderboard show the store's real 2026 count, with staff names changed. The item screen shows the tool running on demo data.