Skip to content
Nitish Kumar
Menu
01Skills→02Experience→03Projects→04Education→05Contact→
Instagram
Follow for updates
↗

© 2026 Nitish Kumar

LIVE · Case studyInventory · AI Tooling

StarStock

Multi-warehouse inventory system with an AI connector

  • Next.js
  • TypeScript
  • PostgreSQL
  • MCP
CONTEXT

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.

WHAT IT DOES

Key Features

The product is deliberately narrow: one trustworthy number per SKU per warehouse, and a complete record of how that number changed.

01

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.

02

Multiple warehouses

Stock is tracked per warehouse, so the count at one location never stands in for another.

03

Four movement types

Inbound, outbound, transfer and adjustment entries cover receiving, dispatch, inter-warehouse moves and corrections after a physical count.

04

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.

05

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.

06

Catalogue summary totals

Catalogue-level rollups give a quick read on how many products and units are on hand at any moment.

07

Product image upload

Each product can carry an image, so the catalogue is scannable by people instead of only by code.

08

Excel file handling

ExcelJS powers spreadsheet import and export, giving existing sheet-based workflows a practical on-ramp.

09

Secure login with user management

The app sits behind a login, and users can be added or removed as the warehouse team changes.

THE FLOW

How It Works

Five steps from an empty catalogue to a replenishment list.

  1. 01

    Log in

    Access the workspace with a user account managed by the team.

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

  3. 03

    Record a stock movement

    Choose inbound, outbound, transfer or adjustment for a specific warehouse when goods actually move.

  4. 04

    Transaction logged automatically

    Each movement writes a transaction record in the same action, so history and current stock never drift apart.

  5. 05

    Low-stock view flags reorders

    Anything at or below its reorder level surfaces in the low-stock view, ready to be restocked.

UNDER THE HOOD

Architecture

A single Next.js deployment with a server API and a relational database behind it.

01

User

Browser, signed in

02

Next.js web app

App Router UI

03

Server API

Validated requests

04

Drizzle ORM

Typed queries

05

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.

AI INTEGRATION

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

1

You ask in plain language

“Which products are low on stock?” — no query syntax, no dashboard hunting.

2

The AI picks the right tool

The assistant maps the question to one of the read or action tools the server exposes.

3

OAuth login verified, data queried

The MCP server checks the OAuth-protected session, then queries live inventory through the same application logic.

4

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
TOOLING

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
PRODUCT

Screenshots

A look at the working app. Click any frame to view it larger.

Dashboard01 / 04
Inventory02 / 04
Transactions03 / 04
AI chat04 / 04

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.