PROJECT 11 • DAY 16 OF 90 • COMMERCIAL RETAIL OS

CARTIVANTA
RETAIL POS & BI.

A complete retail operating system and business intelligence suite tailored for Indian shops (INR) — combining fast barcode POS billing, GST/weighted-cost stock ledgers, Khata credit books, 1.029M-row historical analytics, 12-week demand forecasts, and K-Means RFM clustering.

FastAPI 0.162Python 3.12LightGBM / RFM1.029M RowsSQLite WAL / Postgres100% Pytest
CARTIVANTA Preview
DATASET SCALE
1.029M Transactions
DATA QUALITY
80.9 / 100 Verified
9 Modules
POS, Khata & BI Hub
1.029M Rows
Historical Commerce Scale
12-Week
LightGBM / Holt-Winters
20 / 20
100% Pytest Suite Passed
01 / Overview

EVERYDAY SHOPKEEPING MEETS ENTERPRISE DEMAND INTELLIGENCE.

Designed so a store owner can operate billing and Khata without training, while exposing 6 dedicated BI analytics pages with plain-language metrics strictly in Indian Rupees (₹).

01

Barcode POS & GST Billing

Rapid checkout screen with barcode lookup, GST computation, weighted-average COGS tracking, and atomic stock deduction.

02

Khata (Udhaar) & RBAC

Tracks customer credit limits, repayments, and supplier payables with strict Owner vs Cashier role-based access control.

03

1.029M Transaction Analytics

Benchmarked over 1.029M historical retail rows delivering net sales, gross margin, and velocity insights.

04

12-Week Demand Forecasting

LightGBM and Holt-Winters time-series forecasts evaluated with WAPE & MAE accuracy metrics.

05

K-Means RFM Segmentation

Clusters customers into actionable loyalty segments paired with a Festive Discount & Margin Uplift Simulator.

06

5D Data Quality Action Center

Scores catalog/transaction completeness and anomalies at 80.9/100 with concrete inventory reorder actions.

02 / Architecture

HOW IT WORKS.

FastAPI serves operational POS/Khata routes over WAL SQLite/PostgreSQL alongside background ML forecasting and segmentation engines.

STAGE 01

POS / Inward

Barcode sales, GST & purchase inward.

→
STAGE 02

WAL Ledger

Atomic stock, COGS & Khata balances.

→
STAGE 03

Quality Gate

5D cleaner handles returns/cancellations.

→
STAGE 04

ML & RFM

12-wk forecast & K-Means clustering.

→
STAGE 05

6 BI Pages

Executive, Forecast, Festive & Action.

03 / Screenshots

APPLICATION SCREENSHOTS.

Live screens captured from the running application. Click any image to view full size, or follow setup instructions in the GitHub repository.

04 / Technical Details

RETAIL ACCOUNTING & ML ENGINE VERIFICATION.

Key modules, rules, safety checks, and automated test results documented in the repository.

Subsystem Implementation Verified Result
Inventory Costing Weighted-average COGS + atomic POS deduction Accurate real net shop profit
ML Forecasting LightGBM & Holt-Winters evaluated via WAPE/MAE Handles zero-actual edge cases
Festive Simulator Elasticity uplift vs gross-margin guardrail Flags excessive discount traps
Test Suite tests/test_cartivanta.py full verification 20 / 20 Passed (100%)
05 / Tech Stack

CORE TECHNOLOGIES.

Frameworks, databases, visualization tools, and testing libraries used in CARTIVANTA.

BACKEND API
FastAPI 0.162 • Uvicorn
DATABASE
SQLite WAL • PostgreSQL Ready
ML & FORECAST
LightGBM • Holt-Winters • K-Means
CURRENCY & TAX
INR (₹) • GST Engine
ACCESS CONTROL
Owner / Cashier RBAC
VERIFICATION
Pytest (100% Passed)
06 / Next Steps

FUTURE ENHANCEMENTS.

Upcoming improvements planned for CARTIVANTA.

Thermal ESC/POS 80mm receipt printer bridge and GST e-invoicing JSON.
WhatsApp automated Khata payment reminder receipts.
Multi-branch store inventory transfer reconciliation.
Supplier purchase-order PDF OCR ingestion.
Offline PWA service worker queueing counter bills during outages.
Expiry-date FEFO lot tracking for supermarket perishables.
OPEN-SOURCE PROJECT • GITHUB.COM/RAGURAMRRP

EXPLORE SOURCE & DOCS.

View the complete codebase, sample datasets, quick-launch scripts, and automated test suites on GitHub.