The three systems in every marketplace
A marketplace is three products sharing one database:
- The storefront, for buyers: discovery, product pages, cart and checkout.
- The seller dashboard, for vendors: listings, inventory, orders, reviews, support.
- The platform admin, for you: sellers, moderation, disputes and reporting.
Teams often build the storefront first and leave seller tooling until later. That’s risky: sellers who can’t manage orders easily stop listing.
How Ekonavi’s marketplace is structured
- Storefront: Next.js on Cloudflare Workers.
- Seller dashboard: Next.js with Redux Toolkit and TanStack Query: orders, products, inventory, storefront display order, review replies, support tickets and live stats for orders, customers and revenue.
- Commerce API: a Hono microservice on Workers for cart, checkout, Mercado Pago payments (PIX and crypto), order lifecycle and shipping, documented with OpenAPI and validated with Zod.
- Data layer: Hasura GraphQL with role-based permissions.
Splitting the commerce API out as its own service meant payment logic could be tested, reviewed and deployed independently of the frontends.
Decisions to make early
- Who is the merchant of record? It determines payment provider setup, taxes and refunds.
- Payouts: split payments at checkout, or periodic payouts from the platform?
- Fulfilment: sellers ship directly, or the platform handles logistics?
- Commission model: percentage, listing fees or subscriptions?