# SparkleTree Docs > SparkleTree adapts the copy on a site to each visitor and runs marketing campaigns across sites, socials, screens, print and live streams. These docs cover the SDK (`@sparkletree/core`, `@sparkletree/react` and the `sparkletree` CLI), connecting AI agents through MCP, and the SparkleTree platform. Every page below is linked as Markdown. The same page as HTML is at the same URL without `.md`. All SDK, agents and platform pages in one file: https://docs.sparkletree.io/llms-full.txt. The generated API reference in one file: https://docs.sparkletree.io/llms-api.txt. Each npm package also ships the docs for its own version: `node_modules/@sparkletree//llms.txt` and `docs/`, or `npx @sparkletree/cli docs`. - [Home](https://docs.sparkletree.io/index.md): Documentation for the SparkleTree SDK. Install, integrate, and look up every export. ## SDK - [Quickstart](https://docs.sparkletree.io/developers/sdk/quickstart.md): Install the SparkleTree SDK, set up the project with one init command, wrap your app in the provider, and point at copy whose words adapt to the visitor's context, from a button label to a whole campaign hero. - [Check your setup](https://docs.sparkletree.io/developers/sdk/setup-checks.md): Run sparkletree doctor to check the packages, the key, the edge, the site, the campaign and the page's Content Security Policy, with the fix for every problem; set connect-src and frame-src; check a key and a site from code with checkSetup. - [Fragments](https://docs.sparkletree.io/developers/sdk/fragments.md): Point at any copy in your app, a button label, a heading, a paragraph, an empty state, and get a version written for where it sits. Your own strings are the fallback, the schema and the layout budget. - [Show prices and other facts](https://docs.sparkletree.io/developers/sdk/facts.md): Show a product's name, price, availability and other stated facts from your workspace's records, next to adapted copy or on their own, and check the signature that proves they were not changed. - [Origins, CSP & privacy](https://docs.sparkletree.io/developers/sdk/origins-and-privacy.md): The three infrastructure things to get right before you ship: origin registration, Content Security Policy directives, and exactly what data leaves the browser. - [Run the examples](https://docs.sparkletree.io/developers/sdk/examples.md): A minimal integration you can read in one sitting, and eleven dressed-up recipes that run with no backend at all. - [What your visitors see](https://docs.sparkletree.io/developers/sdk/what-visitors-see.md): Text a visitor can see is never replaced, with one exception: a line the stream did not finish ends on your fallback. Your copy is held invisibly while adapted copy is coming, lands when it is late or missing and then stays, and adapted copy always carries machine-readable provenance. The rules that change what you write. - [Server-rendered pages](https://docs.sparkletree.io/developers/sdk/server-rendering.md): Read the live copy already cached for a visitor on your server, render it as final text in the HTML, and let a miss hold and stream in the browser. Next.js App Router, Pages Router, static pages and ISR. - [Be readable by visiting agents](https://docs.sparkletree.io/developers/sdk/agents.md): Give AI agents and search engines on your own site what the SparkleTree edge gives them on its pages: schema.org JSON-LD built from stated facts, links to the signed facts and llms.txt, and the way to ask, with AgentSurface or getAgentSurface. - [Provider, components & useIsland](https://docs.sparkletree.io/developers/sdk/components.md): Every prop on SparkletreeProvider, Hero, Cta, StreamText and the cards, plus useIsland for rendering the copy in your own markup. - [Use it in any framework](https://docs.sparkletree.io/developers/sdk/elements.md): Add live copy, fragments, stated facts and the live player to plain HTML, Astro, Svelte, Liquid or Vue with custom elements from @sparkletree/core/elements. Your served text is the fallback and the layout. - [Let visitors ask](https://docs.sparkletree.io/developers/sdk/ask.md): Let visitors ask questions about a campaign or your whole workspace from your own form, with ask() or useAsk: streamed answers, follow-up questions, links, and the rules the edge applies. - [Show a live stream](https://docs.sparkletree.io/developers/sdk/live.md): Show a running live channel's player in a Hero, or place it yourself with Live. The player's 16:9 space is on the page before the player is, so nothing moves when it arrives. - [The sparkletree CLI](https://docs.sparkletree.io/developers/sdk/cli.md): Every sparkletree command: sign in, set up a project with init, check it with doctor, run the mock edge, read results, read the installed docs and copy component source, with options, JSON output and exit codes. - [When things go wrong](https://docs.sparkletree.io/developers/sdk/when-things-break.md): What a visitor sees on a slow network, on a paused campaign, and during a full outage, plus the one failure you have to fix yourself. - [Test without an account](https://docs.sparkletree.io/developers/sdk/testing.md): Run the SparkleTree mock edge with sparkletree dev or @sparkletree/core/testing (startMockEdge, the mockEmbedApi Vite plugin, mockFetch), make it fail on purpose, read back what was tracked, and prove with the layout helpers that copy landing never moves the page. - [Signed minting](https://docs.sparkletree.io/developers/sdk/signed-minting.md): Why a browser Origin header alone does not prove who sent a mint, how your backend issues a short-lived mint token, and which workspaces require one. - [Impressions & clicks](https://docs.sparkletree.io/developers/sdk/analytics.md): When an impression fires, why the ref matters, what each event carries, and how to send your own conversion events. - [Read results back](https://docs.sparkletree.io/developers/sdk/results.md): Read a campaign's results on your server or in a terminal with getResults or sparkletree results: totals, each variant's figures and copy, the leader, and which variant leads in each context, such as the evening or on phones. - [Using it without React](https://docs.sparkletree.io/developers/sdk/core.md): Drive the same behaviour from Vue, Svelte, plain JavaScript or a server, with @sparkletree/core, plus the obligations React was handling for you. - [Docs for coding agents](https://docs.sparkletree.io/developers/sdk/docs-for-agents.md): Where a coding agent finds the SparkleTree docs as plain Markdown: inside each installed package for the exact version, through npx @sparkletree/cli docs, and on the site as llms.txt, llms-full.txt, llms-api.txt and a .md form of every page. - [Changelog](https://docs.sparkletree.io/developers/sdk/changelog.md): What each SDK release changed about what your visitors see and what your code can rely on. @sparkletree/core, react and cli are versioned and released together. ## API reference - [The API reference in one file](https://docs.sparkletree.io/llms-api.txt): every exported function and type of `@sparkletree/core` and `@sparkletree/react`, generated from the source. Each page is also at its own URL plus `.md`. ## Agents & MCP - [SparkleTree for agents](https://docs.sparkletree.io/developers/agents.md): Index of agent-facing docs: the platform MCP server and the public brand-host surfaces. - [Install and connect](https://docs.sparkletree.io/developers/agents/install.md): Machine-consumable guide to connecting to SparkleTree: MCP endpoint, auth, profiles, tools, resources, and public brand-host discovery. - [Ready prompt for your AI](https://docs.sparkletree.io/developers/agents/ready-prompt.md): One copy-paste prompt that orients your AI assistant after you connect it to SparkleTree. - [Example prompts](https://docs.sparkletree.io/developers/agents/example-prompts.md): Ready-made prompts to give your connected AI, grouped by task, with the tools each one exercises. - [Tips & tricks for agents](https://docs.sparkletree.io/developers/agents/tips-and-tricks.md): Operational guidance for agents and power users working against the SparkleTree MCP server and public brand surfaces. - [Advanced workflows](https://docs.sparkletree.io/developers/agents/advanced-workflows.md): Multi-tool recipes for agents orchestrating SparkleTree: full campaign pipelines, analytics digests, video, public brand Q&A, and agency ops. ## Platform - [Platform docs](https://docs.sparkletree.io/platform.md): Guides for marketers, brand owners and workspace admins who run SparkleTree. ## Platform: Getting started - [What is SparkleTree?](https://docs.sparkletree.io/platform/introduction.md): A plain-terms introduction to SparkleTree: brand, web presence, search and AI visibility, and campaigns, distributed to websites, socials, games, screens, kiosks, print and live streams. - [Setup guide](https://docs.sparkletree.io/platform/setup-guide.md): From signup to ready-to-work: create your workspace, import your brand, add a product, invite a teammate, and claim your subdomain. - [Your first 30 minutes](https://docs.sparkletree.io/platform/onboarding-tutorial.md): One end-to-end walkthrough: import your brand, add a product, generate a campaign, shape your Squid, publish, and see it live. - [Connect SparkleTree to your AI](https://docs.sparkletree.io/platform/connect-your-ai.md): Give Claude, ChatGPT, Cursor or any MCP client direct, secure access to your SparkleTree workspace. ## Platform: Campaigns & products - [Create your first campaign](https://docs.sparkletree.io/platform/campaigns-and-products/your-first-campaign.md): Describe your goal in one box, generate a campaign, and shape your first Squid. - [Products](https://docs.sparkletree.io/platform/campaigns-and-products/products.md): Add products three ways, understand drafts vs active, and connect products to campaigns. - [Campaign settings](https://docs.sparkletree.io/platform/campaigns-and-products/campaign-settings.md): The Configure face of the campaign detail view: variant selection, language, soundtrack, CTA and chips. - [Campaign tips & tricks](https://docs.sparkletree.io/platform/campaigns-and-products/tips-and-tricks.md): Small habits that make campaigns sharper: better goals, better chips, better testing. ## Platform: Brand - [Your brand in SparkleTree](https://docs.sparkletree.io/platform/brand/introduction.md): What the Brand section is, how the Brandbook and Publishing tabs work, and why everything you generate inherits your identity. - [Publishing your brand page](https://docs.sparkletree.io/platform/brand/publishing.md): Take your brand page live on a free subdomain or your own domain, preview it, and share it. - [How your page gets found — by people and by AIs](https://docs.sparkletree.io/platform/brand/gso-seo-primer.md): A plain-language primer on SEO and GSO, and what every published SparkleTree page ships automatically. ## Platform: Socials - [Socials overview](https://docs.sparkletree.io/platform/socials/overview.md): Connect your social accounts once, publish posts, run Meta ads, and watch everything in one feed. - [Connect your accounts](https://docs.sparkletree.io/platform/socials/connect-your-accounts.md): Link Meta, Bluesky, Reddit, and TikTok to your workspace from the Settings page. - [Automatic ad management](https://docs.sparkletree.io/platform/socials/automatic-ad-management.md): Deploy campaigns to Meta ads, sync status, control spend, and stop everything at once when you need to. - [Meet Florence](https://docs.sparkletree.io/platform/socials/florence.md): Your AI marketing assistant: chat about campaigns and socials, or let her watch your workspace and propose next moves. ## Platform: Teams & permissions - [Managing your team](https://docs.sparkletree.io/platform/teams-and-permissions/managing-your-team.md): Invite teammates, assign roles, handle invitations, and work across multiple workspaces. - [Roles and permissions](https://docs.sparkletree.io/platform/teams-and-permissions/roles-and-permissions.md): What Admins, Editors, Members, and Viewers can and can't do in a workspace. - [Plans and limits](https://docs.sparkletree.io/platform/teams-and-permissions/plans-and-limits.md): How plans gate seats, credits, and features — and what actually happens when you hit a limit. ## Platform: Integrations - [Integrations overview](https://docs.sparkletree.io/platform/integrations/overview.md): A map of every way SparkleTree connects outward — your site, your domain, socials, Shopify, screens, and AI assistants. - [Shopify](https://docs.sparkletree.io/platform/integrations/shopify.md): Show winning campaign variants on your Shopify product pages and attribute checkouts back to them. - [Social accounts and posting](https://docs.sparkletree.io/platform/integrations/social-accounts-and-posting.md): Organic posting mechanics per platform, the Socials feed, Bluesky listening rules, and how Florence posts on your rails. - [Deployment cookbook](https://docs.sparkletree.io/platform/integrations/deployment-cookbook.md): Every way to put a campaign in front of an audience — one recipe each, with setup steps and when to use it. ## Platform: System guide - [Capabilities and use cases](https://docs.sparkletree.io/platform/system-guide/capabilities-and-use-cases.md): What SparkleTree can do, organized by outcome, with realistic examples. - [Analytics](https://docs.sparkletree.io/platform/system-guide/analytics.md): What SparkleTree's metrics mean, where the dashboards live, and how to read them honestly. - [Advanced settings](https://docs.sparkletree.io/platform/system-guide/advanced-settings.md): A tour of Dashboard → Settings for workspace admins: delivery, brand, team, API keys, language, and more. - [MCP connector setup](https://docs.sparkletree.io/platform/system-guide/mcp-connector-setup.md): The admin's guide to connecting AI agents to SparkleTree over MCP: endpoint, tools, profiles, API keys, rate limits, and revocation.