npm.io
0.1.1 • Published 22h ago

@spinekit/loyalty

Licence
SEE LICENSE IN LICENSE
Version
0.1.1
Deps
0
Size
119 kB
Vulns
0
Weekly
0

@spinekit/loyalty

Arc module for @classytic/loyalty — tiers, earning rules, redemptions, and referrals as composable arc resources.

Part of Spine, Classytic's ERP — the arc-module layer composed into an @classytic/arc application via createApp({ modules }).

Install

npm install @spinekit/loyalty @classytic/arc @classytic/mongokit mongoose zod

Kernels and the framework are peer dependencies — the host installs a single copy; this module bundles nothing.

Usage

import { createApp } from '@classytic/arc/factory';
import { createLoyaltyModule } from '@spinekit/loyalty';

const app = await createApp({
  modules: [
    createLoyaltyModule({
      connection,    // your mongoose connection
      permissions,   // role gates
      // BYO engine + host seams (extraActions, extraRoutes, bridges) as needed
    }),
  ],
});

This is a standard scaffold — expand Usage with the module's specific options.

License

Proprietary — Classytic Source-Available License (see LICENSE). Free for evaluation/development; production use requires a commercial license from Classytic LLC.

Keywords