Repliers Proxy
All upstream traffic goes through the client family in src/services/repliers/:
services/repliers/
├── base.ts # RepliersBase — axios instance, throttling, XFF, error mapping
├── listings.ts # search / single / similar / history …
├── locations.ts # locations & autocomplete
├── estimate.ts # AVM estimates
├── favorites.ts # favorites
├── searches.ts # saved searches
├── clients.ts # Repliers clients (users)
├── agents.ts # agents
├── messages.ts # Messages API (OTP, inquiries)
├── buildings.ts # buildings
└── normalize.ts # response normalization helpersservices/repliers.ts (RepliersService) bundles the nine clients (listings, messages,
clients, favorites, searches, estimate, agents, locations, buildings) for
services that need several. The register of every method, the Repliers path it calls, the
key it uses and its callers is on Repliers API.
Domain services (services/listings.ts, services/estimate.ts, …) depend on these
clients; nothing outside services/repliers/ builds a Repliers URL.
RepliersBase
- One axios instance per client,
baseURL = config.repliers.base_url, the API key in theREPLIERS-API-KEYheader,Content-Type: application/json,timeoutfromREPLIERS_TIMEOUT(default 30000 ms). Array query values are serialized as repeated keys (paramsSerializer: { indexes: null }), not askey[]=. - No retry. A failed call is not repeated; the throttle and the timeout are the only controls around it. A client resolved through the request container is a new instance per request; the two throttles are process-wide singletons.
- Throttling — every request goes through a
p-throttlewrapper with anonDelayhook that is an empty function (src/providers/throttler/ondelay.ts), so a throttled call is not logged. The wrapper is aroundaxiosInstance.request, so time in the queue is not counted by the axios timeout (retry layers). There are two, both container singletons, so each limit is process-wide:throttler:repliers(providers/throttler/repliers.ts, at mostREPLIERS_API_LIMITrequests perREPLIERS_API_INTERVAL_MS) carries live traffic;throttler:repliers:warmupcarries SSG traffic once a warmup key is configured — see Client IP forwarding. - Key switching —
switchKey(key)rebuilds the axios instance and keeps the active throttler. Its caller isEstimateService(src/services/estimate.ts), which moves its historical-listings client ontoREPLIERS_API_KEY_EXTRAwhen that key is set. - Upstream failures are mapped to
ApiError("Repliers API error: <status>")with the upstream status, and the upstream response body travels in the error’sinfo; the global error handler shapes them like any other error. Upstream headers (Retry-Afterincluded) are not forwarded.
Client IP forwarding (XFF)
Moved to Client IP forwarding: per-request decision
of the client IP, token handling and the x-repliers-forwarded-for header.
Diagnosing a missing header
See Client IP forwarding: diagnosing a missing header.
Which token to send
See Client IP forwarding: which token to send.
Chain shapes
See Client IP forwarding: chain shapes.
SSG cache-warmup key
Moved to Client IP forwarding: the warmup key and its own throttle for SSG traffic, and workflow W10 for a worked trace.
MLS-number prefix codec
Moved to MLS-number prefix codec: the codec in
src/services/listings/mlsNumberPrefix.ts, where it is wired and the autosuggest MLS leg.
Verified against portal-backend 997ae3e, 2026-10-20.