Hatiwal
Local marketplace for Afghanistan

Solo founder-developer · live since September 2026, releasing weekly
Buy and sell near you, chat in the app, meet in person. No online payment and no delivery: it is built for how people actually trade locally, in English, Pashto and Dari with full right-to-left layouts.
Tested end to end before every release: Jest, Maestro flows on real devices, Playwright on the web.
Stack
- Rails 8.1
- PostgreSQL 16
- Expo / React Native
- Next.js 15
- MapLibre
- PMTiles
- CLIP (ONNX)
- Cloudflare
- Kamal 2
What I built
- Three apps on one Rails 8.1 API: an Expo / React Native app for iOS and Android, a separate Next.js 15 web app at feature parity, and an admin back office
- Listings with holds and offers, reviews and seller trust, real-time chat, verified accounts and push notifications
- A self-hosted vector map of Afghanistan (map.hatiwal.com): PMTiles, MapLibre and nginx, 16 light and dark styles in four languages, no third-party API key
- Search by photo: a CLIP image model runs inside the Rails app (ONNX), with no outside AI service, and the search photo is never stored
- Search across Pashto, Dari and English: a concept dictionary matches “mobile”, “موبایل” and “ټیلیفون” as one word, with exact words ranked first
- Voice messages in chat, saved-search alerts, and share cards with a QR code
- Photos and map tiles served through Cloudflare’s edge; my own Expo-compatible over-the-air update server with signed updates and staging and production channels
- How-to videos in Pashto, Dari and English, made in code with Remotion, with the app’s screens rebuilt as animated components
- Kamal 2 deploys on a VPS from a private registry, nightly backups with restore tests, store releases with EAS


