@continuewith/sdk
Shared helpers for the ContinueWith AI handoff widget — prompt builders, install snippets, agent skills metadata, and theme utilities.
Used by the public widget bundle, CLI, and MCP server. Safe to import in your own tooling.
Install
npm install @continuewith/sdk
Quick start
import {
htmlWidgetSnippet,
buildPrompt,
buildProviderUrl,
DEMO_PUBLIC_KEY,
agentInstallRule,
} from '@continuewith/sdk';
const snippet = htmlWidgetSnippet({ siteKey: DEMO_PUBLIC_KEY });
const url = buildProviderUrl({
provider: 'chatgpt',
prompt: buildPrompt('Summarize {{url}}', { url: 'https://example.com' }),
});
Replace DEMO_PUBLIC_KEY (cw_demo_public_key) with your dashboard public key after signup.
Exports (high level)
| Prompts | buildPrompt, buildProviderUrl, providerLabels |
| Install | htmlWidgetSnippet, widgetScriptUrl, hasContinueWithInstall |
| Theme | normalizeWidgetTheme, themeToCssBlock, themeToStyleObject |
| Agents | agentInstallRule, skills catalog in ./skills |
Documentation
Related packages
Trust & security
What this package contains: TypeScript/JavaScript helpers only. No network calls, no credentials, no telemetry.
What is intentionally public: cw_demo_public_key — a read-only demo site key for trying the widget before signup. It is not a secret. Use your own key from the dashboard in production.
What is never shipped here: Stripe keys, Resend keys, Clerk secrets, database URLs, or private site keys.
License
MIT © ContinueWith