brightdata-local-search
यह क्या करती है
यह स्किल आपके AI को Bright Data का उपयोग करके स्थानीय वेब खोज इंजन सेट करने और चलाने में मदद करती है। यह उन डेवलपर्स के लिए है जो अपने टूल के ज़रिए सर्च इंजन के नतीजे चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप अपने स्थानीय खोज टूल के ज़रिए वेब खोज चलाना चाहते हैं।
- ✓जब आपको कई सर्च इंजनों से नतीजे रैंक और साफ़ करके चाहिए।
- ✓जब आप किसी प्रोजेक्ट के लिए Bright Data का SERP API सेट कर रहे हैं।
Skill का लिंक
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/brightdata-local-search/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“Bright Data के साथ स्थानीय खोज सर्वर सेट कीजिए, ताकि मैं अपने ऐप से वेब खोज सकूँ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट unfancy-search प्रोजेक्ट क्लोन करता है, आपकी Bright Data और वैकल्पिक Anthropic keys जोड़ता है, और उसे Docker या Node.js से शुरू करता है। फिर वह स्थानीय endpoints से खोज चलाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Bright Data Local Search
Run powerful web searches locally using Bright Data's SERP API. This skill sets up the unfancy-search pipeline — a local search engine with query expansion, multi-engine SERP retrieval, RRF reranking, deduplication, and domain clustering.
Important: This skill uses the LOCAL version only. Do not use the hosted endpoint.
Prerequisites
- Bright Data account with SERP API access
- Anthropic API key (for query expansion, optional)
- Docker (recommended) or Node.js 18+ with pnpm
Setup
Step 1: Clone and Configure
git clone https://github.com/yaronbeen/unfancy-search.git
cd unfancy-search
cp .env.example .env
Step 2: Set Environment Variables
Edit .env with your credentials:
BRIGHT_DATA_API_TOKEN=your_brightdata_token
BRIGHT_DATA_SERP_ZONE=serp_api1
ANTHROPIC_API_KEY=your_anthropic_key # Optional: enables AI query expansion
Get your Bright Data token from: https://brightdata.com (SERP API section)
Step 3: Start the Local Server
Docker (recommended):
docker compose up -d
# Server runs at http://localhost:3000
Node.js:
pnpm install
pnpm dev
# Server runs at http://localhost:3000
API Endpoints
All requests go to http://localhost:3000:
| Endpoint | Method | Description |
|---|---|---|
/api/search |
POST | Start a search job |
/api/search-status/{jobId} |
GET | Poll for results |
/api/baseline |
POST | Trigger baseline collection |
/api/baseline-status/{id} |
GET | Poll baseline progress |
Running a Search
Step 1: Submit Search
curl -X POST http://localhost:3000/api/search \
-H "Content-Type: application/json" \
-d '{"query": "your search term"}'
The response returns a jobId.
Step 2: Poll for Results
curl http://localhost:3000/api/search-status/{jobId}
Poll every 3 seconds until status is "done".
Search Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
query |
string | required | Search query |
expand |
boolean | false |
Enable AI query expansion via Claude |
research |
boolean | false |
Research mode (12 sub-queries for max coverage) |
engines |
string[] | all | SERP engines to use |
geo |
string | — | Geographic region filter |
count |
number | 10 | Max results (up to 10) |
includeDomains |
string[] | — | Only include results from these domains |
excludeDomains |
string[] | — | Exclude results from these domains |
Search Modes
- Basic (
expand: false): Single query, fastest, no AI cost - Expanded (
expand: true): Claude Haiku generates 3 sub-queries for broader coverage - Research (
research: true): 12 sub-queries for maximum coverage
Usage Examples
Basic Search from an Agent
# Start search
JOB_ID=$(curl -s -X POST http://localhost:3000/api/search \
-H "Content-Type: application/json" \
-d '{"query": "best practices for API rate limiting"}' | jq -r '.jobId')
# Poll until done
while true; do
RESULT=$(curl -s http://localhost:3000/api/search-status/$JOB_ID)
STATUS=$(echo $RESULT | jq -r '.status')
if [ "$STATUS" = "done" ]; then
echo $RESULT | jq '.results'
break
fi
sleep 3
done
Research Mode with Domain Filtering
curl -X POST http://localhost:3000/api/search \
-H "Content-Type: application/json" \
-d '{
"query": "kubernetes scaling strategies",
"research": true,
"excludeDomains": ["pinterest.com", "quora.com"]
}'
Adding Search to an Existing Agent
To give your Claude Code agent search capabilities:
- Ensure the local server is running (
docker compose up -din the unfancy-search directory) - Your agent can use
curlorfetchto queryhttp://localhost:3000/api/search - Parse the ranked results to ground responses with real web data
Response Format
Results include:
- Ranked URLs with RRF scores
- Domain clustering (grouped by source)
- Cost transparency (per-search expense breakdown)
- Raw and unique result counts
- Search duration
Troubleshooting
| Issue | Solution |
|---|---|
| Server won't start | Verify Docker is running or Node.js 18+ installed |
| No results returned | Check BRIGHT_DATA_API_TOKEN is valid and SERP API zone is active |
| Query expansion not working | Verify ` |
अक्सर पूछे जाने वाले सवाल
शुरू करने के लिए क्या चाहिए?
SERP API एक्सेस वाला Bright Data अकाउंट, और Docker या Node.js 18 या उससे नया।
क्या यह होस्टेड सेवा इस्तेमाल करती है?
नहीं, स्किल कहती है कि केवल स्थानीय संस्करण इस्तेमाल करें, होस्टेड endpoint नहीं।
क्या AI क्वेरी विस्तार ज़रूरी है?
नहीं, Anthropic key वैकल्पिक है, और सेट होने पर AI क्वेरी विस्तार चालू करती है।
जानकारी
लेखक का मूल विवरण
Set up and run local web searches using Bright Data SERP API with the unfancy-search pipeline (query expansion, SERP retrieval, RRF reranking).
लोकप्रियता
- GitHub स्टार
- 33k
- रैंकिंग में स्थान
- #8730
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
owasp-security
33kआपके एजेंट को वेब ऐप, API, मोबाइल, कंटेनर और AI एजेंट्स के लिए OWASP सुरक्षा मार्गदर्शन सिखाती है, ताकि वह आम कमज़ोरियाँ पहचान सके और सुधार सुझा सके।
agent-management
33kआपके एजेंट को AI Maestro कमांड-लाइन से AI एजेंट बनाने, सूची देखने, hibernate और wake करने, नाम बदलने और हटाने देती है, हर एजेंट के जीवन-चक्र को संभालते हुए।
agent-messaging
33kAgent Messaging Protocol का उपयोग करके AI एजेंट्स के बीच हस्ताक्षरित संदेश भेजने, प्राप्त करने और उनका जवाब देने देती है, ज़्यादातर आपकी अपनी मशीन पर।
docs-search
33kआपके एजेंट को फ़ंक्शन सिग्नेचर, क्लास परिभाषा और कमेंट के लिए ऑटो-जनरेटेड कोड डॉक्यूमेंटेशन खोजने देती है, ताकि कोड बदलने से पहले वह असली API जाँच सके।
मिलती-जुलती skills
tavily
394kयह आपके एजेंट को Tavily से वेब पर खोजने और खास वेब पेजों से टेक्स्ट निकालने देती है, गहराई, डोमेन और तारीख के विकल्पों के साथ।
blogwatcher
394kयह आपके एजेंट को ब्लॉग और RSS या Atom फ़ीड फ़ॉलो करने, उनमें नए लेख जांचने और जो लेख आपने पढ़ लिए हों उन्हें चिह्नित करने देती है।
data-scraper-agent
280kएजेंट को किसी भी public स्रोत से अपने-आप डेटा इकट्ठा करने में मदद करता है। इसे schedule किया जा सकता है, जानकारी को और बेहतर बनाया जा सकता है और नतीजे सेव किए जा सकते हैं। ऑनलाइन डेटा पर नज़र रखने के लिए उपयोगी है।