Use case prompt
Store a domain with each listing
Each listing needs a name and the company’s domain:
If the person who adds a listing has only a company name, let them pick the company with a company autocomplete, and store the domain that they pick.
Render the listing card
Each card is one Logo CDN URL next to the fields that the listing already has. The same card works as a connector tile, a job listing, or a vendor row:greyscale parameter to each logo URL.
Add a company profile
The Brand API returns the company’s name, description, and social profiles from the same domain. Call it from your server with your secret key:api/company-profile.ts
The profile component calls the route, retries while the brand is indexing, and always shows the logo and the name:
Test the directory
Test a card and a profile for a company with full data (stripe.com), a logo with a white background (notion.so), a transparent dark mark (github.com), a domain with no logo (made-up-startup.io), a listing with no domain, and a domain that Logo.dev has not indexed yet. Make the profile request fail once, and check that the logo and the name stay on screen. Check each card in light and dark mode.
Brand API
Get a brand’s description, socials, colors, and images.
CRM logos
Put a logo and description on every account record.