Drop a fully-featured, sub-300ms semantic search directly into your frontend. One API key, one hook, ten lines of code. Your users search. You ship.
Use /v1/extract or /v1/crawl to index any URL, doc page, or knowledge base. Results are stored and vectorised automatically.
One knowledgesdk_live_* key controls everything. Pass it to the search hook — it never hits your backend.
Install the SDK, call useSearch(), and render results. The whole integration is under 10 lines.
Install the SDK, call useSearch(), and render results. The hook handles debouncing, loading states, and error handling.
Use our publishable key — queries go directly from the browser to our API. No proxy, no server, no cold starts.
INSTALL
$ npm install @knowledgesdk/node
REACT — useSearch() HOOK
import { useSearch } from '@knowledgesdk/node'; export function SearchBar() { const { results, search, loading } = useSearch({ apiKey: 'pk_ks_...', }); return ( <input placeholder="Search..." onChange={e => search(e.target.value)} /> {results.map(r => <Result key={r.id} {...r} />)} ); }
VANILLA JS — DIRECT FETCH
const res = await fetch('https://api.knowledgesdk.com/v1/search', { method: 'POST', headers: { 'x-api-key': 'pk_ks_...' }, body: JSON.stringify({ query }), }); const { results } = await res.json();
Hybrid vector + keyword search returns results faster than a keypress.
Understands meaning, not just keywords. Works across synonyms, rephrasing, and natural language.
Query the API directly from the browser with your publishable key. No proxy, no server.
React hook, vanilla JS fetch, or any framework. If it can call fetch, it works.
Headless by design. Bring your own styles, components, and layout. Zero opinion on the UI.
Built for ⌘K palette patterns out of the box. Just wire up the shortcut.