module.social-analytics
Provider-agnostic social analytics dashboard surfaces.
@lssm-tech/module.social-analyticsbun add @lssm-tech/module.social-analyticsManifest declarations describe the current workspace; they do not verify registry publication or runtime execution.
Package guide
Provider-agnostic React dashboard surfaces for creator and content analytics.
The module consumes the social tracking contracts from @lssm-tech/lib.contracts-integrations. Consumers provide a SocialAnalyticsDashboardPort; provider SDKs, credentials, collection jobs, and storage adapters remain outside this package.
Public surfaces
core— dashboard/query ports, view models, gap detection, and loaders.core/outcomes— provider-neutral outcome attribution with explicit evidence, source gaps, and observed/correlated/experiment-supported causal labels.core/connected-account— capability grants, account qualification and en/fr connection-state copy over the contract capability matrix; only metric reading can show as granted.presentation/hooks— asynchronous dashboard, granularity, reload, and CSV export state.presentation/components— accessible creator, content, tracking health, freshness/source, explorer, and dashboard components.
Supported explorer granularities are 30 minutes, hour, day, and week. Missing buckets and contract-level source_gap observations are represented explicitly. Every query carries its caller-provided consumerKey unchanged through loading and CSV export so retention and analytics partitions remain aligned. Dashboard detail requests also carry an explicit platform to prevent creator or content identifiers from crossing social-network namespaces.
Commands
bun run testbun run typecheckbun run lint:checkbun run build
Relationships
Arrows point from a package to its direct dependency. Counts are derived from captured workspace manifests.
4 declarations
@lssm-tech/lib.contracts-integrationsworkspace:^
Read the package manual ↗@lssm-tech/lib.contracts-spec-coreworkspace:^
Read the package manual ↗@lssm-tech/lib.design-systemworkspace:^
Read the package manual ↗reactcatalog:
Declared capabilities
Provider-agnostic social analytics dashboard surfaces.
Scripts
publish:pkgbun publish --tolerate-republish --ignore-scripts --verbosepublish:pkg:canarybun publish:pkg --tag canarybuildcontractspec-bun-build buildbuild:bundlecontractspec-bun-build transpilebuild:typescontractspec-bun-build typesdevcontractspec-bun-build devcleanrimraf dist .turbolintbun lint:fixlint:fixnode ../../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../../scripts/biome.cjs check --write .lint:checknode ../../../../scripts/biome.cjs check .testbun testprebuildcontractspec-bun-build prebuildtypechecktsgo --noEmit