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.
| Item ID | Product Name | Category | Stock Qty | Unit Price | Total Value | Reorder Pt | Status |
|---|---|---|---|---|---|---|---|
| SKU-001 | Wireless Mouse | Electronics | 45 | $24.99 | $1,124.55 | 10 | ✓ OK |
| SKU-002 | USB-C Hub | Electronics | 8 | $49.99 | $399.92 | 15 | ⚠️ Low |
| SKU-003 | Notebook A5 | Office | 120 | $3.49 | $418.80 | 30 | ✓ OK |
| SKU-004 | Ballpoint Pens (12pk) | Office | 65 | $5.99 | $389.35 | 20 | ✓ OK |
| SKU-005 | Standing Desk | Furniture | 12 | $399.00 | $4,788.00 | 5 | ✓ OK |
| SKU-006 | Ergonomic Chair | Furniture | 6 | $289.50 | $1,737.00 | 8 | ⚠️ Low |
| SKU-007 | HDMI Cable 2m | Electronics | 34 | $12.50 | $425.00 | 12 | ✓ OK |
| SKU-008 | Whiteboard Markers | Office | 5 | $8.75 | $43.75 | 15 | ⚠️ Low |
| SKU-009 | Label Printer | Electronics | 9 | $129.00 | $1,161.00 | 10 | ⚠️ Low |
| SKU-010 | Filing Cabinet | Furniture | 4 | $175.00 | $700.00 | 6 | ⚠️ Low |
| Total | 308 | $11,287.37 | |||||
localStorage between visits.