Marketplace API
The Marketplace API provides client-side functions for interacting with the BuildAppsWith marketplace, including fetching builder profiles, marketplace filter options, and builder analytics.Core Features
- Builder Discovery: Search and filter for builders based on skills, validation tier, and availability
- Builder Profiles: Fetch detailed information about specific builders
- Analytics: Access analytics data for builder dashboards
- Filtering: Retrieve available filter options for marketplace search
API Reference
Builders
Fetch builders from the API with pagination and filtering
Fetch a single builder by ID
Fetch featured builders
Filters
Fetch available marketplace filter options
Analytics
Fetch analytics summary for builder dashboard
Fetch analytics timeseries for builder dashboard
Fetch success metrics for builder dashboard
Component Usage
Using the Consolidated Builder Image Component
BuilderImage Component API
A unified component for displaying builder profile images with proper fallback handling and error states.
Error Handling Strategy
The consolidatedBuilderImage component handles several error conditions:
Missing or Null Image Source
- When
srcis null, undefined, or an empty string - Component automatically displays the
ImageFallbackwith the first letter of thealttext - No error messages are displayed to the user
Invalid Image URL Format
- Validation check prevents loading non-URL strings
- If validation fails, component displays the fallback
- Prevents unnecessary network requests for invalid URLs
Image Loading Failures
- When the image URL is valid but fails to load (404, CORS issues, etc.)
- Uses Next.js Image
onErrorhandler to hide the broken image - Automatically reveals the underlying fallback element
- User sees a seamless transition to the fallback