Skip to Content
Getting StartedCapabilities & Flags

Capabilities & Flags

Track B. What the portal can do, how each capability is switched on, and how tenants differ. Feature flags answer one question — does this tenant get capability X at all? — while everything about how a capability behaves lives in a domain config (see the features-vs-config rule).

Feature reference

Read via import features from '@configs/features'. Defaults shown are the defaults build; tenants override per capability.

FlagCapabilityDefault
mapInteractive map search (Mapbox).true
estimateHome valuation / AVM flow.true
dashboardMarket dashboard pages.true
blogBlog / editorial pages (CMS-backed).true
locationsLocations / neighborhoods directory (pre-generated JSON).false
buildingsBuildings / condos directory (WordPress ACF).false
openHouseOpen-house listings and filters.false
favoritesSave favorite listings (requires auth).true
saveSearchSave search filters (requires auth).true
imageFavoritesSave favorite listing photos.true
recentlyViewedRecently-viewed listings history.true
profileUser profile management.true
messagingAgent contact / messaging.true
cookieConsentCookie-consent banner.true
liveByLiveBy demographics / neighborhood overlays.true
aiAgentAI agent chat integration (embedded EVAS iframe).false
aiChatConversational AI chat entry point in search.true
aiSearchNatural-language query → MLS filters.true
aiImageSearchSearch listings by image / similarity.true
aiQualityAI photo-quality scoring.true
aiSpacesAI room / space detection in photos.true
blurRestrictedPropertyBlur restricted listings for guests (MLS privacy).false

Turning a flag off hides the capability but still ships its code. For a slimmed tenant build, see Feature Removal — what each disabled flag lets you physically delete, and what stays because it is shared.

How flags are set

The source of truth is GrowthBook (rules keyed per app = tenant). The runtime never imports GrowthBook — it reads the static, committed configs/<tenant>/features.ts. The two are bridged at build time.

The portal supports two modes, and you pick one per environment:

  1. GrowthBook-synced. Set the flag in GrowthBook, then run pnpm --filter portal-frontend generate:features (active tenant) or generate:features:all (every tenant). The script (scripts/fetch-features.ts) fetches the resolved values and rewrites features.ts. It also runs automatically on prebuild. Commit the regenerated file.
  2. Static / offline. With NEXT_PUBLIC_GROWTHBOOK_INIT=offline or no client key, the sync is skipped and the committed features.ts is authoritative — edit it directly.

A GrowthBook sync overwrites hand edits to features.ts (the file header says “Generated — do not edit by hand”). If you edit statically, keep sync off for that build, or move the change into GrowthBook. Per-flag descriptions are emitted by the generator, so IDE hover works in both modes.

Want to drop GrowthBook entirely and keep flags fully static? The runtime already reads only features.ts — see Removing GrowthBook.

Not every GrowthBook key becomes a flag

The generator drops keys that are dead (no runtime reader) or that have been relocated into a domain config — because they tune how a capability behaves, not whether it exists. Examples:

GrowthBook keyNow lives in
pdpSidebar, pdpShare, pdpSlideshow, …listings.components.*
searchPositionsearch.autosuggestPosition
rootPageroutes.rootPage
aiAgentHeadlessIframeIdai-agent.headlessIframeId

What each capability depends on

A flag being true is necessary but not always sufficient — some capabilities also need env vars, keys, a CMS, or generated data.

CapabilityAlso requires
mapNEXT_PUBLIC_MAPBOX_KEY.
blogCMS wiring: CMS_BLOG_CLIENT + WORDPRESS_API_* or GHOST_API_*.
buildingsWordPress ACF content + fetch scripts.
locationsPre-generated public/<tenant>/locations.json (pnpm generate:locations <tenant>).
aiAgentNEXT_PUBLIC_AI_AGENT_IFRAME_URL (and the ai-agent-client build).
aiSearch / aiChat / aiImageSearch / aiQuality / aiSpacesAI endpoints reachable through the proxy backend.
liveByLiveBy overlays (the defaults app uses LiveBy as its location source).
favorites / saveSearch / imageFavoritesAuthenticated user (proxy backend auth).

How tenants differ

The always-on essentials (map, estimate, messaging, profile, most AI analysis) are true almost everywhere. The flags below are what actually distinguish tenants:

TenantaiAgentaiChatbloglocationsbuildingsopenHouseliveByblurRestricted
defaults✕✓✓✕✕✕✓✕
repliers✕✕✕✕✕✕✕✕
Tenant A✓✓✓✓✕✕✕✕
Tenant B✓✓✓✓✕✕✕✕
Tenant C✕✕✓✓✓✓✕✕
Tenant D✕✓✓✓✕✓✕✕
Tenant E✕✕✕✓✕✓✕✓
Tenant F✕✕✕✕✕✕✕✓

This table is a snapshot for orientation — the authoritative values are the committed configs/<tenant>/features.ts files. A few archetypes stand out: flagship tenants (everything, including the AI agent), catalog-heavy tenants (locations + buildings + open houses), enrichment tenants, and AVM-first / privacy-restricted tenants (minimal surface, blurRestrictedProperty on).

Why some capabilities are off in some regions

Several differences above are not preference but MLS/regional policy — notably blurRestrictedProperty (Canadian privacy rules) and the reduced AI surface for Canada-based tenants. That is the subject of the next page: Regional & MLS Limits.

Last updated on