Build and share AI-powered apps with Claude

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Claude Artifacts apps can now call Claude themselves via window.claude.complete(), letting anyone build and share self-contained AI apps where end users, not the creator, pay for the prompts.

Read this as

Anthropic has upgraded Claude Artifacts, the web apps you can build inside Claude, so those apps can now send their own prompts to Claude using a new window.claude.complete() function. This means people can build working AI-powered tools, like a translator, with one sentence and share them publicly. Anyone using the app must sign in with their own Anthropic account, so they pay for their own usage rather than the builder. The feature must be enabled in Claude's settings under 'Create AI-powered artifacts'.

Anthropic turned a single new JavaScript function, window.claude.complete(), into a product launch: Artifacts apps can now run their own prompts against Claude. Costs are shifted to end users, who must sign into their own Anthropic account before any prompt runs, protecting builders from usage bills. This enables shareable AI apps without API infrastructure, though the API only handles strings, forcing awkward JSON prompt engineering and manual conversation-state handling. Enable it via claude.ai/settings/profile.

Artifacts run in a sandboxed iframe with CSP headers blocking fetch() and localStorage; the new window.claude.complete(prompt) method, also available to the analysis tool, takes a string and returns a string with no native conversation-history support, so prior messages must be serialized as a JSON array inside each prompt. Anthropic's leaked system-prompt tool instructions recommend emphatic JSON-only prompting and prototyping completions in the analysis tool first, since artifact errors are invisible to the main model. Enable via Settings -> Profile feature preview.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Claude Anthropic Claude Artifacts window.claude.complete Claudeception

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading

datasette-charts 0.5a0

Datasette Charts 0.5a0 adds calendar heatmaps, box plots and active-over-time charts, enabling richer data visualisation directly in the browser without extra libraries.