Install
@search-engine-sdk/core provides the TypeScript client and ChatController. @search-engine-sdk/react adds SourcingChat, standalone UI components, and a stylesheet. The React package requires React and React DOM 19. Node.js 20+ is required.
Published packages
@search-engine-sdk/core and @search-engine-sdk/react, both 0.1.0, are in the GitLab npm registry of the SDK project.
.npmrc
@search-engine-sdk:registry=https://gitlab.bspk.cc/api/v4/projects/353/packages/npm/
//gitlab.bspk.cc/api/v4/projects/353/packages/npm/:_authToken=${GITLAB_NPM_TOKEN}
GITLAB_NPM_TOKEN is a token that can read that registry. Do not commit the token.
npm install @search-engine-sdk/core@0.1.0 @search-engine-sdk/react@0.1.0
Load the stylesheet once, next to the client:
import '@search-engine-sdk/react/styles.css';
Check the repository
npm ci
npm run typecheck
npm test
npm run build
The screenshot tool needs Node.js 22+ and Chromium. It opens the gallery locally, submits the same first search in each theme, and writes the PNGs under docs/screenshots/. The gallery supplies its own API responses.
CHROME=/path/to/chromium node scripts/capture-gallery.mjs
If chromium is on your PATH, omit CHROME.