A tiny local-first AI tool that helps small garment shops find stock that's getting stuck.
Dead Stock Dost is one of the five projects built for the Hacktoberfest Weekend Challenge: Build for a Friend (DEV Challenges).
It is designed for a small neighborhood garment shop with a simple inventory CSV and one practical question:
Upload an inventory CSV to:
- Parse and validate inventory data
- Identify Dead Stock and At Risk products
- Show products that need attention, with older unsold products first
- Select a product and ask:
- Why is this stuck?
- What can I try?
- Get short, practical suggestions from a local AI
The core inventory analysis works without AI. If Ollama isn't available, you can still upload the CSV and see which products need attention.
Dead-stock classification is completely deterministic. AI does not decide the status.
| Days since last sale | Status |
|---|---|
| 90+ days | ๐ด DEAD STOCK |
| 45โ89 days | ๐ก AT RISK |
| Less than 45 days | ๐ข NORMAL |
| Stock โค 0 | Ignored |
Only products with stock greater than zero are considered.
When you select a product, Dead Stock Dost can send its calculated facts and your question to a local open-weight model running through Ollama.
The AI can explain the situation and suggest two or three possible actions based only on the available inventory data.
It does not:
- Change inventory
- Set prices or discounts
- Make decisions for the shopkeeper
- Invent facts that aren't present in the data
The CSV remains the source of truth.
- Next.js
- React
- TypeScript
- CSV
- Ollama
- Local open-weight AI model
The MVP does not require a database, authentication system, cloud AI, or hosted backend.
Dead Stock Dost expects these columns:
name
category
price
stock
last_sale_date
Example:
name,category,price,stock,last_sale_date Wedding Kurta,Kurta,1499,5,2026-04-02 Blue Shirt,Shirt,899,8,2026-06-10 Denim Jacket,Jacket,1999,8,2026-03-28
Dates should use YYYY-MM-DD.
Invalid rows are reported clearly rather than silently discarded or guessed.
- Node.js 20.9+
- Ollama for local AI suggestions
npm install
npm run dev
Then open:
http://localhost:3000
You can use the demo data or upload your own CSV.
Install Ollama, then:
ollama pull llama3.2 ollama serve
If Ollama isn't available, the inventory analysis still works; only the AI suggestions become unavailable.
The intended demo takes less than two minutes:
Open the app
โ
Try demo data / Upload CSV
โ
See products needing attention
โ
Select a product
โ
"Why is this stuck?"
โ
"What can I try?"
โ
Get a local AI response
Dead Stock Dost was built for the Hacktoberfest Weekend Challenge: Build for a Friend.
The goal is simple: build something useful for a real person without turning it into an over-engineered platform.
For this project, that person is a small garment-shop owner who needs a quick way to notice inventory that's been sitting around for too long.
The code calculates.
The AI explains.
The shopkeeper decides.

