All work

Rihan

Live at rihan.app

A free-to-play prediction market for Morocco, in French, Arabic and English. Players use virtual coins to call soccer matches, elections and TV series, and an AI chatbot answers their questions.

rihan.app

Rihan homepage on desktop with fixtures, market stats and featured prediction markets
Rihan homepage in Arabic on a phone, laid out right to leftRihan homepage in French on a phone

What I built

  • Rebuilt from a single static HTML page. Before, balances and bets reset on every refresh, and there were no accounts and no database.
  • The brief was to keep the existing features and design, and replace what sat underneath.
  • Phone number login.
  • Available in French, Arabic and English, with right-to-left Arabic.
  • Prediction markets, public opinion polls and a news section.
  • Each bet runs in one database function, so the coins and the bet are saved together.
  • Khabir, the AI chatbot, is set up to reply in the language the user writes in.

Under the hood

Khabir is a chatbot built on the Claude API. It runs on the server, so the API key never reaches the browser.

Built with Next.js 15, Supabase, Claude API.

Need something like this?

A few plain sentences are enough. I reply within one working day.