Browse by type

Open-source AI people search engine. Describe who you are looking for in plain English, get matching professionals in seconds, then generate a research brief that cites every claim.
Built on Bright Data Business Search and the Bright Data MCP.
Quick start · How it works · API · Configuration · What's new in v2
Requirements: Node.js 20.9 or later, and a Bright Data API key with Business Search access. Business Search is in beta: request access with a business email if your account does not have it yet.
git clone https://github.com/brightdata/pepolehub.git
cd pepolehub
npm install
cp .env.example .env.local # then add BRIGHTDATA_API_KEY
npm run dev
Open http://localhost:3000 and search.
To enable research briefs, also set an LLM key in .env.local. The default model is Claude Sonnet:
LLM_MODEL=anthropic/claude-sonnet-5-5
ANTHROPIC_API_KEY=sk-ant-...
Search works without an LLM key. The profile page shows which key is missing.
Search Research brief
────── ──────────────
"AI engineers in Tel Aviv" profile ID
│ │
▼ ▼
POST /search/people (Smart or Instant) Business Search lookup (Ludicrous, by ID)
│ │
▼ ▼
ranked people records search_engine ×2 queries ─┐ Bright Data MCP
web_fetch ×6 pages ─┘ (hosted)
│
▼
LLM: is this page about the same person?
│ keep matches, number them [1]..[n]
▼
LLM: stream a cited brief (SSE)
Search calls POST /search/people with the user's sentence. Smart mode reranks candidates by how well each record answers the request; Instant mode returns the matches of one structured query. The app requests only the fields it renders.
Profiles load with an exact Ludicrous-mode lookup on linkedin_person_id, which takes well under a second.
Research runs on the server and streams progress to the browser as server-sent events:
search_engine, web_fetch), which needs only your API key.[n].Page content from the web is treated as untrusted data in every prompt.
All routes are JSON in, JSON out, except research, which streams.
| Route | Body / params | Returns |
|---|---|---|
POST /api/search |
{ "query": "...", "mode": "smart" \| "instant", "limit"?: 1-100 } |
{ people, mode, matched, coveragePercent, reqId, tookMs } |
GET /api/people/{id} |
profile ID from a search result | { person }, or 404 |
POST /api/research |
{ "personId": "..." } |
text/event-stream of step, profile, source, delta, done or error events |
GET /api/status |
none | which features are configured (never key values) |
curl -s localhost:3000/api/search \
-H 'content-type: application/json' \
-d '{"query":"product managers in Berlin with fintech experience","mode":"instant","limit":20}'
Queries are 2 to 200 characters. Smart returns at most 10 people per request; Instant at most 100.
| Variable | Required | Purpose |
|---|---|---|
BRIGHTDATA_API_KEY |
Yes | Business Search and the Bright Data MCP |
LLM_MODEL |
No | provider/model; anthropic, openai or google. Default anthropic/claude-sonnet-5-5 |
ANTHROPIC_API_KEY / OPENAI_API_KEY / GOOGLE_GENERATIVE_AI_API_KEY |
For briefs | Key for the provider in LLM_MODEL |
BASIC_AUTH |
No | user:password. Turns on HTTP Basic auth for every page and API route |
Business Search bills per search: $2 per 1,000 Instant searches (up to 100 results each) and $3 per 1,000 Smart searches (up to 10 results each). Rejected and rate-limited requests are not billed. See Business Search pricing. A research brief adds one profile lookup, two web searches, up to six page fetches and up to seven LLM calls.
PeopleHub is a standard Next.js app and runs anywhere Node.js runs. Set BASIC_AUTH before exposing it publicly: anyone who can reach the app spends your Bright Data and LLM credits. A research brief streams for a minute or more, so use a host that allows long-running responses (maxDuration is set to 300 seconds).
npm run dev # dev server
npm run check # lint + typecheck + unit tests
npm run build # production build
LIVE_TESTS=1 BRIGHTDATA_API_KEY=... npm test -- test/live.test.ts # live API checks
src/
├── app/
│ ├── page.tsx # home
│ ├── search/page.tsx # results
│ ├── people/[id]/page.tsx # profile + research brief
│ ├── history/page.tsx # searches and briefs saved in this browser
│ └── api/ # search, people, research (SSE), status
├── lib/
│ ├── brightdata/
│ │ ├── business-search.ts # Business Search client: retries, errors, field list
│ │ └── mcp.ts # hosted Bright Data MCP: search_engine, web_fetch
│ ├── research/pipeline.ts # search → fetch → verify → cited brief
│ ├── people/ # Person type and record normalization
│ └── llm.ts # provider-agnostic model selection
├── components/ # UI
└── proxy.ts # optional Basic auth
test/ # Vitest unit tests + opt-in live tests
v2 is a rewrite. It replaces the multi-service backend with Business Search and keeps the product idea: plain-English people search plus research briefs.
| v1 | v2 | |
|---|---|---|
| Search | Gemini parses the query, Google SERP finds profile URLs, a scraper job fetches each profile (~2 min cold) | One Business Search call (~1-3 s) |
| Services to set up | Bright Data, Gemini, Supabase Postgres, Redis | Bright Data, plus any LLM for briefs |
| Research | LangGraph + Gemini | Plain TypeScript pipeline, any AI SDK provider, same-name filtering, inline citations |
| Storage | Postgres + Redis | Browser localStorage |
| Stack | Next.js 15.5, AI SDK 5 | Next.js 16, React 19.3, AI SDK 7, Zod 4 |
npm audit |
39 vulnerabilities (3 critical) | 0 |
v1 remains available at the v1 tag.
PeopleHub surfaces public professional information. Use it for legitimate purposes such as recruiting, sales research and due diligence, follow the laws that apply to you (including GDPR and CCPA), honor opt-out requests, and review records before acting on them. See Bright Data's acceptable use policy.
Issues and pull requests are welcome. Run npm run check before opening a PR.
Originally created by Meir Kadosh. Maintained by Bright Data.
$ claude mcp add --transport http codehub https://codehub.bot/mcp
One hosted endpoint, no key: your agent can search, read and trace brightdata/pepolehub and every other graph here. Cursor, Windsurf and other clients →