TapisTurcs: Online Rug Store with AR Preview in Morocco
A bilingual Arabic and French online store for Turkish, zrabi and modern rugs sold per square meter, with cash on delivery, an AR and photo room preview, and a back office with a CRM.

Overview
TapisTurcs (tapisturcs.com) sells Turkish, zrabi and modern rugs across Morocco. Choosing a rug depends on its size, how it looks in the room and delivery terms, so the store combines a filterable catalogue priced per square meter, checkout built for cash on delivery, tools to see a rug in your own room, and a back office to run the business. Arabic is the default language (right-to-left) with French under /fr. I designed and built the whole application: UX, interfaces, data, admin tools and the room preview features.
The problem
Buyers hesitate on size and on how a rug will look at home, most orders in Morocco are paid on delivery with a price that depends on the city, and the team needed one place to manage catalogue, stock, orders and customers in Arabic and French.
What I built
The catalogue has search, filters and product pages with a price per square meter, size choice and custom cutting where available. Guests can order without an account (Google sign-in for account services), pay on delivery with fees by city, track orders, keep favorites and contact the store on WhatsApp. To preview a rug at home there are three paths: on compatible Android phones a WebXR session detects the floor and places the rug at its real size; on other devices model-viewer opens Scene Viewer or Quick Look; and from a photo, floor segmentation runs in the browser with Transformers.js (WebGPU, WebAssembly fallback) to lay the rug texture on the floor. A separate "see it at home" option asks Gemini to generate an image, clearly labelled as indicative. The back office manages orders, products, stock and cities, with statistics, a map of Morocco, a CRM (customer files, notes, tags, reminders) and a daily report of orders, revenue, messages, reviews and low stock.
Results
- Live at tapisturcs.com, in Arabic (default, right-to-left) and French
- Rugs priced per square meter with size choice and cash on delivery, fees computed by city
- Three ways to preview a rug at home: WebXR floor detection, model-viewer AR and in-browser photo segmentation
- Back office with CRM and a daily business report, translated in French and Arabic
- Indexable filter pages for 4 filter families (room, color, material, pattern) in the sitemap
Highlights
- WebXR floor detection: several hit-test rays, grouped horizontal hits and the lowest surface under the camera, so the rug does not land on a table or sofa
- On-device floor segmentation with Transformers.js, loaded on demand and cached by the browser
- Product structured data with the price per square meter (unit MTK), Arabic and French hreflang
- Cache tags per data type: catalogue kept for hours, stock and search refreshed more often, targeted invalidation from the admin
- Resized Open Graph images so product links show a preview on WhatsApp
- Supabase Auth with Row Level Security, plus server-side checks on protected pages
Need a similar project?
See the matching service: what you get, how it works and the starting price.




