Huni

Bilingual property listings for a Malaysian agency, with agent and admin dashboards.

The problem

A Malaysian real-estate agency needed a listing site, starting from nothing: no website, no listings, no agent data. It had to serve the agency’s own agents first and be ready to open up to independent agents who sign up themselves, so an agency site that can grow into a small marketplace.

The market sets the details. Prices in RM, sizes in sq ft, tenure, title type and Bumi lots, in English and Bahasa Malaysia. Customers must be able to enquire without making an account. Some failures counted even if the site “worked”: an unlisted or password-protected listing leaking into search or the sitemap, or one agent seeing another agent’s listings or enquiries.

What I built

Three areas in one Laravel app.

  • Public site. Search with filters kept in the URL, a map view, property pages with a gallery split into photos, floor plans and site plans, an enquiry form, and a WhatsApp button that pre-fills a message with the listing link.
  • Agent dashboard. A multi-step listing form, an enquiries inbox with statuses and private notes, and an overview built as an “action desk”: leads waiting for a reply come first, oldest at the top, with WhatsApp and Call on each one. A funnel shows views, enquiries and booked viewings for 7, 30 or 90 days.
  • Admin. Approval queues for agents and listings, switches for whether either needs approval, and editable property types, facilities, states and cities.

Later Huni became a product to sell to several customers from one codebase and one Docker image. Each customer gets its own deployment and visual theme, and the vendor picks the theme as super admin. A new Admin role gives a customer’s own staff the whole admin area except the theme setting.

Architecture & stack

Laravel 13 with Inertia 3, React 19 and TypeScript, styled with Tailwind CSS 4 tokens. Public pages are server-rendered through Inertia SSR, so crawlers get the title, meta tags, hreflang and JSON-LD in the HTML; if the SSR process is down, pages fall back to client rendering.

Listing media goes through spatie/laravel-medialibrary, with WebP thumb, card and large conversions generated on the queue. Titles and descriptions are translatable JSON columns, and Bahasa Malaysia falls back to English. Listing views are stored as raw events, rolled up hourly into daily stats, and pruned after 90 days. For PDPA, the submitter IP on an enquiry is nulled after 90 days while the enquiry itself stays.

Production runs on Laravel Octane with FrankenPHP in Docker, as separate web, queue worker and scheduler containers behind the server’s existing Caddy.

Highlights

  • Visibility that can’t leak. Unlisted and password-protected listings never appear in search, the home page, agent pages, related listings or the sitemap, and they send noindex plus X-Robots-Tag. The password gate shows nothing but the field, is rate-limited per IP per listing, and a new password ends existing access.
  • Unguessable links. Every listing lives at /property/<code>/<slug>. The random 8-character code is what gets looked up, and a wrong slug redirects to the canonical one.
  • Themes safe under Octane. The active theme is resolved per request with no static state, a stored theme that no longer exists falls back silently, and the theme page returns 403 to Admins on the server, not just in the menu. A regression test covers state leaking between Octane requests.
  • Stats that heal themselves. After a scheduler outage the rollup rebuilds from the day after the latest rolled-up date, up to the 90 days that raw views are kept.

Have something to build?
Let's talk

Get in touch