Skip to content
SparkleTree Docs
Search
Ctrl
K
Cancel
GitLab
Select theme
Dark
Light
Auto
Menu
Developers
SDK
Quickstart
Fragments
Origins, CSP & privacy
Run the examples
What your visitors see
Server-rendered pages
Provider, components & useIsland
Copy the source (CLI)
When things go wrong
Signed minting
Impressions & clicks
Using it without React
Changelog
API reference
@sparkletree/core
Classes
CopyChoreographer
ImpressionRecorder
SseParser
VariantRegistry
Interfaces
AnalyticsContext
AudioBlock
AudioCapabilities
AudioHandle
AudioState
ChoreographerOptions
ChromeDecision
ContentImage
ContentSnapshot
CreateClientOptions
CreativeState
DeclaredContext
DoneMeta
FetchFragmentsOptions
FieldState
FollowerReservation
FragmentField
FragmentsResponse
FragmentsResult
ImpressionDetail
InitialCopy
LeaderReservation
MintTokenRequest
NormalizedFragmentField
NormalizeResult
PublishableKeyPayload
ResolvedPublishableConfig
ResolvedTheme
ServerContext
ShownCopy
SlotMemory
SparkletreeClient
SseMessage
StreamHandle
StreamOptions
StreamTarget
ThemePayload
UnfinishedCopy
VisibilityOptions
Type Aliases
AudioEvent
AudioProvider
CanonicalDims
ContentSource
CopyField
CopyMode
DegradeReason
DeviceType
EventType
FragmentFieldSpec
FragmentKind
FragmentSwapPolicy
FragmentWarmth
MintTokenSource
Phase
PublishableKeyEnv
TimeOfDay
UnfinishedCopyDecision
UnfinishedCopyPolicy
VariantReservation
WireEventName
Variables
CONTEXT_DAY_TYPES
CONTEXT_DAYPARTS
CONTEXT_DEVICES
CONTEXT_INTENTS
CONTEXT_SURFACE_TYPES
CONTEXT_TEMP_BANDS
CONTEXT_WEATHER
COPY_FIELDS
COPY_HOLD_MAX_MS
COPY_HOLD_MS
COPY_MOTION_EASING
COPY_MOTION_MS
FRAGMENT_KIND_FLOORS
FRAGMENT_KINDS
FRAGMENT_WARMTHS
ISLAND_COPY_FIELDS
keepUnlessClearlyError
KEY_PARAM
LENGTH_PARAM_PREFIX
MAX_CUSTOM_DIMS
MAX_FALLBACK_CHARS
MAX_FRAGMENT_FIELDS
MAX_NOTES_LENGTH
MOBILE_VIEWPORT_QUERY
pageVariants
PROTOCOL_CURRENT
PROTOCOL_DEFAULT
PROTOCOL_HEADER
PROTOCOL_PARAM
PROTOCOL_VERSIONS
RESERVATION_TIMEOUT_MS
RESERVE_FAILSAFE_MS
SDK_PARAM
SDK_PARAM_VALUE
SERVER_CONTEXT_KEYS
STANDARD_MODE_KEY
TOKEN_PREFIX
VARIANT_PARAM
VISITOR_CHANGE_WINDOW_MS
Functions
activePlayer
applyServerContext
applyTheme
buildContentUrl
buildStreamUrl
canonicalContextString
computeContextHash
computeFieldBudget
computeSchemaHash
copyLength
createClient
decideChrome
declaredToDims
decodePublishableKey
destroyActiveAudio
deviceTypeForViewport
encodePublishableKey
expandFieldSpecs
fetchContent
fetchFragments
flattenCustomContext
fragmentSwapPolicy
hashDeclaredContext
hourInTimeZone
inDevelopment
isClearlyErrorText
isFirstPartyApiBase
isSecureApiBase
isValidTimeZone
isVisitorChange
lengthBudgets
markVisitorChange
mountAudio
negotiatedProtocol
normalizeDims
normalizeFieldSpecs
normalizeNotes
observeVisibility
openStream
plainText
readableTextColor
readSseStream
resolvePublishableConfig
safeActionUrl
sessionId
setLengthParams
setViewerPrefersStandard
strongestFragmentSource
themeStyle
timeOfDayForHour
tokenName
tokenSource
track
viewerPrefersStandard
visitorChangeGeneration
warnDev
@sparkletree/react
Interfaces
CopyCardProps
CreativeState
CtaProps
FieldState
FragmentGroupProps
FragmentGroupState
FragmentTextProps
HeldControl
HeroParts
HeroProps
InitialCopy
IslandFrame
IslandReservationProps
ProductCardProps
ServerContext
SparkletreeContextValue
SparkletreeProviderProps
StreamTextProps
UseFragmentsOptions
UseIslandOptions
UseIslandResult
Type Aliases
ContentSource
CopyField
Phase
UseFragmentsResult
Variables
DEFAULT_MARK_LABEL
pageVariants
Functions
CopyCard
Cta
FragmentGroup
fragmentList
FragmentText
heldReserve
Hero
InlineMark
IslandReservation
MarkGlyph
markVisitorChange
ProductCard
SparkletreeProvider
staticField
StreamText
useFragments
useHeldControl
useIsland
useSparkletree
withReserve
Agents & MCP
SparkleTree for agents
Install and connect
Ready prompt for your AI
Example prompts
Tips & tricks for agents
Advanced workflows
Platform
Platform docs
Getting started
What is SparkleTree?
Setup guide
Your first 30 minutes
Connect SparkleTree to your AI
Campaigns & products
Create your first campaign
Products
Campaign settings
Campaign tips & tricks
Brand
Your brand in SparkleTree
Publishing your brand page
How your page gets found — by people and by AIs
Socials
Socials overview
Connect your accounts
Automatic ad management
Meet Florence
Teams & permissions
Managing your team
Roles and permissions
Plans and limits
Integrations
Integrations overview
Shopify
Social accounts and posting
Deployment cookbook
System guide
Capabilities and use cases
Analytics
Advanced settings
MCP connector setup
GitLab
Select theme
Dark
Light
Auto
PROTOCOL_PARAM
const
PROTOCOL_PARAM
:
"st-protocol"
=
"st-protocol"
Defined in: wire.ts:17