Business Details
Your BIAB account holds rich business information — name, address, phone, social profiles, and more. The SDK lets you pull this data into your site for SEO, structured data, and social link rendering.
Structured Data (JSON-LD)
BIAB provides schema builders for standard JSON-LD structured data types used by Google, Bing, and other search engines.
import { biabSchemas, renderJsonLdNodes } from '@biab-dev/sdk'
const schemas = [
biabSchemas.localBusiness({ /* Google Business Profile data */ }),
biabSchemas.organization(),
biabSchemas.website(),
]
// Render as a <script type="application/ld+json"> block
const html = renderJsonLdToHtml(schemas)
Available schema builders:
| Builder | Purpose |
|---|---|
localBusiness() | LocalBusiness schema with address, hours, geo |
organization() | Organization schema with logo, URL, contact |
website() | WebSite schema with search URL, name |
service() | Service schema for individual offerings |
faq() | FAQPage schema from a Q&A list |
breadcrumb() | BreadcrumbList from page path segments |
article() | Article/NewsArticle for blog posts |
review() | Review schema for customer ratings |
productOffer() | Product/Offer schema for store items |
Call renderJsonLdToHtml(schemas) to produce a properly formatted
<script type="application/ld+json"> string you can inject into your page
<head>.
Social Profiles
Pull your business's linked social accounts from BIAB and render them as icons or links.
import { resolveSocialProfiles } from '@biab-dev/sdk'
const profiles = await resolveSocialProfiles()
// → [{ platform: 'facebook', url: 'https://facebook.com/...' }, ...]
The <SocialLinks> component renders these as a row of platform icons:
import { SocialLinks } from '@biab-dev/sdk/react'
<SocialLinks variant="icon" />
Supports Facebook, Instagram, Twitter/X, LinkedIn, YouTube, TikTok, Yelp, Google Business Profile, and more — configured in your BIAB dashboard under Settings → Business Profile.