Kyvro K emblem
KYVROকাইভ্রো
Case study · E-commerce platform

A fashion store for Bangladesh where anyone can open their own shop.

Kyvro sells clothes, shoes and accessories in BDT, with bKash, Nagad and cash on delivery. On top of the main store, any customer can start a reseller shop on their own link, set their own markup and get paid out, without holding stock or seeing the supplier.

Role
Founder, product, design and full-stack development
Timeline
24 Oct – 12 Nov 2026 (about 3 weeks)
Stack
React, Vite, Tailwind, Firebase, Vercel
Live at
kyvro.store ↗
Kyvro storefront home page
  • 265products live
  • 26categories
  • 8storefront themes, light and dark
  • 4roles with separate data access
  • 420commits
  • 120pull requests merged
  • ~3weeks, 24 Oct – 12 Nov 2026
// The context

Online fashion in Bangladesh runs on Facebook pages and trust

Most clothing is sold through Facebook pages and WhatsApp chats. Buyers expect cash on delivery, pay with bKash or Nagad rather than cards, and fake orders cost sellers money in wasted delivery. At the same time, many young people want to sell online but have no money for stock.

Kyvro answers both sides. It is a proper store with a real checkout, and a platform that lets people resell its products under their own shop name. Products come from local wholesale suppliers and are shipped by them, so neither Kyvro nor its sellers hold inventory.

// What I built

One codebase, three products

For shoppers

The storefront

  • Home page with clothes on animated hanging rails, a shoe wheel and quick view
  • Collections with sub-sections (Saree, Punjabi, Three Piece, Borka…)
  • Cart, checkout, order tracking, WhatsApp ordering
  • AI help chat for product picks, order status and FAQs
  • Short links for social posts, e.g. kyvro.store/?c=saree
For sellers

Shop platform

  • Own public link (kyvro.store/your-shop), name, logo, theme
  • Pick products, set prices within a markup cap
  • Earnings, payouts to bKash or bank, promo codes
  • Basic, Pro and Premium plans paid in BDT
For the team

Admin portal

  • Dashboard, analytics, orders and delivery status
  • Product approval and supplier costs (Owner and Manager only)
  • Team commission, shop review, warnings and removal
  • AI tool that makes background-free product photos
// Hard problems

The decisions that mattered

01

Four roles, and each one must not see something

Admins must never see supplier costs. Sellers must never see customers' names, phones or addresses. Managers must never see sellers' private details.

HowHiding it in the UI is not enough, so the rules live in the database. About 1,000 lines of Firestore security rules split private data into its own collections (costs, supplier links, payout details). Sellers see their orders only through a server endpoint that returns order number, date, status and their markup, nothing else. Plan fields such as tier and paid-until can be written only by the server.

02

Prices that cannot be tampered with

A customer's browser builds the order, and a seller sets their own prices. Either could send a wrong number.

HowBefore any payment page opens, the server re-checks every line against the store price and the seller's markup cap, and refuses the payment if anything is off. Promo codes are capped at the seller's markup, so a discount can only ever come out of the seller's earnings, never out of Kyvro's.

03

Payments the way Bangladesh pays

Cards are rare; bKash and Nagad are everywhere, and cash on delivery invites fake orders.

HowOnline payment goes through UddoktaPay (bKash and Nagad), with the amount always read from the saved order on the server. Cash on delivery stays, but the delivery charge (৳100 inside Dhaka, ৳150 outside) is paid online first. Bigger online orders get 10–15% off and free delivery above ৳2,000, which pushes buyers toward paying up front.

04

A whole platform on free hosting

Vercel's free plan allows 12 serverless functions. A store, a seller platform, payments, emails and daily jobs need far more endpoints than that.

HowRelated endpoints share one function and pick their job with an ?action= parameter (plan payments, billing, sitemap, shop removal, AI photos…). The site runs on 11 functions and still has one spare.

05

Product photos that look like a real shop

Supplier photos come in every size and background. Hung on a rail, they looked messy.

HowAn Admin button sends a photo to an image model that puts the garment on a flat colour, picked far from the garment's own colour. The browser then removes that colour to get a clean cut-out, and a person approves it before it goes live. It costs about $0.04 a photo, with a daily limit so a mistake cannot run up the bill.

06

A store that looks after itself

With a one-person team, routine work has to run on its own.

HowA daily job reminds customers about unpaid orders on day 1 and 3 and cancels them on day 7, nudges abandoned carts, sends plan renewal reminders, warns inactive sellers and cleans up removed shops after 30 days.

07

A help chat that knows the shop

Shoppers ask the same questions all day, want product suggestions in Bangla or English, and want to know where their order is — without waiting for a reply.

HowThe common questions (delivery time, cash on delivery, returns) are buttons that answer instantly and never use AI. Order status needs the order code and the phone number on the order, and only the status, date and items come back — never a name or address. Free-text questions go to an AI model together with the in-stock products and store facts, and the AI can only pick product ids from that list, so it cannot invent a product or a price. OpenAI answers first with OpenRouter as a fallback, and a daily cap plus a per-visitor limit keep the cost under control.

// Business model

How Kyvro earns

Kyvro earns the margin between supplier cost and store price on every sale. Sellers earn their markup on delivered orders, and pay for plans that unlock more shops, products and branding.

BasicProPremium
Shops per account123
Products10AllAll
ThemesClassicAll 8All 8
Branding–Social links, statsName, logo, banner, verified badge
Selling tools–Share kitPromo codes, order emails, featured on Kyvro
PayoutMonthlyMonthlyWeekly
// Ready for launch

Marketing set up from day one

Meta Pixel and Google Analytics track views, add-to-cart and purchases for ads. A sitemap lists every product and shop link for Google. Messenger has an instant reply, five FAQ answers and a WhatsApp button. Each collection has a short link so a Facebook post can open straight on Sarees or Punjabis.

React 18ViteTailwind CSSFirebase AuthCloud FirestoreVercel serverlessUddoktaPay (bKash / Nagad)Resend emailPush notificationsOpenRouter image AIOpenAI help chatMeta PixelGoogle Analytics
Where it stands · November 2026

The store, seller platform and admin portal are built and live. The site is in a final check before opening to customers:

  • Testing a real bKash payment and a cash-on-delivery order end to end
  • Turning off maintenance mode and starting Facebook and Instagram posts
  • First small Facebook ads on the best-performing collections