Skip to content
ContractSpec
Start here

Package manual · examples

·Examples and implementation patterns

example.gamification-campaign

Cross-vertical finance campaign using ContractSpec gamification primitives.

examplesexamplev2.0.4experimentalservernode
@lssm-tech/example.gamification-campaign
bun add @lssm-tech/example.gamification-campaign
Package source ↗Manifest ↗

Manifest declarations describe the current workspace; they do not verify registry publication or runtime execution.

Package guide

This reference composes a personal-finance reset campaign with daily, weekly, and explicit missions; capped XP; quests and badges; friend/team streaks; cooperative goals; seeded leagues; boosts, shields, gems, gifts, and nudge intents. It also demonstrates approved-excuse policy, scheduled protection, personal records, append-only XP receipts, canonical emitted events, and promotion/demotion decisions. It is deliberately headless and persists nothing.

Run bun test, bun run typecheck, or import the campaign from @lssm-tech/example.gamification-campaign/campaign.

Relationships

THIS PACKAGEexample.gamification-campaign3 import paths

Arrows point from a package to its direct dependency. Counts are derived from captured workspace manifests.

2 declarations

Declared capabilities

This manifest does not declare a capability catalogue. Use the guide, import map and source to assess the package.

Scripts

  • buildcontractspec-bun-build build
  • build:bundlecontractspec-bun-build transpile
  • build:typescontractspec-bun-build types
  • cleanrimraf dist .turbo
  • lint:checknode ../../scripts/biome.cjs check .
  • prebuildcontractspec-bun-build prebuild
  • testbun test
  • typechecktsgo --noEmit