brightdata-local-dev-loop

Featured

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".

AI & Automation 2,944 stars 440 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 Local Dev Loop ## Overview Set up a fast, reproducible local development workflow for Bright Data scraping projects with mocked proxy responses, cached results, and vitest integration. ## Prerequisites - Completed `brightdata-install-auth` setup - Node.js 18+ with npm/pnpm - brd-ca.crt SSL certificate downloaded ## Instructions ### Step 1: Create Project Structure ``` my-scraper/ ├── src/ │ ├── brightdata/ │ │ ├── proxy.ts # Proxy configuration helper │ │ ├── scraper.ts # Scraping functions │ │ └── cache.ts # Response caching for dev │ └── index.ts ├── tests/ │ ├── fixtures/ # Cached HTML responses │ │ └── example.html │ └── scraper.test.ts ├── .env.local # Local credentials (git-ignored) ├── .env.example # Template for team ├── brd-ca.crt # Bright Data SSL cert (git-ignored) └── package.json ``` ### Step 2: Build Proxy Configuration Module ```typescript // src/brightdata/proxy.ts import 'dotenv/config'; export interface BrightDataProxy { host: string; port: number; auth: { username: string; password: string }; } export function getProxy(options?: { country?: string; city?: string; session?: string; }): BrightDataProxy { const { BRIGHTDATA_CUSTOMER_ID, BRIGHTDATA_ZONE, BRIGHTDATA_ZONE_PASSWORD } = process.env; if (!BRIGHTDATA_CUSTOMER_ID || !BRIGHTDATA_ZONE || !BRIGHTDATA_ZONE_PASSWORD) { throw new Error('Missing BRIGHTDATA_* environmen...

Details

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

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category