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.
npm install @continuewith/sdkimport {
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.
| Area | Examples |
|---|---|
| Prompts | buildPrompt, buildProviderUrl, providerLabels |
| Install | htmlWidgetSnippet, widgetScriptUrl, hasContinueWithInstall |
| Theme | normalizeWidgetTheme, themeToCssBlock, themeToStyleObject |
| Agents | agentInstallRule, skills catalog in ./skills |
| Package | Purpose |
|---|---|
continuewith |
CLI — npx continuewith add |
@continuewith/mcp |
MCP server for Cursor / Claude Code |
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.
- Website: continuewith.ai
- X: @continuewithai
- Reddit: @continuewithai
- AI Ready Index: ready.continuewith.ai
MIT © ContinueWith