Back to projects

Fullstack · Astro, Supabase, Node · 2026

Turathiyat

Turathiyat is a Riyadh dealer in rare banknotes, coins and stamps whose business lived inside a classifieds marketplace. I built the whole system: a scraper, an Arabic catalogue on the shop’s own domain, a phone-first owner panel, a marketplace sync and a lead form. Every buy button asks whether the visitor is buying or selling, then opens a WhatsApp message with the piece’s reference code.

  • Astro
  • Supabase
  • TypeScript
  • Node.js
  • Sharp
  • RTL
  • SEO
  • GEO
  • JSON-LD
  • Netlify
My part
All of it
When
2026
Pages
About 190
Articles
27, all sourced
Status
Live
Turathiyat homepage: Arabic RTL storefront for rare coins and banknotes

Overview

Turathiyat (تراثيات) is a Riyadh dealer in rare banknotes, coins, stamps and heritage antiques whose whole business lived inside a classifieds marketplace. I built them a catalogue site on a domain they own: about 190 Arabic, right-to-left pages, rendered on the server from a Postgres table and cached at the edge, so a save in the owner panel reaches the live page without a rebuild. Every buy button opens WhatsApp with a prefilled Arabic message carrying that piece’s permanent reference code, so a lead can be traced back to the page that produced it. A one-tap sync pulls the marketplace’s current inventory into a review queue the owner clears from a phone before anything reaches the live site, and sold pieces flip automatically so a live buy button can never ship on stock that’s gone. Since then I have added a hub of 27 sourced articles and a short lead form in front of every WhatsApp button.

DecisionCodes run from TRH-0001, are assigned once and never reused, because they end up in real conversations.

My role

I built all of it end to end: the scraper and data pipeline, the site, the content architecture and the articles hub, the SEO and GEO work, the analytics, the owner panel with its marketplace-sync review queue and its leads tab, the lead form, and the deployment. Refreshing the catalogue is no longer a rebuild. A stepper pulls the marketplace a page at a time, proposes every change, and the owner applies or dismisses each one from a phone.

ConstraintThe marketplace is still where the inventory starts. The sync reads from it, and the owner approves every change.

What shipped

  • A Node scraper over the marketplace’s GraphQL API that fetches listings and photos and normalises them into one dataset.
  • An Astro site rendered on the server and cached at the edge, with a homepage, catalogue, six category pages, a collector’s guide, FAQ, shipping and about pages, plus a page per piece. A save clears only the cached pages that show what changed, and the next visit renders them once.
  • A dataset that is the union of everything ever scraped, so a sold piece keeps its page, its URL and its accumulated rankings instead of vanishing.
  • Frozen reference codes (TRH-0001 and up) assigned once per piece and never reassigned, because they end up in real WhatsApp conversations.
  • Arabic search in the browser over an index the server builds on request and caches at the edge. It folds Arabic spelling variants, tolerates typos in longer words, ranks available stock first, and records no-result queries as demand the inventory does not cover.
  • Social cards built with Sharp when the owner saves a piece, the photo centred over a blurred fill of itself, because WhatsApp’s crawler gives up before a card built on first request is ready. Thumbnails come from Netlify’s image CDN.
  • Deployed on Netlify with a custom domain, a build-time config module holding every deployment-specific value, and a first-party analytics proxy at the edge.
  • A phone-first owner panel on the site itself: sign in, edit a piece, add one, mark one sold, and freeze any field the sync should stop proposing changes to.
  • A one-tap sync with the marketplace that pulls its current inventory, diffs it against the catalogue, and queues every difference for the owner to approve or dismiss. Nothing reaches the live site unreviewed except a sold-state flip, which applies automatically so a live buy button can never ship on stock that’s gone.

DecisionNothing reaches the live site unreviewed. Only a sold-state flip applies on its own.

