brightdata-sdk-patterns

Featured

Apply production-ready Bright Data SDK patterns for TypeScript and Python. Use when implementing Bright Data integrations, refactoring SDK usage, or establishing team coding standards for Bright Data. Trigger with phrases like "brightdata SDK patterns", "brightdata best practices", "brightdata code patterns", "idiomatic brightdata".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Bright Data SDK Patterns ## Overview Production-ready patterns for Bright Data proxy integrations. Since Bright Data uses HTTP proxy protocols (not a dedicated SDK), these patterns wrap proxy configuration, retry logic, session management, and response parsing into reusable modules. ## Prerequisites - Completed `brightdata-install-auth` setup - Familiarity with async/await and HTTP proxy protocols - axios or node-fetch installed ## Instructions ### Step 1: Proxy Client Singleton ```typescript // src/brightdata/client.ts import axios, { AxiosInstance, AxiosRequestConfig } from 'axios'; import https from 'https'; import 'dotenv/config'; let instance: AxiosInstance | null = null; export function getBrightDataClient(options?: { country?: string; session?: string; zone?: string; }): AxiosInstance { const { BRIGHTDATA_CUSTOMER_ID, BRIGHTDATA_ZONE, BRIGHTDATA_ZONE_PASSWORD } = process.env; const zone = options?.zone || BRIGHTDATA_ZONE!; let username = `brd-customer-${BRIGHTDATA_CUSTOMER_ID}-zone-${zone}`; if (options?.country) username += `-country-${options.country}`; if (options?.session) username += `-session-${options.session}`; if (!instance || options) { instance = axios.create({ proxy: { host: 'brd.superproxy.io', port: 33335, auth: { username, password: BRIGHTDATA_ZONE_PASSWORD! }, }, httpsAgent: new https.Agent({ rejectUnauthorized: false }), timeout: 60000, headers: { 'User-Agent': 'Mo...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

brightdata-local-dev-loop

Configure Bright Data local development with hot reload and testing. Use when setting up a development environment, configuring test workflows, or establishing a fast iteration cycle with Bright Data. Trigger with phrases like "brightdata dev setup", "brightdata local development", "brightdata dev environment", "develop with brightdata".

2,266 Updated today
jeremylongshore
AI & Automation Featured

brightdata-install-auth

Install and configure Bright Data SDK/CLI authentication. Use when setting up a new Bright Data integration, configuring API keys, or initializing Bright Data in your project. Trigger with phrases like "install brightdata", "setup brightdata", "brightdata auth", "configure brightdata API key".

2,266 Updated today
jeremylongshore
AI & Automation Featured

brightdata-reference-architecture

Implement Bright Data reference architecture with best-practice project layout. Use when designing new Bright Data integrations, reviewing project structure, or establishing architecture standards for Bright Data applications. Trigger with phrases like "brightdata architecture", "brightdata best practices", "brightdata project structure", "how to organize brightdata", "brightdata layout".

2,266 Updated today
jeremylongshore
AI & Automation Featured

brightdata-hello-world

Create a minimal working Bright Data example. Use when starting a new Bright Data integration, testing your setup, or learning basic Bright Data API patterns. Trigger with phrases like "brightdata hello world", "brightdata example", "brightdata quick start", "simple brightdata code".

2,266 Updated today
jeremylongshore
AI & Automation Featured

brightdata-performance-tuning

Optimize Bright Data API performance with caching, batching, and connection pooling. Use when experiencing slow API responses, implementing caching strategies, or optimizing request throughput for Bright Data integrations. Trigger with phrases like "brightdata performance", "optimize brightdata", "brightdata latency", "brightdata caching", "brightdata slow", "brightdata batch".

2,266 Updated today
jeremylongshore