Source snapshot bcc79fcc · Declared package version 2.1.4. This page combines the checked-in package guide and manifest; commands and runtime behavior were not executed in this review.
Portable contracts for building gamified experiences in any ContractSpec vertical. The package describes campaigns, cadence slots, outcomes, streaks, quests, badges, XP, leaderboards, leagues, social play, and reward inventories.
It contains no persistence, network calls, provider adapters, UI, user discovery, or notification delivery. Use @lssm-tech/lib.gamification-runtime for pure, deterministic evaluation and replay.
Grouped public subpaths are available for ./campaign, ./cadence,
./conditions, ./scoring, ./social, ./economy, ./events,
./validation, ./fixtures, ./types, and ./docs.
Campaign validation rejects empty or duplicate public IDs, invalid IANA timezones and calendar dates, offset-aware overlapping explicit slots, invalid XP rules/caps/modifiers, condition cycles and malformed primitives, malformed badge tiers, records, rewards and league bounds, undeclared wallet assets, and unsupported policy references. The contracts remain plain JSON data; the host supplies participant authorization, evidence references, persistence, and delivery infrastructure.
The optional posting-streak surface projects unique calendar posting days with an explicit IANA timezone and clock. Yesterday retains the active streak until the current day ends; future posts do not count. The projection is read-only and awards no XP or compensation. It includes a Sunday–Saturday strip with active-streak day numbering.
Declared capabilities.
Lib Gamification Spec
Contrats et validation portables de campagnes de ludification entre secteurs.
Use it to
Adopt portable cross-vertical gamification campaign contracts and validation
Requires
TypeScript
Choose another boundary when
The @lssm-tech/lib.gamification-spec package constraints do not match the target runtime or platform.
These are package-manifest entry points. Named symbols listed above come from the capability catalogue; this is not an exhaustive TypeScript symbol reference.