All Projects
Intermediate · Case Study

NexStock

Inventory management, engineered in C.

NexStock is a stock management system built in C with a web dashboard layer. It handles inventory tracking, transaction logging, and real-time stock alerts through a structured, scalable architecture.

CHTMLCSSNode.jsJavaScriptChart.js
GitHub
NexStock

The Problem

What needed solving.

Small businesses often track stock in spreadsheets or paper — error-prone, unscalable, and with no audit trail. A lightweight, fast management system fills the gap.

The Solution

How I solved it.

A C-backed data layer exposed through a Node.js API, with a simple web dashboard for inventory CRUD, transaction history, and Chart.js visualisations.

Features

What it does.

Inventory CRUD

Add, update, and delete stock items with category and unit tracking.

Inventory CRUD

Stock Alerts

Automatic low-stock warnings when quantity falls below a configurable threshold.

Transaction History

Full audit log of every stock-in and stock-out event with timestamps.

System Architecture

How it's built.

Core LogicCData structures, file I/O, inventory engine
API LayerNode.jsHTTP endpoints bridging C backend to web UI
FrontendHTML + CSSDashboard UI for inventory management
ChartsChart.jsStock level and transaction visualisations

Technology Stack

Backend

CNode.js

Frontend

JavaScriptHTML5CSS3

Library

Chart.js

Challenges & Solutions

Real problems, real fixes.

Challenge

Bridging C data structures to a JavaScript runtime without a standard FFI.

Solution

C program writes to structured JSON files; Node.js reads and serves them — clean, simple interface.

Demo & Screenshots

See it live.

NexStock dashboard

Inventory overview and stock charts

Explore the full source code and documentation.

View on GitHub← All Projects