Skip to content

continuewith-ai/sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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)

Area Examples
Prompts buildPrompt, buildProviderUrl, providerLabels
Install htmlWidgetSnippet, widgetScriptUrl, hasContinueWithInstall
Theme normalizeWidgetTheme, themeToCssBlock, themeToStyleObject
Agents agentInstallRule, skills catalog in ./skills

Documentation

Related packages

Package Purpose
continuewith CLI — npx continuewith add
@continuewith/mcp MCP server for Cursor / Claude Code

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.

Community

License

MIT © ContinueWith

About

ContinueWith SDK — install snippets, prompts, and agent helpers

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors