Overview
Tracking stock across multiple warehouses in spreadsheets leads to wrong counts, no movement history and no warning before an SKU runs out. StarStock is a web-based inventory system that keeps one accurate record of every product, every warehouse and every stock movement.
Key Features
The product is deliberately narrow: one trustworthy number per SKU per warehouse, and a complete record of how that number changed.
SKU-based product catalogue
Every product is identified by its SKU, with stock held as both individual pieces and full cartons so picking and auditing read the same record.
Multiple warehouses
Stock is tracked per warehouse, so the count at one location never stands in for another.
Four movement types
Inbound, outbound, transfer and adjustment entries cover receiving, dispatch, inter-warehouse moves and corrections after a physical count.
Full transaction history
Every movement is appended to a permanent log and displayed newest first, so any number can be traced back to the entries that produced it.
Low-stock view
A dedicated view filters the catalogue down to SKUs that need reordering, turning replenishment into a short list instead of a full audit.
Catalogue summary totals
Catalogue-level rollups give a quick read on how many products and units are on hand at any moment.
Product image upload
Each product can carry an image, so the catalogue is scannable by people instead of only by code.
Excel file handling
ExcelJS powers spreadsheet import and export, giving existing sheet-based workflows a practical on-ramp.
Secure login with user management
The app sits behind a login, and users can be added or removed as the warehouse team changes.
How It Works
Five steps from an empty catalogue to a replenishment list.
- 01
Log in
Access the workspace with a user account managed by the team.
- 02
Add a product with opening stock
Create the SKU, set piece and carton quantities, attach an image, and record opening stock against the warehouse that physically holds it.
- 03
Record a stock movement
Choose inbound, outbound, transfer or adjustment for a specific warehouse when goods actually move.
- 04
Transaction logged automatically
Each movement writes a transaction record in the same action, so history and current stock never drift apart.
- 05
Low-stock view flags reorders
Anything at or below its reorder level surfaces in the low-stock view, ready to be restocked.
Architecture
A single Next.js deployment with a server API and a relational database behind it.
User
Browser, signed in
Next.js web app
App Router UI
Server API
Validated requests
Drizzle ORM
Typed queries
PostgreSQL
Supabase
Every stock change is written as a transaction record, so the movement log is the source of truth behind each current quantity. Deployed on Vercel.
Talk to your inventory
StarStock includes a remote MCP (Model Context Protocol) server running on the same deployment, protected with OAuth. It lets AI assistants like Claude and ChatGPT connect to StarStock as a custom connector and work with live stock data in plain language. The server exposes 11 tools: 7 read tools (search products, get product by SKU, list products, catalogue summary, low stock, list warehouses, list transactions) and 4 action tools (add product, inbound stock, outbound stock, product image upload link).
You ask in plain language
“Which products are low on stock?” — no query syntax, no dashboard hunting.
The AI picks the right tool
The assistant maps the question to one of the read or action tools the server exposes.
OAuth login verified, data queried
The MCP server checks the OAuth-protected session, then queries live inventory through the same application logic.
Answer comes back in chat
Results land as a normal conversation reply — with the stock numbers already up to date.
Try asking
- Which products are low on stock?
- Show the last 10 stock movements
- Add stock to a product in a warehouse
Tech Stack
Frontend
- Next.js 16
- React 19
- TypeScript
- Tailwind CSS 4
Backend and Data
- PostgreSQL (Supabase)
- Drizzle ORM
- drizzle-kit migrations
- node-postgres
- ExcelJS
AI
- MCP server (mcp-handler)
- OAuth
Quality and Security
- Vitest
- ESLint
- Row Level Security enabled
- Public table access locked down
- GitHub Dependabot and secret scanning
Hosting
- Vercel
Screenshots
A look at the working app. Click any frame to view it larger.
See it running
The live app is open in the browser, and the source is public if you want to read the schema, API routes and MCP server.