Cache Bright Data SERP API and Web Unlocker results in Convex tables with configurable TTLs and reactive queries to reduce API costs.
npm install @sholajegede/convex-bright-dataDrop-in Convex component that wraps Bright Data's SERP API and Web Unlocker with reactive caching. Results are stored in component-owned Convex tables with configurable TTLs. Call the action once to fetch from Bright Data, then useQuery for live updates — no polling, no re-fetching if data is still fresh, on-demand cache invalidation. Saves Bright Data API costs and eliminates custom caching boilerplate.
The Bright Data component automatically caches scraped page content in Convex tables with configurable TTLs. Call the scrape action once to fetch and store data, then use reactive queries to access cached content without re-fetching until the TTL expires.
This component wraps Bright Data's SERP API with Convex-native caching. Search results are stored in component-owned tables and accessed via useQuery for live updates. No polling required - Convex automatically pushes updates when cache refreshes.
The component prevents redundant API calls by checking cache freshness before hitting Bright Data APIs. Cached results are served instantly if still within TTL, and you can invalidate entries on-demand to force fresh fetches when needed.
The @sholajegede/convex-bright-data component supports configurable TTLs per request or global defaults (1 hour for searches, 6 hours for pages). Cached data includes fetchedAt and expiresAt timestamps, with an isFresh boolean indicating if data is still within TTL.
Yes, the Bright Data component provides an invalidate method that deletes cached entries for specific queries or URLs. This forces a fresh fetch from Bright Data APIs on the next request while preserving the reactive caching pattern.
The @sholajegede/convex-bright-data component supports Bright Data's SERP API for Google search results (web, news, shopping, images, videos) and Web Unlocker for page scraping. Both services are wrapped with the same TTL-based caching and reactive query pattern.
The component stores Bright Data results in Convex tables. Call the action once to fetch and cache data, then use useQuery on the cached results. Convex automatically notifies all subscribers when cache updates, eliminating the need for polling or manual refresh logic.