Products & digital solutions · E-commerce & multi-role platforms
In development · Multi-vendor digital marketplace

Rawaj

A marketplace connecting buyers, sellers, and operations from discovery to after-sales

A multi-vendor digital marketplace connecting product discovery, listing creation and moderation, cart and negotiated ordering, and after-sales workflows—including tracking, returns, disputes, and seller ledger accounting—within one structured experience.

Rawaj marketplace on desktop
Rawaj marketplace on mobile
Marketplace screens from local desktop and mobile captures.

Why Rawaj? Bringing scattered transaction steps into one structured flow

In everyday digital commerce, the context of a transaction often breaks across separate channels: a listing is posted on one page, price negotiation happens in a chat thread, an order is agreed upon without a clear state trail, and follow-up becomes ambiguous when a return is requested or seller entitlements are calculated. This fragmentation creates friction for buyers, sellers, and platform operators alike.

I designed and developed Rawaj as a marketplace connecting buyers and sellers. The storefront introduces it with the line “A New Place for Value.” Rather than limiting the product to a catalog and shopping cart, Rawaj models the broader marketplace lifecycle—from listing moderation and order creation to post-delivery returns and accounting records—around role-specific permissions and server-validated state rules.

The Buyer Experience: From product discovery to order tracking

The buyer workspace is structured to provide a clear path across both direct cart purchases and negotiated offers:

  1. Catalog discovery and product views: Buyers browse the marketplace catalog and inspect product detail pages with imagery, pricing, seller context, and purchase options across responsive mobile and desktop layouts.
  2. Shopping cart or negotiated offer: The design supports two routes into an order: adding products to a standard cart, or submitting a negotiated offer on a specific unit where an accepted offer proceeds to order review and confirmation before final order creation.
  3. Order creation and transaction receipt: When an order is confirmed and created, the system records a structured transaction linking buyer and seller and produces a receipt showing items, amounts, and recorded payment status.
  4. Order state tracking: In the "My Orders" view, buyers follow recorded order states (awaiting confirmation, preparation, recorded shipping state, or delivery), with rule-checked cancellation available before seller confirmation and cash capture.
Product details
Product details
Cart review
Cart review
Order receipt
Order receipt
Buyer orders
Buyer orders
Captures from separate local verification runs with synthetic data.

The Seller Studio: From private draft to moderated listing

Sellers in a multi-vendor marketplace need a dedicated workspace to prepare listings without exposing unfinished drafts to public visitors. The Seller Studio structures listing publication across five connected steps:

  1. Listing & Media Setup
  2. Private Draft
  3. Editorial Preview
  4. Submission for Review
  5. Moderation Decision & Receipt
  • Private draft isolation: Unfinished drafts remain scoped to the seller's workspace until submitted for moderation and approved.
  • Clear moderation outcomes: When staff review a listing, the seller sees the resulting state and decision receipt—approved and visible in the catalog, rejected, or suspended with a documented reason—enabling structured edits and resubmission.
Listing editor
Listing editor
Submission receipt
Submission receipt
Seller review decisions
Seller review decisions
Listing approval receipt
Listing approval receipt
Local test data in the listing and review views.

One Order, Three Perspectives: Role-aware interfaces

When an order exists in Rawaj, the interface and available actions adapt to the participant's role and the order's current state:

ParticipantWorkspace ViewState-Governed ActionsSystem Design Rule
BuyerOrder summary, recorded fulfillment & shipping states, receipt, and post-delivery options.Follow order status, request cancellation when permitted before confirmation and cash capture, or open a return/dispute after delivery.Internal seller records stay isolated; action buttons are governed by state-transition rules.
SellerStore orders, confirmation & preparation queues, and linked accounting entitlement records.Confirm orders, update preparation and recorded shipping states, and submit responses or evidence in return and dispute cases.Scoped to the seller's own store orders, with state transitions validated against ownership and stage rules.
Staff & AdministrationListing moderation queues, dispute files, paginated audit logs, and finance/settlement views.Approve, reject, or suspend listings with reasons, review disputes, and inspect audit logs and ledger views under granted capabilities.Audited administrative actions record paginated log entries, and financial view grants are separated from execution grants.

Buyer

Workspace View
Order summary, recorded fulfillment & shipping states, receipt, and post-delivery options.
State-Governed Actions
Follow order status, request cancellation when permitted before confirmation and cash capture, or open a return/dispute after delivery.
System Design Rule
Internal seller records stay isolated; action buttons are governed by state-transition rules.

Seller

Workspace View
Store orders, confirmation & preparation queues, and linked accounting entitlement records.
State-Governed Actions
Confirm orders, update preparation and recorded shipping states, and submit responses or evidence in return and dispute cases.
System Design Rule
Scoped to the seller's own store orders, with state transitions validated against ownership and stage rules.

Staff & Administration

