Skip to main content
The GitResolve programmatic API gives you direct access to every stage of the resolution pipeline — input classification, portfolio scraping, resume parsing, owner disambiguation, and browser provider management — so you can integrate candidate profile extraction into any Node.js application. While the CLI is ideal for one-off or shell-based workflows, the library API is designed for systems that need to process multiple candidates concurrently, persist results, or compose custom pipelines.

Installation

GitResolve requires Node.js 18 or later (native fetch and ReadableStream are used internally). For full JavaScript-rendered portfolio scraping you will also want a browser peer dependency:

Canonical integration pattern

The most common production pattern combines createProvider, scrapePortfolio, and parseResume. Always call provider.cleanup() in a finally block so browser processes are never left dangling.
Neither scrapePortfolio nor parseResume ever throws. Any failure is captured in result.error so a try/finally around cleanup() is sufficient — you do not need a catch block for the resolution functions themselves.

Export reference

All public exports are grouped below. Click any category to jump to the dedicated reference page.

Classifier

Portfolio Scraper

Resume Parser

Disambiguator

Browser providers

Types


API pages

Classifier

classifyInput, parseRepoUrl, parseGitLink, extractGitUrlsFromText, isGitProviderUrl, and GIT_HOSTS

Portfolio Scraper

scrapePortfolio and extractLinksFromHtml

Resume Parser

parseResume — dual-method PDF extraction with unpdf

Disambiguator

resolveOwnerAndCategorize and dedupeProfilesByUsername

createProvider

Browser provider factory, all three provider classes, and the BrowserProvider interface

Types

Complete TypeScript type reference for every exported interface and union type