Skip to content
SparkleTree Docs
Search
Ctrl
K
Cancel
GitLab
Select theme
Dark
Light
Auto
Menu
Developers
SDK
Quickstart
Check your setup
Fragments
Show prices and other facts
Origins, CSP & privacy
Run the examples
What your visitors see
Server-rendered pages
Be readable by visiting agents
Provider, components & useIsland
Use it in any framework
Let visitors ask
Show a live stream
The sparkletree CLI
When things go wrong
Test without an account
Signed minting
Impressions & clicks
Read results back
Using it without React
Docs for coding agents
Changelog
API reference
@sparkletree/core
Classes
CopyChoreographer
ImpressionRecorder
SseParser
VariantRegistry
Interfaces
AnalyticsContext
AskLink
AskOptions
AskResult
AudioBlock
AudioCapabilities
AudioHandle
AudioState
CheckSetupOptions
ChoreographerOptions
ChromeDecision
ContentImage
ContentSnapshot
CreateClientOptions
CreativeState
DeclaredContext
DisclosurePayload
DoneMeta
FactFieldSpec
FactProduct
FactsPayload
FactsPublicKey
FactsResult
FactsSignature
FetchContentOptions
FetchFactsOptions
FetchFragmentsOptions
FieldState
FollowerReservation
FragmentField
FragmentFieldState
FragmentsResponse
FragmentsResult
GeneratedFieldSpec
ImpressionDetail
InitialCopy
LeaderReservation
LiveBlock
MintTokenRequest
NormalizedFragmentField
NormalizeResult
PublishableKeyPayload
ResolvedPublishableConfig
ResolvedTheme
ServerContext
ShownCopy
SlotFieldSpec
SlotMemory
SparkletreeClient
SseMessage
StreamHandle
StreamOptions
StreamTarget
ThemePayload
UnfinishedCopy
VerifyFactsOptions
VerifyFactsResult
VisibilityOptions
VisibilityTarget
WhoamiResult
Type Aliases
AskFailureReason
AudioEvent
AudioProvider
CanonicalDims
CheckSetupFailureReason
ClientAskOptions
ClientCheckOptions
ClientFactsOptions
ContentSource
CopyField
CopyMode
DegradeReason
DeviceType
EventType
FactAvailability
FactAvailabilityLabels
FactName
FactsFailureReason
FieldSource
FragmentFieldSpec
FragmentKind
FragmentSwapPolicy
FragmentWarmth
MintTokenSource
Phase
PublishableKeyEnv
TimeOfDay
UnfinishedCopyDecision
UnfinishedCopyPolicy
VariantReservation
VerifyFactsReason
WhoamiReason
WireEventName
Variables
ASK_IDLE_TIMEOUT_MS
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
DEFAULT_TIMEOUT_MS
FACT_NAMES
fallbackForUnfinished
FRAGMENT_KIND_FLOORS
FRAGMENT_KINDS
FRAGMENT_WARMTHS
ISLAND_COPY_FIELDS
keepUnlessClearlyError
KEY_PARAM
LENGTH_PARAM_PREFIX
MAX_CUSTOM_DIMS
MAX_FACT_PRODUCTS
MAX_FALLBACK_CHARS
MAX_FRAGMENT_FIELDS
MAX_NOTES_LENGTH
MAX_QUESTION_CHARS
MOBILE_VIEWPORT_QUERY
PAGE_VIEW_EVENT
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
TYPING_STALL_MS
VARIANT_PARAM
VISITOR_CHANGE_WINDOW_MS
Functions
activePlayer
applyServerContext
applyTheme
ask
buildContentUrl
buildFactsUrl
buildStreamUrl
canonicalContextString
canonicalJson
checkSetup
computeContextHash
computeFieldBudget
computeSchemaHash
consentAllowed
copyLength
createClient
decideChrome
declaredToDims
decodePublishableKey
destroyActiveAudio
deviceTypeForViewport
encodePublishableKey
expandFieldSpecs
factText
fetchContent
fetchFacts
fetchFragments
findFactProduct
flattenCustomContext
formatPrice
fragmentSwapPolicy
hashDeclaredContext
hourInTimeZone
inDevelopment
isClearlyErrorText
isFirstPartyApiBase
isSameLiveBlock
isSecureApiBase
isValidTimeZone
isVisitorChange
lengthBudgets
markVisitorChange
mountAudio
negotiatedProtocol
normalizeDims
normalizeFieldSpecs
normalizeNotes
observeVisibility
openStream
parseLiveReady
plainText
readableTextColor
readSseStream
recordPageView
resolvePublishableConfig
safeActionUrl
safeLiveSrc
sessionId
setLengthParams
setViewerPrefersStandard
splitFieldSpecs
strongestFragmentSource
themeStyle
timeOfDayForHour
tokenName
tokenSource
track
verifyFacts
viewerPrefersStandard
visitorChangeGeneration
warnDev
watchPageVisibility
@sparkletree/react
Interfaces
AskError
AskLink
AskResult
CopyCardProps
CreativeState
CtaProps
FactFieldSpec
FactProduct
FactProps
FactsPayload
FieldState
FragmentFieldState
FragmentGroupProps
FragmentGroupState
FragmentTextProps
GeneratedFieldSpec
HeldControl
HeroParts
HeroProps
InitialCopy
IslandFrame
IslandReservationProps
LiveBlock
LiveProps
ProductCardProps
ServerContext
SlotFieldSpec
SparkletreeContextValue
SparkletreeProviderProps
StreamTextProps
UseAskOptions
UseAskResult
UseFactsOptions
UseFactsResult
UseFragmentsOptions
UseIslandOptions
UseIslandResult
VerifyFactsResult
Type Aliases
AskFailureReason
AskStatus
ContentSource
CopyField
FactAvailability
FactAvailabilityLabels
FactName
FactsFailureReason
FieldSource
FragmentFieldSpec
Phase
UseFragmentsResult
Variables
DEFAULT_MARK_LABEL
pageVariants
Functions
CopyCard
Cta
Fact
FragmentGroup
fragmentList
FragmentText
heldReserve
Hero
InlineMark
IslandReservation
Live
MarkGlyph
markVisitorChange
ProductCard
SparkletreeProvider
staticField
StreamText
useAsk
useFacts
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
FactName
FactName
=
typeof
FACT_NAMES
[
number
]
Defined in: facts.ts:320