The server decides the questions
You never hard-code a form. Each answer returns the next questions, and the SDK follows along.
import { apiKey, createClient } from '@partner-sdk/core';
const client = createClient({ baseUrl: 'https://api.example.com', auth: apiKey(key) });
let q = await client.start('cyber');q = await q.answer({ 'Business owner': 'yes', 'US state': 'Ohio' });// ...keep answering what q.questions asks for until q.ready
if (q.ready) { const quoteSet = await q.quotes.wait(); await quoteSet.quotes[0]?.select();}The server decides the questions
You never hard-code a form. Each answer returns the next questions, and the SDK follows along.
You decide the UX
Headless, framework-agnostic and dependency-free. Render with your own design system.
Small
Under 8 KB gzipped for the core. Each layer is its own tree-shakeable entry point.
Safe with PII
Answers never reach logs, events or hooks. They’re stored only where you say.