Workspace View
Listing moderation queues, dispute files, paginated audit logs, and finance/settlement views.
State-Governed Actions
Approve, reject, or suspend listings with reasons, review disputes, and inspect audit logs and ledger views under granted capabilities.
System Design Rule
Audited administrative actions record paginated log entries, and financial view grants are separated from execution grants.

After-Sales & Accounting: Returns, disputes, and seller settlements

Rawaj extends its domain model beyond checkout to organize post-delivery workflows and financial records:

  • Return requests and dispute queues: Requesting a return after delivery opens a RETURN workflow linked to a dispute record where participants can attach messages and evidence for administrative review, while keeping the delivery state preserved and without assuming automatic money movement upon request creation.
  • Accounting settlements and ledger entries: The financial model calculates net seller entitlements by separating platform commission, shipping, and collection fees, linking the resulting record to orders, ledger entries, and receipts. In this project, a settlement means recording the amount owed to a seller in the accounting model (READY for processing, or ON_HOLD when a return request is active); actual external payouts and provider reconciliation are separate stages.
From delivery to seller settlementA return and dispute can follow delivery. Seller receivables can be ready or held in the ledger. Paying through an external provider is a separate stage.Order and deliveryReturn and disputeSeller receivable in the ledgerExternal payout · Separate stageRETURNLedger · READY / ON_HOLD
From delivery to seller settlement
Finance center · Read-only
Read-only finance interface with synthetic data.

Engineering Behind the Experience: Responsive interfaces and backend guards

I led the application experience design and developed the interfaces, backend services, and data model around four architectural layers:

Multi-platform UI and transition policy (Flutter & Dart)

The interface supports Arabic (RTL) and English (LTR) across web, mobile, and Windows desktop targets. State management is separated from HTTP services, and a client transition policy (order_transition_policy) checks account capabilities and order state to display relevant actions.

  • Technical components: Flutter & Dart · Bloc / Cubit state management · Dio HTTP client · order_transition_policy UI state rules.

Backend services, route guards, and audit logging (Node.js, Express & TypeScript)

On protected routes, backend middleware (auth.middleware) checks authentication, account eligibility, role assignments, and granular staff capabilities (such as FINANCE_VIEW for financial read endpoints), while audited administrative actions are recorded in paginated logs.

  • Technical components: TypeScript & Node.js · Express · auth.middleware guards · Role & capability grants (RBAC / ACL) · staff-read.service audit log reader.

Four-dimensional order state and PostgreSQL transactions

Order state is represented across four dimensions: transaction state, logistics fulfillment, payment state, and return state. In explicitly composed sensitive transitions, domain services re-verify actor eligibility and record state inside a single PostgreSQL transaction with row-level locking.

  • Technical components: PostgreSQL · SQL migrations & row-level locking · buyer-transition & seller-transition services · Returns & disputes modules.

Supporting infrastructure for caching, real-time channels, and async events

The wider architecture incorporates caching, real-time session and event channels, and an outbox worker design for asynchronous event processing across composed runtime profiles.

  • Technical components: Redis · Socket.IO · Outbox worker design · Docker Compose.
Rawaj system architectureRole-specific interfaces send requests to the server for authorization and then to database transactions. Separate components support caching, realtime communication, and event dispatch.BuyerSellerStaff & AdminOutbox workerRoute guards, roles, and permissionsLocked transactions · Ledger · AuditSupporting infrastructureFlutter & Dart · Bloc/Cubit · Dioorder_transition_policyNode.js · Express · TypeScriptauth.middleware · RBAC / ACLPostgreSQL · Row-Level LockingLedger · Audit · OutboxRedis · Socket.IO
Rawaj system architecture

Rawaj Vision and Current Development State

Rawaj is designed to bring clarity and structure to multi-vendor digital commerce across discovery, ordering, moderation, and post-sale accounting.

The project is in development. Its codebase includes account and permission management, the Seller Studio and moderation workflows, cart and order flows, and components for returns, disputes, and seller ledger accounting. Separate local runs on the web, an Android emulator, and a local Windows package used synthetic data. Across those runs, selected workflows were documented through interfaces connected to the backend and database, including listing publication and moderation, cart flows, login, buyer-order views, and read-only financial views. End-to-end acceptance of the complete commercial journey, live payment collection, refunds, and payouts through an approved provider, and commercial operation remain in progress.

Context
Product development
Maturity
Active development
Evidence
Documented
Source
Private source
Ownership & provenance
Owner-led work

Technologies

Flutter · Dart · Bloc/Cubit · Dio · TypeScript · Node.js · Express · PostgreSQL · Redis · Socket.IO

Available evidence

Documented frontend, backend, and relational data architecture, supported by genuine interface captures from separate local verification runs using synthetic data across marketplace, buyer, seller, moderation, and read-only finance views on web, mobile, and desktop.

Help improve this content

Suggest a correction or edit

Your contribution is private and used to review and improve this content. The Privacy Policy explains how data is processed and retained and how to request deletion. Read the Privacy Policy and Terms of Use.