The Rechat SDK lets you add Rechat real-estate features — listing search, an interactive map, listing cards, and lead capture — to any website.
There are two ways to use it, and you can mix them:
<rechat-listings>, <rechat-map>, …) that
render a full listing search experience. No framework required.Rechat.Sdk() class for lead capture, activity tracking,
and read access to listings, agents, and testimonials from your own code.Both ship in one file loaded from a CDN:
<link rel="stylesheet" href="https://unpkg.com/@rechat/sdk@latest/dist/rechat.min.css">
<script src="https://unpkg.com/@rechat/sdk@latest/dist/rechat.min.js"></script>
That's it — the custom elements register themselves and Rechat is available globally.
Web Components
{{ … }} placeholders.JavaScript SDK
Prefer not to hand-write tags? Use the Widget Builder bundled with these docs. It's a visual tool where you pick a widget (Listings, or a standalone Search Form), adjust filters and theme, preview it live, and copy the ready-to-paste embed code.
A listing-search widget:
<rechat-root brand_id="YOUR_BRAND_ID">
<rechat-listings>
<rechat-listing-details></rechat-listing-details>
<rechat-map-filter></rechat-map-filter>
<rechat-map></rechat-map>
<rechat-map-listings-grid></rechat-map-listings-grid>
<rechat-listings-pagination></rechat-listings-pagination>
</rechat-listings>
</rechat-root>
Lead capture from code:
const sdk = new Rechat.Sdk()
sdk.Leads.capture(
{ lead_channel: '2c55e69d-adbe-42d9-97a5-bedb43783b80' },
{ first_name: 'John', last_name: 'Doe', email: 'john@rechat.com' },
)