npm.io
0.3.0 • Published yesterday

@nexus-cms/core

Licence
SEE LICENSE IN LICENSE
Version
0.3.0
Deps
0
Size
93 kB
Vulns
0
Weekly
0

@nexus-cms/core

Framework-agnostic core for Nexus CMS. Zero runtime dependencies.

Provides the shared contracts used by every other package:

  • Schema (schema.ts) — the build-time description of editable regions (CmsSchema, Region, capabilities).
  • Content model (content.ts) — the override model (OverrideMap, ContentDocument, localized values).
  • Diff/merge (diff.ts) — original/diff preview and revert.
  • Versions (version.ts) — snapshots and rollback.
  • Storage (storage.ts) — the StorageAdapter interface backends implement.
  • Features + license (features.ts, license.ts) — effective capability resolution and Pro gating seam.
  • Config (config.ts) — the nexus.config.ts shape + defineConfig.
  • Directives (directives.ts) — @cms-ignore / @cms-readonly / @cms-name / @cms-richtext parsing.
import { resolveCapabilities, resolveFeatureFlags, resolveLicense } from "@nexus-cms/core";

Keywords