Skip to main content

Sourcing SDK

@ai-sourcing/core is the TypeScript client. @ai-sourcing/react adds SourcingChat and the pieces it is built from. Both packages are 0.1.0. Node.js 20+ is required. The React package needs React and React DOM 19.

SourcingChat is the embeddable conversation: a transcript, a requirements summary, and a card list. A host that draws its own results (a sortable table, an adjust dialog, a candidate page, history) keeps that UI and calls the client methods in this guide.

The HTTP API is mounted at /api/v2. Public type names do not include that version.

Light themeDark theme
Completed first search with requirements and ranked candidates, light themeThe same first search and results, dark theme

Both screenshots show the shipped SourcingChat after the first search, using synthetic candidate data.

Where to go​

GoalPage
Add the packagesInstall
Create a client, including matchingClient
Drop in the chatEmbed the chat
Drive one conversationChat controller
Call search, history, or the requirement tree yourselfClient methods
Read a failed requestErrors
Pick a piece of the screenComponents