SDK-32: Add shared audience SDK core package#2810
Closed
nattb8 wants to merge 2 commits into
Closed
Conversation
Shared foundation package for the web SDK and pixel. Provides: - Cookie-based anonymous ID (imtbl_anon_id) for cross-surface stitching - HTTP transport with publishable key auth - Batched message queue with localStorage durability - Device fingerprint and page context collection - Types matching the audience service API contract Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New
@imtbl/audience-corepackage that provides the shared foundation both the web SDK and pixel build on. This lets web SDK and pixel development happen in parallel.What's in the core:
imtbl_anon_id) -- shared between pixel and SDK for identity stitching across surfaces/v1/audience/messageswith publishable key auth,keepalive: truefor page unload reliabilitytrack,page,screen,identify,alias)Key design decisions:
collectPageProperties()andcollectUtmParams()are exported separately so the pixel can use them for auto-capture and the SDK can use them inpage()Test plan
Linear: https://linear.app/imtbl/issue/SDK-32
🤖 Generated with Claude Code