The browser owns intent
Next.js App Router server-renders the entry point. Search filters live in the URL, so every result is bookmarkable, shareable and restorable after opening a listing.
React 19 · App Router · TanStack Query · ZodFollow a request from a renter's first filter to indexed SQL, guarded AI, correlated logs and a production release. This is the architecture behind HomeScope SG—made visible.
The product is split by responsibility, not fashion. The browser gets fast rendering and resilient cache; PHP owns domain rules; MySQL owns truth; Redis absorbs temporary work; telemetry stays private.
Next.js 16, React 19, TypeScript, Tailwind CSS, GSAP, TanStack Query
PHP 8.3, Slim 4, PDO, Monolog, OpenAPI, PHPUnit
MySQL 8.4, spatial indexes, Redis 7, raw parameterised SQL
TanStack AI, 9Router, OpenAI-compatible SSE, Zod tool contracts
Vitest, Testing Library, Playwright, PHPStan, Lighthouse
Docker Compose, Nginx, Vercel, Tailscale, GitHub Actions
Scroll through the five boundaries a search request crosses. Each layer adds one kind of certainty.
Next.js App Router server-renders the entry point. Search filters live in the URL, so every result is bookmarkable, shareable and restorable after opening a listing.
React 19 · App Router · TanStack Query · ZodNginx keeps the public surface small, preserves or creates a request ID and routes API and AI streams without exposing internal metrics or service ports.
Nginx · same-origin BFF · origin secret · SSESlim middleware validates input, authenticates short-lived JWTs and enforces Redis-backed rate limits before controllers can reach business services.
PHP 8.3 · Slim 4 · DI · JWT · Argon2idRepositories execute explicit prepared SQL. Spatial and composite indexes narrow candidates first; cursor pagination avoids the increasing cost of deep OFFSET scans.
MySQL 8.4 · PDO · POINT SRID 4326 · Redis 7The response carries the same request ID back to the browser while bounded metrics and redacted JSON logs describe the path without collecting personal content.
Prometheus · Loki · Alloy · GrafanaMap movement becomes bounded intent. The API validates it, the database prunes geography first and the client merges pages without losing scroll position.
SELECT slug, price, bedrooms, location
FROM listings
WHERE MBRContains(
ST_GeomFromText(:viewport, 4326),
location
)
AND status = 'published'
AND price BETWEEN :min AND :max
AND (listed_at, id) < (:date, :id)
ORDER BY listed_at DESC, id DESC
LIMIT :limit_plus_one;Stable page cost as the result set grows.
Back navigation restores filters, cache and position.
Query plans stay visible, explainable and tunable.
The assistant cannot browse, execute code or invent inventory. Authentication happens before inference; classification happens before advice; read-only tools are the only path to listing data.
JWT + quota
property_search
search_listings
grounded cards
A request ID connects a browser error to the exact edge and application events. Metrics answer “how often”; logs answer “why”—without storing identity or conversation content.
request_id = hs_7f2a9c200 OK0 ms8 ms23 ms27 ms31 msRates, latency histograms, cache outcomes, quotas and dependency health.
Redacted JSON events joined across Nginx, Next.js and PHP by request_id.
SLO-aware rules for errors, p95 latency, providers, resources and restarts.
Feature-sized history keeps design and infrastructure decisions reviewable.
Typecheck, unit, integration, browser and configuration checks gate the build.
Pinned Docker images make PHP, Nginx, databases and telemetry reproducible.
Vercel serves the frontend; the private origin is exposed only through Tailscale Funnel.
Readiness smoke tests and live signals close the deployment feedback loop.
A portfolio system should show judgment—not pretend every choice is universally correct.