SEO & GEO

  • Product and Offer JSON-LD on every piece page, with real prices where they exist and a sold-out state on sold stock.
  • ItemList on the catalogue and category pages, FAQPage on the homepage and FAQ page, BreadcrumbList everywhere, and a Store node linking to the seller’s identity-verified marketplace profile, which ties a brand-new domain to an established reputation.
  • Titles written to differ deliberately from the marketplace’s, so the new pages are not fighting a far stronger domain over identical text.
  • Arabic URL slugs carrying the listing id as a stable prefix, so a seller editing a title can never break a URL. Slugs are lowercased, because the host redirects mixed-case paths and a canonical must not point at a redirect.
  • A robots.txt that allows AI crawlers by name (GPTBot, ClaudeBot, PerplexityBot, Google-Extended and others) rather than relying on a wildcard the opt-out gates ignore.
  • An llms.txt serving a plain-text inventory and reference summary, and a generated sitemap, so assistants can read the catalogue without rendering it.
  • A collector’s guide and FAQ written to answer what buyers actually ask (currency history, how to read a grading slab, telling originals from copies), so the site earns visits that no single listing could.
  • An articles hub of 27 Arabic articles on currency periods and issues, grouped by region. Each one lists its sources, shows up to eight matching pieces with available ones first, and carries Article and FAQPage markup. A piece page that an article covers links back to it, up to two articles per piece.

UX decisions

  • Arabic-first and RTL by default: not an English site translated, but a site whose native direction is right-to-left.
  • A reply-speed promise stated up front, and a floating WhatsApp button that follows the reader on every page, because on mobile the buy action should never be more than a thumb away.
  • Sold pieces stay browsable and honest: the page survives, the state flips, and the buy button does not ship on stock that is gone.
  • Every photo is the real item, shot as-is, with a note saying so: the trust signal that matters most in a market full of copies.
  • Descriptions derived from the seller’s own words with the price line, sign-off and keyword-stuffing removed; no invented rarity or provenance claims, since these are real goods sold to real buyers.

DecisionA sold piece keeps its page, its URL and its rankings. The state flips and the buy button disappears.

Analytics

Four trackers, each behind its own key, so one can go live without waiting for the others: PostHog for events, which I route through a first-party proxy on the site’s own domain so a tracker blocker sees only same-origin traffic; Microsoft Clarity for session recordings and heatmaps; Google Analytics; and a Tag Manager container the owner can add tags to without a deploy. One click listener feeds PostHog, Google Analytics and Tag Manager, built around a placement property, so the useful question (which surface actually converts: the item page, a category, an article or the floating button) can be answered rather than guessed at. Every tracker’s bundle waits until the visitor first touches the page or the browser is idle.

DecisionTrackers load after the page. PageSpeed mobile went from 59 to 96, at the cost of not counting visitors who leave within a second or two.

The lead form

The owner said most WhatsApp chats came from people wanting to sell to the shop, and the site could only guess which from the button pressed. So every WhatsApp button now opens a short sheet first: buy or sell, a phone number, where they heard of the store (prefilled from the source of their first visit) and, optionally, the piece. The links themselves are unchanged. The form catches the tap, so crawlers and visitors without JavaScript still go straight to WhatsApp. The save is sent without waiting on it and WhatsApp opens at once, so a failed save loses a row, never the conversation. The phone number goes to the database only, never to analytics, and the owner reads every answer in a leads tab of the panel. The trade is some lost leads, from visitors who close the sheet, for a number and a stated intent on the rest.

DecisionThe form is built by script, not rendered on the server. Rendered, it added 61 words to every page’s raw HTML, 13% of a piece page, and AI crawlers read it as content.

Worth a closer look

The part I like most is the attribution: a WhatsApp message arriving with TRH-0102 in it came from this site, and one without it did not. It needs nothing installed on the seller’s side, and it turns “is the site working?” into a question with an answer. The honest limit is that WhatsApp lets a sender edit the prefilled text, which is why the click is also recorded independently.

LimitWhatsApp lets a sender edit the prefilled text. Two records to reconcile, not one to trust.

Screens