Licence
SEE LICENSE IN LICENSE
Version
0.1.1
Deps
0
Size
101 kB
Vulns
0
Weekly
0
@spinekit/revenue
Arc composition shell for @classytic/revenue — exports the BYO revenue engine at fastify.arc.modules.revenue and composes the host's transaction (revenue-ledger) resource through one seam.
Part of Spine, Classytic's ERP — the arc-module layer composed into an
@classytic/arc application via
createApp({ modules }).
Install
npm install @spinekit/revenue @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 { createRevenueModule } from '@spinekit/revenue';
const app = await createApp({
modules: [
createRevenueModule({
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.