Back to Projects
Commodity Market Intelligence · Haycarb PLC · Case Study

CarbonXInsight

Coconut shell charcoal market price analytics

Role

Software Engineering Intern

Core Stack

FastAPI · React 19 · MongoDB

Analytics Engine

Highstock · pdfplumber

Client

Haycarb PLC

Introduction

Market-analytics web dashboard for coconut shell charcoal prices (US$/MT) across Sri Lanka, India, and Indonesia. Ingests 35+ monthly WPU reports and Excel sheets with automated pdfplumber table extraction and interactive Highstock analytics.

Architecture Overview

MarketAnalyticsArchitecture

Full Architecture Breakdown

Engineered for scale, speed & intelligence.

Frontend Architecture

Next.js 16 (App Router) · React 19 · TypeScript

Client Layer

Modular, component-driven client architecture optimized for high interactivity, streaming markdown rendering, and reactive dashboards with zero-layout-shift UI.

Tailwind CSS

Design system & tokens

Recharts

Progress & score charts

Framer Motion

Smooth layout transitions

React Markdown

AI response formatting

Lucide Icons

Vector glyph library

SSR / Streaming

Instant route prefetching

FastAPI REST Engine

Python 3.11 · Modular Routers

API Service

Asynchronous endpoint orchestration with Pydantic validation, structured exception boundaries, and automatic interactive documentation.

Modular Router EndpointsSwagger & ReDoc active
POST/authGET/usersPOST/tasksGET/schedulesPOST/documentsPOST/chatGET/groupsPOST/meetingsGET/quiz-scores

AI Engine

Gemini + Groq LPU

Live AI

Dual-engine AI pipeline: ultra-low latency interactive generation via Groq alongside comprehensive concept analysis via Google Gemini.

Smart study schedule & quiz generation
Automated document summary & concept extraction

MongoDB & Beanie ODM

Motor (Async) · 13 Models

Data Layer

Asynchronous NoSQL data models with strict schema typing via Beanie ODM and high-throughput vector queries.

UsersTasksStudy SchedulesStudy MaterialsExtracted ConceptsPDF VectorsStudy GroupsInvitationsMeetingsChat HistoryStudy PlansSessionsQuiz Scores

Auth & Verification

Firebase + Playwright

Security & QA
Authentication Layer

JWT cookie sessions paired with Firebase Authentication and Firebase Admin SDK token validation.

Playwright E2E Testing

End-to-end automated test suites running across Chromium, Firefox, and WebKit browsers.

Haycarb PLC · Market Analytics Dashboard

Coconut Shell Charcoal Price Analytics

Benchmark Quotes in US$ per Metric Ton (MT) · CDA / CDB / UCAP Ingestion

Indonesia
$901US$/MT
Min: $840Avg: $876Max: $901
Sri Lanka
$928US$/MT
Min: $865Avg: $906Max: $928
India
$958US$/MT
Min: $890Avg: $934Max: $958
Highstock Time-Series Engine · 2023 – 2025 Price TrajectorySelected: Nov 25
$800$850$900$950$1000Jan 23May 23Sep 23Jan 24May 24Sep 24Jan 25Jun 25Nov 25

Ingestion & Extraction Pipeline

Automating 35+ monthly PDF reports & Excel matrices.

1. Multi-PDF Ingestion

Ingests monthly "Prices of Coconut Products" WPU reports (Jan 2023 – Nov 2025) plus Excel sheets via drag-and-drop.

2. pdfplumber Extraction

Heuristic tabular parser detects date-header rows (dd/mm/yyyy), parses countries and regional markets, skipping non-quoted tokens.

3. MongoDB Storage

Normalizes quotes into charcoal_prices collection with indexed temporal coordinates.

4. Highstock Analytics

Serves aggregated time series via FastAPI REST endpoints to interactive Highcharts charts and instant PNG/CSV export.

Backend & Ingestion Layer

Python 3.10

FastAPI application with automated PDF/Excel parsing, CORS configuration, and asynchronous MongoDB connectivity via PyMongo.

FastAPIUvicornpdfplumberpandasopenpyxlPyMongoPydantic

Frontend & Visualizations

React 19 + Vite 7

Responsive market analytics portal powered by Highcharts Highstock, Recharts, and automated client-side jsPDF/Excel report exports.

React 19Vite 7HighchartsHighstockRechartsAxiosjsPDFxlsx

Up Next in Portfolio · Deep Learning · Medical Imaging

Diabetic Retinopathy Screening→

A comparative deep-learning study of four convolutional neural network architectures for classifying diabetic retinopathy severity from retinal fundus images.

PythonTensorFlowPyTorchCNN