-
-
Admin-only Create member dialog: username, email and an initial password of at least 12 characters.
-
Sign-in page. Accounts are created by an administrator, and each role sees a different view after login.
-
Admin sign-in: IntelliStock's login page. Accounts are created by an administrator, not by self-signup.
-
Member access ready: the temporary password is shown only once, and the new member gets the STAFF role.
-
Priority queue: emergency jobs are promoted ahead of routine audits.
-
Observability charts: request latency over time. Kernel-level panels show as unavailable in fallback collector mode.
-
14-day demand forecast from a regression model, with a reorder point and live transactions below.
-
Dashboard: total SKUs, low-stock count, inventory valuation and stock breakdown by category.
-
Live inventory insights: total SKUs, low-stock count, stock valuation and category breakdown.
-
Observability view with latency and CPU stats. Load generation is limited to admins and managers.
-
Observability panel: request latency percentiles, CPU load and app latency. Kernel-level metrics are unavailable in fallback collector mode.
-
Concurrency lab: the eight parallel sales batch starts, with a notification once the batch commits.
-
8-thread waterfall: eight sales run in parallel, and all of them complete.
-
Banker's lab: a warehouse request is approved only when a safe execution sequence exists, which avoids deadlock.
-
Stock table: products by warehouse with stock level bars against reorder thresholds, so low stock is easy to spot.
Inspiration
Two cashiers sell the last item in a shop at the same moment. Both screens say "in stock", both sales go through, and the count quietly goes wrong. We wanted to build a system that shows this classic failure happening, fixes it, and lets you watch what the machine is doing while it runs.
What it does
IntelliStock is an AI-based inventory management system that brings together a database, the operating system and AI in one real application.
- Safe vs unsafe sales: eight parallel sales hit one product. In unsafe mode, 6 or 7 units were still on the shelf instead of 0. In safe mode, the stock ended at exactly 0 every time.
- OS concepts: deadlock-free warehouse allocation with the Banker's algorithm, and a priority queue where emergency jobs go first.
- AI: a 14-day demand forecast with reorder suggestions, and a chatbot that answers from live data. When data is missing, it says "unavailable" instead of reporting zero.
- Observability: charts for latency, CPU, request routes, syscalls, TCP retransmits and security events.
- Roles: only an admin can create member accounts, and the server decides every role.
How we built it
React and Vite on the front end, FastAPI on the back end, and PostgreSQL or SQLite for data. The chatbot is a scikit-learn intent classifier trained on 980 questions across 15 intents. Monitoring uses a psutil fallback collector on Windows and a BCC-based eBPF collector on Linux or WSL2, feeding a bounded history that drives the charts and the chatbot.
Challenges we ran into
- eBPF only runs on Linux, so we built a fallback collector and ran the backend and collector inside WSL2 for the eBPF demo.
- SQLite ignores row locks, so we made the safe path an atomic conditional update there and kept
SELECT ... FOR UPDATEfor PostgreSQL. - In WSL2, the process ID we saw did not match the one the kernel saw, so the collector had to find the backend automatically.
- Our first chatbot test score was inflated by self-generated data, so we rebuilt the dataset and tested on separate questions we wrote by hand.
Accomplishments that we're proud of
- A fresh clone from GitHub runs on SQLite, and 67 backend tests passed at the last full run.
- eBPF probes verified on WSL2: a timed-out connection raised the TCP retransmit counter from 0 to 3.
- A chatbot that admits what it does not know.
What we learned
Hiding a button is not security, so the server enforces every rule. A missing measurement is not the same as zero. Honest evaluation matters more than a high score.
What's next
PostgreSQL deployment with real row locks, real sales data for the forecast and chatbot, a kernel-level database latency probe, and removing the need for a privileged collector.
Built With
- bcc
- bcrypt
- docker
- ebpf
- fastapi
- framer-motion
- joblib
- jwt
- linux
- numpy
- postgresql
- psutil
- pytest
- python
- react
- scikit-learn
- sqlalchemy
- sqlite
- tailwind-css
- typescript
- uvicorn
- vite
- wsl2