All work

Personal

Divar

2026

A Tehran classifieds client. Listings come from Divar's public API, and the app has no backend of its own.

View on GitHub

Context

I rebuilt a classifieds feed in the shape of Divar: categories, a list that continues, and a post page. The data is Divar's. The client has to ask for it and keep the page readable.

Role

I designed and built the client.

Constraints

  • The browser cannot call Divar's API on its own.
  • The feed is longer than one response, and it keeps going.
  • Category and search belong to the request. Place, price, and photos can be decided from posts already on the page.

Decisions

  1. 01

    A proxy, not a backend

    Search and post detail go to /api. Vite forwards that path in development. nginx or a Cloudflare Worker does it in production. The client never holds a Divar URL.

  2. 02

    One query cache

    RTK Query owns search and the post. Divar's widget payload becomes a card, or a title, a gallery, and a description, before a screen reads it.

  3. 03

    Scroll, then narrow what is here

    An intersection observer asks for the next page and appends it, skipping tokens already shown. Place, price, and photo-only then narrow that list. They do not start a new request.

Outcome

  • A Tehran feed with categories, search, and a post page.
  • Light and dark theme.
  • The repository is public, and a deployed copy reads live listings.

Stack

React · Redux Toolkit · Tailwind · Vite