GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - aimanfazal/dead-stock-dost: A tiny local-first AI tool that helps small garment shops find and act on dead stock

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
docs
docs
 
 
lib
lib
 
 
public
public
 
 
screenshots
screenshots
 
 
.env.local.example
.env.local.example
 
 
.gitignore
.gitignore
 
 
ARCHITECTURE.md
ARCHITECTURE.md
 
 
README.md
README.md
 
 
SCOPE.md
SCOPE.md
 
 
next-env.d.ts
next-env.d.ts
 
 
next.config.ts
next.config.ts
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

Dead Stock Dost

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:

๐Ÿ“ธ Screenshots

Homepage

Dead Stock Dost homepage

Stock Report

Product details

โœจ What It Does

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.

๐Ÿง  How Dead Stock Is Determined

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.

๐Ÿค– Local AI

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.

๐Ÿ› ๏ธ Tech Stack

  • 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.

๐Ÿ“„ CSV Format

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.

๐Ÿš€ Run Locally

Requirements

  • Node.js 20.9+
  • Ollama for local AI suggestions

Install

npm install

Start the development server

npm run dev

Then open:

http://localhost:3000

You can use the demo data or upload your own CSV.

Set Up Ollama

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.

๐Ÿงช Try the Demo

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

๐Ÿค Built for Hacktoberfest

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.

About

A tiny local-first AI tool that helps small garment shops find and act on dead stock

Topics

build-for-a-friendhacktoberfestinverntory-managementlocal-ainextjsollamareacttypescript

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.