Cursor App Template #5 — Inventory & Stock

Inventory & Stock

Track stock levels, adjustments, and reorder alerts.

Overview

This inventory management app helps operations teams monitor SKUs, record stock movements, and catch low-stock situations before they become outages. KPI cards, charts, an editable grid, and a transaction log work together in a single browser page with local persistence.

Key features

Dashboard KPIs

Summary cards display Total SKUs, Total Inventory Value, and Low Stock Items (count of items at or below reorder point).

Inventory grid

AG Grid columns: Item ID, Product Name, Category, Stock Qty, Unit Price, Total Value, Reorder Point, Status. Total Value computes as quantity × unit price. Rows at or below reorder point show a low-stock indicator (⚠️ Low) and red highlighting; healthy rows show ✓ OK. Inline editing covers ID, name, category, quantity, unit price, and reorder point. A pinned total row sums quantity and inventory value.

Stock adjustments

A stock adjustment form lets you:

  • Select an item
  • Choose Stock In (+) or Stock Out (−)
  • Enter quantity and an optional note

Stock-out is validated so quantity cannot drop below zero.

Transaction history

Every adjustment is logged chronologically. A recent adjustments panel shows the last five moves with timestamp and note.

Filters and search

  • Text search by item ID or product name
  • Category filter: Electronics, Office, Furniture, or All

Charts

  • Bar chart — top five items by inventory value
  • Pie chart — inventory value by category

Import and export

  • Export inventory to Excel
  • Import Excel/CSV — updates existing SKUs or adds new ones

Appearance

Dark mode toggle; preference saved in the browser.

Data & persistence

Ten sample SKUs preload on first visit. Items, transactions, and recent adjustments persist in localStorage.

Built with

Tailwind CSS, AG Grid Community, Alpine.js, Chart.js, and SheetJS.

Try the interactive walkthrough below. Click Walk through features and use Next / Back (or arrow keys) to explore every feature.

Inventory — Polished app

Inventory & Stock

Track stock levels, adjustments, and reorder alerts.

Total SKUs
10
Total Value
$11,287.37
Low Stock Items
5
Stock adjustment
Top items by value
Value by category
Electronics · Office · Furniture
Item IDProduct NameCategoryStock QtyUnit PriceTotal ValueReorder PtStatus
SKU-001Wireless MouseElectronics45$24.99$1,124.5510✓ OK
SKU-002USB-C HubElectronics8$49.99$399.9215⚠️ Low
SKU-003Notebook A5Office120$3.49$418.8030✓ OK
SKU-004Ballpoint Pens (12pk)Office65$5.99$389.3520✓ OK
SKU-005Standing DeskFurniture12$399.00$4,788.005✓ OK
SKU-006Ergonomic ChairFurniture6$289.50$1,737.008⚠️ Low
SKU-007HDMI Cable 2mElectronics34$12.50$425.0012✓ OK
SKU-008Whiteboard MarkersOffice5$8.75$43.7515⚠️ Low
SKU-009Label PrinterElectronics9$129.00$1,161.0010⚠️ Low
SKU-010Filing CabinetFurniture4$175.00$700.006⚠️ Low
Total308$11,287.37
Transaction log
6/12/26, 10:15 AM+20 SKU-001Received shipment
6/12/26, 9:42 AM−3 SKU-008Office restock
Recent adjustments (last 5)
SKU-001 — Wireless Mouse +206/12/26 · Received shipment
SKU-008 — Whiteboard Markers −36/12/26 · Office restock
💾 Inventory data and dark-mode preference persist in localStorage between visits.
📱 Layout stacks on small screens — cards, form, and toolbar wrap with 44px touch targets.

Leave a Reply