Islamic Canvases
A bilingual luxury Islamic wall-art gallery and B2B wholesale platform featuring TensorFlow visual search, automated bKash and Steadfast multi-courier dispatch, fraud risk scoring, and Unicode Bengali PDF invoicing.
LiveClient project2026
Next.js 16 · React 19 · Redux Toolkit · TypeScript · Express · MongoDB · TensorFlow.js · Socket.IO

Overview
- What it is
- A specialized luxury wall-art e-commerce storefront and wholesale management platform tailored for the Bangladesh market, featuring customizable Islamic calligraphy canvas frames, clocks, and curated gallery collections.
- Why it exists
- Selling premium home decor online requires overcoming high cash-on-delivery return rates, supporting multi-tier framing options (custom sizes, 1" and 2" China golden mouldings, 3mm solid PVC backing), offering instant bKash mobile payments alongside courier automation, and managing separate retail vs. wholesale invoice lifecycles.
- The problem
- High return rates from serial non-delivery COD orders, the inability of customers to search art by visual appearance or color scheme, the complexity of bilingual Bengali/English PDF invoicing without font corruption, and the friction of manually booking shipments across national couriers.
- Who uses it
- Retail homeowners, interior decorators, bulk mosque and corporate gift buyers, and commercial art wholesalers across Bangladesh.
Given / Find
Given
- a)A luxury Islamic calligraphy catalog requiring custom dimensional framing (1" & 2" China golden moulding, 3mm waterproof sparkle canvas)
- b)Local buying habits dominated by cash on delivery (COD) and bKash mobile wallets, with significant return risk
- c)A requirement for both direct-to-consumer (B2C) sales and B2B wholesale orders with distinct bulk pricing and legal invoices
- d)Bilingual customers requiring complete store browsing and official invoices in both Bengali and English
Find
- a)Visual similarity search so buyers can upload room photos or artwork to find matching canvases
- b)An automated fraud detection and order risk-scoring engine to identify serial non-receivers before dispatch
- c)Automated courier consignment creation with live parcel tracking across Steadfast, Pathao, RedX, Paperfly, and Sundarban
- d)Server-side PDF invoice generation that renders complex Bengali Unicode script (SolaimanLipi & Kalpurush) flawlessly alongside English
- e)Real-time customer live chat, abandoned checkout recovery, and comprehensive financial ledger accounting
Approach
An 81-page Next.js 16 App Router client (React 19 with Redux Toolkit and Framer Motion) paired with a 27-module Express + TypeScript backend on MongoDB. Visual search pairs client-side canvas color extraction with a TensorFlow.js MobileNet embedding pipeline. Orders flow through an automated bKash verification and multi-courier dispatch engine with scheduled cron status sync. A custom PDFKit renderer embeds TrueType Bengali Unicode fonts for dual-language invoices, while Socket.IO powers real-time support chat and admin alerts.
My role
Full-stack architect & developer · every commit across both repositories
- FrontendOwned81 Next.js 16 pages across public storefront, customer portal, and admin management suite using Redux Toolkit and Framer Motion.
- BackendOwned27 modular Express + TypeScript services covering courier automation, fraud analysis, bKash payments, wholesale invoicing, and real-time chat.
- AI & Data modelOwnedTensorFlow.js MobileNet visual search pipeline and 18 Mongoose schemas with indexed text search and financial ledger.
Stack
- Frontend
- Next.js 16 App RouterReact 19Redux Toolkit & RTK QueryTensorFlow.js & MobileNetFramer MotionTailwind CSS v4Socket.IO Client
- Backend
- Node.js 20+ExpressTypeScriptSocket.IOZod validationPDFKit (Bengali Unicode)ExcelJSNodemailer
- Database
- MongoDB 7+Mongoose 8 (18 schemas)Compound indexingFinancial ledger
- Auth & security
- JWT with HttpOnly cookiesbcryptjsRole-based access control (RBAC)
- Third-party services
- bKash payment gatewaySteadfast Courier APIPathao / RedX / Paperfly integrationsCloudinary CDN
- Infrastructure
- Docker ComposeAutomated cron workersRender PaaS
Key features
F.01
AI visual & color similarity search
Shoppers upload a photo of their room or wall art; the browser extracts DOM canvas color palettes while TensorFlow.js MobileNet extracts object embeddings to rank catalog matches.
F.02
Multi-courier automation & cron status sync
One-click shipment dispatch to Steadfast courier API with parcel tracking ID generation, complemented by automated cron jobs polling delivery and return statuses.
F.03
Automated fraud checker & COD risk scoring
Analyzes customer phone numbers against delivery completion rates, flagging high-risk orders for manual review or advance delivery fee collection before packaging.
F.04
Bilingual Unicode PDF invoice generator
PDFKit dynamically embeds SolaimanLipi and Kalpurush TrueType fonts, preventing font garbling in Bengali customer names, addresses, and line-item descriptions.
F.05
B2B wholesale portal & Excel analytics
Separate wholesale customer directory, bulk discount tier calculations, specialized wholesale PDF quotation/invoice downloads, and ExcelJS ledger exports.
F.06
Abandoned checkout recovery & WhatsApp alerts
Captures drop-offs at the checkout step, alerting sales agents to follow up via WhatsApp and converting incomplete orders into confirmed sales.
F.07
Custom craftsmanship cost calculator
Interactive framing calculator computing custom dimensions, 1" and 2" China golden mouldings, and 3mm solid PVC backing prices on the fly.
F.08
Socket.IO real-time customer support chat
Instant bi-directional messaging between website visitors and the admin support desk with typing indicators and unread counters.
Architecture
Storefront & Admin · Next.js 16
React 19 · Redux Toolkit · Framer Motion · TensorFlow.js MobileNet · Socket.IO client
REST (JSON) · WebSocket (Socket.IO)Express + TypeScript · 27 feature modules
Auth guards · Zod validators · Courier sync cron · Fraud risk evaluator · PDFKit invoice engine
Mongoose 8 ODMMongoDB 7+
18 collections: products, orders, wholesale, ledger, fraud records
Called by the API
bKash Gateway
checkout & callback reconciliation
Steadfast & Pathao
consignment creation & cron status polling
Cloudinary
high-resolution canvas art assets
PDFKit + TTF
SolaimanLipi & Kalpurush font rendering
WhatsApp & SMTP
abandoned cart alerts & order confirmation
Challenges
Problem 01
Given
Standard PDFKit fonts (Helvetica, Times) do not contain Bengali glyphs, causing Bengali customer names, addresses, and canvas titles to render as question marks or corrupt boxes.
Approach
Configured a custom font resolver registering TrueType SolaimanLipi and Kalpurush fonts across development and production asset paths, applying automatic font-switching based on Unicode character block detection.
Result
Flawless dual-language invoices with crisp Bengali typography and English tabular numbers, reducing billing disputes for nationwide deliveries.Problem 02
Given
Cash-on-delivery orders across distant upazilas suffered from unverified phone numbers and serial returners, creating substantial non-refundable courier delivery costs.
Approach
Engineered a FraudCheckerService that flags suspicious orders, tracks historical phone delivery success ratios, and holds high-risk shipments until advance delivery fees are collected via bKash.
Result
Order fulfillment safety increased significantly, protecting working capital from bogus shipments and phantom return logistics fees.Problem 03
Given
Customers frequently have a specific room color palette or aesthetic in mind (e.g. golden calligraphy on emerald green) but struggle with text keyword queries.
Approach
Implemented hybrid visual search combining client-side canvas RGB pixel centroid extraction with server-side tag, color-hex, and MobileNet object classification ranking.
Result
Users can photograph an interior or upload reference art to instantly discover matching canvases sorted by hue and stylistic compatibility.
Results
Outcome
What I learned
- Local e-commerce in Bangladesh requires software built for local realities: COD fraud prevention, bKash workflows, and courier APIs are as vital as the product catalog.
- Client-side AI (TensorFlow.js in the browser) offloads intensive image preprocessing, providing zero-cost visual search without costly external vision API subscriptions.
- TrueType font registration across multi-tier Docker and Node environments requires robust multi-path resolution strategies.