npm.io
0.1.1 • Published 21h ago

@spinekit/catalog

Licence
SEE LICENSE IN LICENSE
Version
0.1.1
Deps
0
Vulns
0
Weekly
0

@spinekit/catalog

Product catalog — products, categories, variants — as composable arc resources.

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

Install

npm install @spinekit/catalog @classytic/catalog @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 { createCatalogModule } from '@spinekit/catalog';

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

The module's bootstrap return is recorded at fastify.arc.modules['catalog'] for container-free cross-module wiring.

License

MIT Classytic

Keywords