← All workBalaji SankarCase study 09 / 12
E-commerce / seller tools / SaaS analytics2021NDA · name withheld

MarketplaceAnalytics

A profit-first analytics cockpit for brands selling on Amazon, Flipkart and other Indian marketplaces. I led most of the core modules and extended the shared data layer behind them.

Case study by Balaji Sankar · Updated October 2026

Client

A marketplace-seller analytics SaaS

Role

Senior frontend engineer

Timeline

2021

Stack
React 17ReduxAnt DesignMaterial UITailwindRechartsZXingFormikRazorpayGitLab CIAWS S3
Outcomes
4

Deployment environments: dev, staging, production and demo

✦

Profit, payments, inventory, returns, orders and Buy Box in one front end on a shared table and filter system

01 / 09The opportunity

Why did it need to exist?

The issue
  • Marketplace data spread across many separate exports
  • Fees, returns and settlements arrive at different times
  • Sellers cannot see true profit per order
  • Warehouses need scanners to receive returns
The solution
  • One cockpit for orders, payments, returns and stock
  • Shared tables and filters across every module
  • Profit per channel, product and order after every fee
  • Camera-based QR receiving in the browser
02 / 09The challenge

What made it hard?

Marketplace sellers get their numbers in scattered exports: orders in one place, settlements in another, returns somewhere else and fees buried in invoices.

Nobody could answer the basic question - which SKUs actually make money after commissions, shipping, returns, TCS and ad spend? - without a spreadsheet marathon. The platform set out to pull it all into one dashboard per seller, per channel.

03 / 09Approach

How did I approach it?

01

Profit first

Order-level and SKU-level profit views per channel, with commission, shipping, TCS and ad spend layered in, margin calculations, custom totals and date-range exports.

02

Follow the money

Payments reconciliation so sellers can see what the marketplace actually paid versus what it owed, alongside inventory, master SKU mapping across channels and warehouse locations.

03

One data layer for every module

I extended the central request wrapper behind the named API registry so it cancels superseded in-flight calls, became the main contributor to the shared table and built the second generation of the table, filter and search headers used across the modules.

04

One pipeline per environment

GitLab CI pipelines building per environment and syncing to S3 for dev, staging and production, plus a separate demo build configuration.

04 / 09Key decisions

Which calls shaped it?

(01)

Cancel stale requests centrally

Problem

Sellers flip between channels and date ranges quickly, and slow responses could paint old data onto the screen.

Decision

I extended the central request wrapper behind the named API registry to abort superseded calls per endpoint and channel with AbortController.

Outcome
  • Tables never show stale numbers
  • Fewer duplicate requests
  • Consistent behaviour in every module
(02)

Shared tables and filters

Problem

Every module needed pagination, sorting, filters and export.

Decision

I became the main contributor to the shared table and filter components, reused them across profit, payments, orders, returns and inventory, and later built their second generation.

Outcome
  • One table behaviour everywhere
  • New modules start from the same table
  • Shared table used in 15 page modules
(03)

Scan returns with any camera

Problem

Warehouse staff needed to receive returned parcels without buying handheld scanners.

Decision

I added ZXing-based QR scanning in the browser so any laptop or phone camera works.

Outcome
  • No dedicated hardware needed
  • Returns marked received at the dock
  • Received quantity and condition in one form
05 / 09What I built

What did I build?

Profit-first analytics for marketplace sellers
Profit-first analytics for marketplace sellers1 / 2
  • (01)

    Request de-duplication and cancellation at the wrapper level, so fast channel and date-range changes never paint old data.

  • (02)

    Browser-based QR receiving for returns - warehouse staff scan goods straight from the app, no handheld scanner app needed.

  • (03)

    Buy Box ownership and unauthorised-seller detection screens for brand protection.

  • (04)

    Product and seller review tracking across channels on the same shared table.

  • (05)

    Organisation user management with roles, OTP signup, plan and invoice settings, and an internal admin dashboard for sync status.

  • (06)

    The wider product, built by other developers on the team during and after my time: India state maps and order heatmaps, and in 2022 a profit waterfall with cost of goods, GST, TACOS and ROI, payment leak flags and return insights.

06 / 09Foundation

What is it built on?

Trust the numbers

A stale or slow table destroys trust, so correctness comes first.

Build once, reuse everywhere

Shared tables and data handling keep every module consistent.

Remove hardware where possible

Use the cameras people already have.

Frontend
React 17ReduxAnt DesignMaterial UITailwind CSSFormik
Charts and maps
RechartsAnt Design Chartsreact-simple-maps
Scanning and payments
ZXingRazorpay
Backend
AWS LambdaDynamoDB
Delivery
GitLab CIAWS S3Four environments including a demo build
07 / 09Delivery

How was it delivered?

  1. Phase 1

    Profitability and module filters

    March - April 2021: the profitability tracker, user management fixes, filters across payments, orders, returns and inventory, and a first QR page.

  2. Phase 2

    Shared table and pipelines

    May 2021: shared table work, sign-up and OTP fixes, and GitLab CI pipelines deploying dev, staging and production to S3.

  3. Phase 3

    Request cancellation and new modules

    June - July 2021: AbortController cancellation in the request wrapper, Tailwind via CRACO, Buy Box, Brand Protector, product configuration, a demo build and admin dashboard work.

  4. Phase 4

    Settings and returns receiving

    August - September 2021: a new settings page for users, plans and invoices, and ZXing camera scanning for returns.

  5. Phase 5

    Second-generation tables

    October - November 2021: new versions of the shared table, filter and search headers, pipeline updates and the start of payments v2.

08 / 09Reflection

What did I learn?

01

Cancelling matters

On data-heavy dashboards, cancelling stale requests matters as much as making them fast.

02

Shared components pay back fast

The second module that needed the same table justified the shared one.

03

Demo environments help sales

A separate demo build, with its own environment config, gave the product a place to be shown outside production.

09 / 09FAQ

Questions about this project

What did Balaji Sankar build in the Marketplace Analytics project?
A profit-first analytics cockpit for brands selling on Amazon, Flipkart and other Indian marketplaces. I led most of the core modules and extended the shared data layer behind them.
Who was the client?
A marketplace-seller analytics SaaS, in e-commerce / seller tools / SaaS analytics. The work is under NDA, so the client is not named.
What was the hardest part?
Marketplace sellers get their numbers in scattered exports: orders in one place, settlements in another, returns somewhere else and fees buried in invoices.
What was his role?
Senior frontend engineer.
What technology was used?
React 17, Redux, Ant Design, Material UI, Tailwind, Recharts, ZXing, Formik, Razorpay, GitLab CI and AWS S3.
What were the results?
4 deployment environments: dev, staging, production and demo and Profit, payments, inventory, returns, orders and Buy Box in one front end on a shared table and filter system.

Have a project like this?

Tell me what you’re building or what’s broken. I’ll tell you straight whether I’m the right person for it.

Next caseIndustrial manufacturing / B2B sales2020-22Industrial Sales CRM→