Ghazeline Shop

PostgreSQL, Supabase, n8n

Visit the live store Private repository, client work

Data and AI work on a live online store

Context

Selling online in Algeria doesn’t work the way it does in Europe. Card payments are rare, so effectively everything is cash on delivery. Shipping runs through private carriers with per-wilaya tariffs. And most sellers operate their entire business out of an Instagram DM inbox.

Ghazeline is a ready-to-wear brand. Its store went live in January 2026 and I have worked on it since as the data and AI engineer. The shop has 30+ products and gets 50–100 Instagram messages a day. It is a small team, so the role also covered the backend work the data depended on.

What I did

  • Designed the PostgreSQL / Supabase data model: products, variants, categories, stock and orders.
  • Built backend features that collect data into that model.
  • Automated the creation of order summary sheets and cash-on-delivery confirmation.
  • Deployed an AI agent on n8n that answers the 50–100 customer messages the store gets on Instagram each day, so the team only steps in for complex requests.
  • Maintain the store: fixes and new features from business feedback, and monitoring of the data flows.

Constraints

  • Cash on delivery is the default, not an edge case. There is no payment gateway to lean on for order confirmation or fraud signal.
  • 58 wilayas, each with its own home-delivery and stop-desk tariff.
  • The operator is not technical and runs the shop from a phone.

How the store fits together

The store runs on Next.js on Vercel, with Supabase for Postgres, auth and storage. Orders go to Yalidine to create parcels and sync shipping status, and a Telegram bot alerts the operator to new orders. My work sits in the Supabase data model and the automations around it.

Browser Storefront UI catalogue · variants · reviews Cart in localStorage React Context · no DB round-trip Vercel: Next.js 15 Public routes anon Supabase client RLS enforced shared pricing engine, server recalculates every total Admin API routes service-role client server-side only never shipped to the browser full access, bypasses RLS Supabase Postgres orders · products tariffs · promo codes RLS · triggers · procs Auth admin accounts customer accounts optional by design Storage product images galleries External Meta Pixel ViewContent · AddToCart InitiateCheckout · Purchase Yalidine API create parcels on order sync shipping status back Telegram bot new-order alerts to the operator via RLS full access

Data model

Customers are phone numbers. A cash-on-delivery buyer will not create an account to buy one item, so accounts are optional and anonymous checkout is supported. Orders key on phone number and customer history aggregates from orders. That keeps the checkout short and still gives the admin a real view of repeat buyers and lifetime spend.

Stack

My side: PostgreSQL, Supabase, n8n. The store itself runs on Next.js, TypeScript, Vercel and the Yalidine API.