# @lssm-tech/module.gamification

Reusable gamification projections and theme-aware React surfaces over the canonical gamification runtime.

## Source and release context

- Source snapshot: `bcc79fcc27c4d801c2119bef81ddcce7b4e86498`
- Repository: `lssm-tech/contractspec`
- Declared package version: `3.0.4`
- Package path: `packages/domains/gamification/module`
- Manifest path: `packages/domains/gamification/module/package.json`
- Manifest Git blob: `16ee263cbc546cad11869af090a18b8e00a9f1d4`
- Manifest origin: pinned GitHub manifest fetch
- Manual: [@lssm-tech/module.gamification](https://lssm.co/docs/packages/module.gamification/)
- 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/gamification/module)
- [Manifest source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/gamification/module/package.json)
- [Readme source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/gamification/module/README.md)
- [Guide source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/module.gamification.txt)

## Package metadata

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

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

Primary area: [Personal workflows, learning and progress](https://lssm.co/docs/areas/personal-and-learning/)

## Package guide

```json
{
  "status": "available",
  "sourcePath": "packages/domains/gamification/module/README.md",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/gamification/module/README.md",
  "blobSha": "d403540418d0abce06fee835943a0d28311e7a23",
  "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.gamification

Reusable cadence, streak, XP, quest, badge, and leaderboard projections plus
theme-aware React surfaces. Evaluation delegates to the canonical gamification
spec/runtime libraries, preserving existing learning-journey compatibility.

The module is storage neutral and deliberately excludes payouts, creator reward
ledgers, and application-owned campaign policy.

## Commands

- `bun run test`
- `bun run typecheck`
- `bun run lint:check`
- `bun run build`


## Declared capabilities

### Module Gamification

Capability ID: `package.lssm.tech.module.gamification`

Reusable gamification projections and theme-aware React surfaces over the canonical gamification runtime.

Use cases:

- Adopt reusable gamification projections and theme-aware react surfaces over the canonical gamification runtime

Constraints:

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

Other capability declarations:

```json
{
  "status": "active",
  "aliases": [
    "module",
    "gamification"
  ],
  "pythonEquivalents": [],
  "alternatives": [],
  "relationships": [],
  "resolutionPriority": 50
}
```

Capability imports:

```json
[
  {
    "from": "@lssm-tech/module.gamification",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.gamification/core",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.gamification/core/projection",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.gamification/core/types",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.gamification/gamification.feature",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.gamification/i18n",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.gamification/presentation",
    "symbols": []
  },
  {
    "from": "@lssm-tech/module.gamification/presentation/GamificationOverview",
    "symbols": []
  }
]
```

## Catalogue metadata

```json
{
  "family": "solutions",
  "kind": "module",
  "status": "active",
  "adoptionMode": "adoptable",
  "stability": "stable",
  "platforms": [
    "server"
  ],
  "runtimes": [
    "node"
  ],
  "entrypoints": [
    ".",
    "./core",
    "./core/projection",
    "./core/types",
    "./gamification.feature",
    "./i18n",
    "./presentation",
    "./presentation/GamificationOverview"
  ],
  "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.gamification",
    "from": "@lssm-tech/module.gamification",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.gamification",
    "from": "@lssm-tech/module.gamification/core",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.gamification",
    "from": "@lssm-tech/module.gamification/core/projection",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.gamification",
    "from": "@lssm-tech/module.gamification/core/types",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.gamification",
    "from": "@lssm-tech/module.gamification/gamification.feature",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.gamification",
    "from": "@lssm-tech/module.gamification/i18n",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.gamification",
    "from": "@lssm-tech/module.gamification/presentation",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.module.gamification",
    "from": "@lssm-tech/module.gamification/presentation/GamificationOverview",
    "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.gamification` — subpath `.`
  - `unconditional`: `./src/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/gamification/module/src/index.ts); verified source file.

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

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

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

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

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

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

- `@lssm-tech/module.gamification/presentation/GamificationOverview` — subpath `./presentation/GamificationOverview`
  - `unconditional`: `./src/presentation/GamificationOverview.tsx` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/domains/gamification/module/src/presentation/GamificationOverview.tsx); 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"
    },
    "./core/projection": {
      "types": "./dist/core/projection.d.ts",
      "browser": "./dist/browser/core/projection.js",
      "bun": "./dist/core/projection.js",
      "node": "./dist/node/core/projection.js",
      "default": "./dist/core/projection.js"
    },
    "./core/types": {
      "types": "./dist/core/types.d.ts",
      "browser": "./dist/browser/core/types.js",
      "bun": "./dist/core/types.js",
      "node": "./dist/node/core/types.js",
      "default": "./dist/core/types.js"
    },
    "./gamification.feature": {
      "types": "./dist/gamification.feature.d.ts",
      "browser": "./dist/browser/gamification.feature.js",
      "bun": "./dist/gamification.feature.js",
      "node": "./dist/node/gamification.feature.js",
      "default": "./dist/gamification.feature.js"
    },
    "./i18n": {
      "types": "./dist/i18n/index.d.ts",
      "browser": "./dist/browser/i18n/index.js",
      "bun": "./dist/i18n/index.js",
      "node": "./dist/node/i18n/index.js",
      "default": "./dist/i18n/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/GamificationOverview": {
      "types": "./dist/presentation/GamificationOverview.d.ts",
      "browser": "./dist/browser/presentation/GamificationOverview.js",
      "bun": "./dist/presentation/GamificationOverview.js",
      "node": "./dist/node/presentation/GamificationOverview.js",
      "default": "./dist/presentation/GamificationOverview.js"
    }
  }
}
```

## Dependencies

Metadata status: complete pinned manifest.

### Runtime dependencies

- [@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:^`
- [@lssm-tech/lib.gamification-runtime](https://lssm.co/docs/packages/lib.gamification-runtime/): `workspace:^`
- [@lssm-tech/lib.gamification-spec](https://lssm.co/docs/packages/lib.gamification-spec/): `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`
- `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
{
  "build": "contractspec-bun-build build",
  "build:bundle": "contractspec-bun-build transpile",
  "build:types": "contractspec-bun-build types",
  "clean": "rimraf dist .turbo",
  "lint": "bun lint:fix",
  "lint:check": "node ../../../../scripts/biome.cjs check .",
  "lint:fix": "node ../../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../../scripts/biome.cjs check --write .",
  "prebuild": "contractspec-bun-build prebuild",
  "test": "bun test",
  "typecheck": "tsgo --noEmit"
}
```

## Declared documentation links

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

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

## Existing agent-guide projection

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