@classytic/arc-catalog
v0.1.2
Published
Arc module for @classytic/catalog — company-wide product catalog (products + attributes/variants + categories + exclusions) composed into arc apps. BYO engine; host policy (storefront routes, stock projections, field filters) injected through per-resource
Readme
@classytic/arc-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 @classytic/arc-catalog @classytic/catalog @classytic/arc @classytic/mongokit mongoose zodKernels 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 '@classytic/arc-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
