MCPcopy Create free account
hub / github.com/brightdata/pepolehub

github.com/brightdata/pepolehub @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
285 symbols 764 edges 73 files 11 documented · 4% ● updated 7d agolatest release v2.0.0 · 2026-11-29★ 324

Browse by type

⨍ Functions 235◇ Types & classes 50
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

PeopleHub

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


What it does

  • Plain-English people search. Type "AI engineers in Tel Aviv with startup experience". Business Search turns the sentence into a structured query over hundreds of millions of professional profiles and returns matching people as structured records: title, employer, location, experience, past roles, education.
  • Two search modes. Smart reranks candidates and returns the 10 best matches in about 2-3 seconds. Instant returns up to 50 matches in a second or two.
  • Cited research briefs. One click searches the public web for the person, reads the top pages, drops pages about other people with the same name, and streams a brief where every claim links to its source.
  • One required key. No database, no cache server, no zones to create. History is stored in your browser.

Quick start

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.

How it works

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:

  1. Two web searches: name plus current employer, and name plus title.
  2. Social profile sites are skipped and results are deduplicated. The top 6 pages are fetched as Markdown through the hosted Bright Data MCP (search_engine, web_fetch), which needs only your API key.
  3. The LLM checks each page against the profile and drops pages about someone else with the same name.
  4. The LLM writes the brief from the profile and the kept pages, citing each claim as [n].

Page content from the web is treated as untrusted data in every prompt.

API

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.

Configuration

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

Costs

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.

Deploying

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

Development

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

What's new in v2

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.

Responsible use

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.

Contributing

Issues and pull requests are welcome. Run npm run check before opening a PR.

Credits

Originally created by Meir Kadosh. Maintained by Bright Data.

License

MIT

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 235
Interface 50

Languages

TypeScript100%

Modules by API surface

src/lib/research/llm-service.ts22 symbols
src/lib/brightdata/research.ts22 symbols
src/lib/research/graph.ts18 symbols
src/lib/cache/research-cache.ts14 symbols
src/lib/brightdata/search.ts14 symbols
src/types/linkedin.ts13 symbols
src/lib/redis/cache.ts9 symbols
src/lib/research/types.ts8 symbols
src/lib/redis/profile-cache.ts8 symbols
src/lib/brightdata/linkedin.ts8 symbols
src/components/ui/navigation-menu.tsx8 symbols
src/components/ui/card.tsx7 symbols

For agents

$ 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 →

⬇ download graph artifact

Ask about this repo answers extend the page