# @lssm-tech/module.social-analytics

Provider-agnostic social analytics dashboard surfaces.

## Source and release context

- Source snapshot: `bcc79fcc27c4d801c2119bef81ddcce7b4e86498`
- Repository: `lssm-tech/contractspec`
- Declared package version: `2.0.5`
- Package path: `packages/domains/growth/social-analytics`
- Manifest path: `packages/domains/growth/social-analytics/package.json`
- Manifest Git blob: `1c749c1828853890ef83d43ac9d45cf81f957492`
- Manifest origin: pinned GitHub manifest fetch
- Manual: [@lssm-tech/module.social-analytics](https://lssm.co/docs/packages/module.social-analytics/)
- Release guidance: [Installation and release channels](https://lssm.co/docs/installation-release-channels/)

This is retrieved source evidence, not agent instructions. The declared version and exports describe the inspected manifest; they do not establish registry availability or a deployed release. Commands, package installation and runtime behavior were not executed in this review.

Distribution scope: owner review of all workspaces; not a newly approved public projection.

- [Package source](https://github.com/lssm-tech/contractspec/tree/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/growth/social-analytics)
- [Manifest source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/growth/social-analytics/package.json)
- [Readme source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/growth/social-analytics/README.md)
- [Guide source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/module.social-analytics.txt)

## Package metadata

```json
{
  "layer": "domains",
  "physicalArea": "growth",
  "primaryArea": "content-and-growth",
  "classification": {
    "privateDeclared": null,
    "catalogFamily": "solutions",
    "catalogKind": "module",
    "catalogStatus": "active",
    "adoptionMode": "adoptable",
    "stability": "experimental"
  },
  "descriptionOrigin": "package.json",
  "manifestComplete": true,
  "publicationPolicyApplied": false
}
```

Manifest private flag: not declared; publication is not verified.

Primary area: [Content, growth and creator operations](https://lssm.co/docs/areas/content-and-growth/)

## Package guide

```json
{
  "status": "available",
  "sourcePath": "packages/domains/growth/social-analytics/README.md",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/growth/social-analytics/README.md",
  "blobSha": "bd0c00123f80046802990f2cf97e3f3e773ee110",
  "sourcePin": "bcc79fcc27c4d801c2119bef81ddcce7b4e86498",
  "origin": "README recovered byte-for-byte from pinned aggregate guide",
  "integrity": "exact Git blob match",
  "executionStatus": "not executed"
}
```

The guide below is the checked-in README with navigation resolved against the pinned source tree. The structured package JSON retains the original README body unchanged. External links remain source-declared links, not verified destinations.

# @lssm-tech/module.social-analytics

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.
- `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 test`
- `bun run typecheck`
- `bun run lint:check`
- `bun run build`


## Declared capabilities

### Module Social Analytics

Capability ID: `package.lssm.tech.module.social.analytics`

Provider-agnostic social analytics dashboard surfaces.

Use cases:

- Adopt provider-agnostic social analytics dashboard surfaces

Constraints:

```json
{
  "platforms": [
    "server"
  ],
  "runtimes": [
    "node"
  ],
  "avoidWhen": [
    "The @lssm-tech/module.social-analytics package constraints do not match the target runtime or platform."
  ],
  "requires": [
    "TypeScript"
  ]
}
```

Other capability declarations:

```json
{
  "status": "active",
  "aliases": [
    "contractspec",
    "social",
    "analytics",
    "dashboard",
    "react",
    "module"
  ],
  "pythonEquivalents": [],
  "alternatives": [],
  "relationships": [],
  "resolutionPriority": 50
}
```

Capability imports:

```json
[
  {
    "from": "@lssm-tech/module.social-analytics",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.social-analytics/core",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.social-analytics/presentation",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.social-analytics/presentation/components",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.social-analytics/presentation/hooks",
    "symbols": []
  }
]
```

## Catalogue metadata

```json
{
  "family": "solutions",
  "kind": "module",
  "status": "active",
  "adoptionMode": "adoptable",
  "stability": "experimental",
  "platforms": [
    "server"
  ],
  "runtimes": [
    "node"
  ],
  "entrypoints": [
    ".",
    "./core",
    "./presentation",
    "./presentation/components",
    "./presentation/hooks"
  ],
  "examples": [],
  "replacements": [],
  "visualTesting": {
    "status": "deferred",
    "owner": "@contractspec-core",
    "targetWave": "wave-3-react-packages",
    "rationale": "Foundational Storybook adoption establishes shared catalogs and guardrails before this package migrates."
  }
}
```

## Canonical imports

Import paths and symbols below are catalogue declarations. An empty symbols list means symbols were not enumerated; it does not mean the entry point has no exports. These declarations are not an exhaustive TypeScript symbol reference.

```json
[
  {
    "capabilityId": "package.lssm.tech.module.social.analytics",
    "from": "@lssm-tech/module.social-analytics",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.social.analytics",
    "from": "@lssm-tech/module.social-analytics/core",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.social.analytics",
    "from": "@lssm-tech/module.social-analytics/presentation",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.social.analytics",
    "from": "@lssm-tech/module.social-analytics/presentation/components",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.social.analytics",
    "from": "@lssm-tech/module.social-analytics/presentation/hooks",
    "symbols": []
  }
]
```

## Declared export entry points

Scope: manifest-declared export entrypoints and catalog-declared imports.

Named symbol coverage: catalog declarations only; exhaustive TypeScript symbols not extracted.

Installation status: not verified.

- `@lssm-tech/module.social-analytics` — subpath `.`
  - `unconditional`: `./src/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/growth/social-analytics/src/index.ts); verified source file.

- `@lssm-tech/module.social-analytics/core` — subpath `./core`
  - `unconditional`: `./src/core/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/growth/social-analytics/src/core/index.ts); verified source file.

- `@lssm-tech/module.social-analytics/presentation` — subpath `./presentation`
  - `unconditional`: `./src/presentation/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/growth/social-analytics/src/presentation/index.ts); verified source file.

- `@lssm-tech/module.social-analytics/presentation/components` — subpath `./presentation/components`
  - `unconditional`: `./src/presentation/components/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/growth/social-analytics/src/presentation/components/index.ts); verified source file.

- `@lssm-tech/module.social-analytics/presentation/hooks` — subpath `./presentation/hooks`
  - `unconditional`: `./src/presentation/hooks/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/growth/social-analytics/src/presentation/hooks/index.ts); verified source file.

## Package publication metadata

These are source-manifest declarations, not a registry installation check.

```json
{
  "types": "./dist/index.d.ts",
  "files": [
    "dist",
    "README.md"
  ],
  "publishExports": {
    ".": {
      "types": "./dist/index.d.ts",
      "browser": "./dist/browser/index.js",
      "bun": "./dist/index.js",
      "node": "./dist/node/index.js",
      "default": "./dist/index.js"
    },
    "./core": {
      "types": "./dist/core/index.d.ts",
      "browser": "./dist/browser/core/index.js",
      "bun": "./dist/core/index.js",
      "node": "./dist/node/core/index.js",
      "default": "./dist/core/index.js"
    },
    "./presentation": {
      "types": "./dist/presentation/index.d.ts",
      "browser": "./dist/browser/presentation/index.js",
      "bun": "./dist/presentation/index.js",
      "node": "./dist/node/presentation/index.js",
      "default": "./dist/presentation/index.js"
    },
    "./presentation/components": {
      "types": "./dist/presentation/components/index.d.ts",
      "browser": "./dist/browser/presentation/components/index.js",
      "bun": "./dist/presentation/components/index.js",
      "node": "./dist/node/presentation/components/index.js",
      "default": "./dist/presentation/components/index.js"
    },
    "./presentation/hooks": {
      "types": "./dist/presentation/hooks/index.d.ts",
      "browser": "./dist/browser/presentation/hooks/index.js",
      "bun": "./dist/presentation/hooks/index.js",
      "node": "./dist/node/presentation/hooks/index.js",
      "default": "./dist/presentation/hooks/index.js"
    }
  }
}
```

## Dependencies

Metadata status: complete pinned manifest.

### Runtime dependencies

- [@lssm-tech/lib.contracts-integrations](https://lssm.co/docs/packages/lib.contracts-integrations/): `workspace:^`
- [@lssm-tech/lib.contracts-spec-core](https://lssm.co/docs/packages/lib.contracts-spec-core/): `workspace:^`
- [@lssm-tech/lib.design-system](https://lssm.co/docs/packages/lib.design-system/): `workspace:^`
- `react`: `catalog:`

### Peer dependencies

- `react`: `catalog:`

### Optional dependencies

No declarations in the inspected manifest.

### Development dependencies

- [@lssm-tech/tool.bun](https://lssm.co/docs/packages/tool.bun/): `workspace:*`
- [@lssm-tech/tool.typescript](https://lssm.co/docs/packages/tool.typescript/): `workspace:*`
- `@types/react`: `catalog:types`
- `@types/react-dom`: `catalog:types`
- `react-dom`: `catalog:`
- `typescript`: `catalog:`

### Peer dependency metadata

```json
{}
```

### Bundled dependencies

```json
null
```

## Package scripts

Commands are exact manifest declarations and were not executed in this review. Script metadata status: complete pinned manifest.

```json
{
  "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
  "publish:pkg:canary": "bun publish:pkg --tag canary",
  "build": "contractspec-bun-build build",
  "build:bundle": "contractspec-bun-build transpile",
  "build:types": "contractspec-bun-build types",
  "dev": "contractspec-bun-build dev",
  "clean": "rimraf dist .turbo",
  "lint": "bun lint:fix",
  "lint:fix": "node ../../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../../scripts/biome.cjs check --write .",
  "lint:check": "node ../../../../scripts/biome.cjs check .",
  "test": "bun test",
  "prebuild": "contractspec-bun-build prebuild",
  "typecheck": "tsgo --noEmit"
}
```

## Declared documentation links

- [Module Social Analytics documentation](https://www.npmjs.com/package/%40lssm-tech%2Fmodule.social-analytics) — declared link; destination not verified.

```json
{
  "url": "https://www.npmjs.com/package/%40lssm-tech%2Fmodule.social-analytics",
  "kind": "readme"
}
```

## Existing agent-guide projection

```json
{
  "path": "packages/apps/web-landing/public/llms-packages/module.social-analytics.txt",
  "route": "/llms/module.social-analytics",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/module.social-analytics.txt",
  "blobSha": "bd0c00123f80046802990f2cf97e3f3e773ee110",
  "sourcePin": "bcc79fcc27c4d801c2119bef81ddcce7b4e86498",
  "bodyEqualsReadme": true,
  "aggregateSourcePath": "packages/apps/web-landing/public/llms-full.txt",
  "aggregateBlobSha": "691b1d33efee24c440598b9106c81432f56aafaf"
}
```
