Skip to main content

Install

Core and framework

npm install @c-a-f/core
npm install @c-a-f/infrastructure-react # or -vue, -angular

Optional packages

PackagePurpose
@c-a-f/validationValidation interfaces and Zod/Yup adapters
@c-a-f/workflowWorkflow and state machine on top of Ploc
@c-a-f/permissionPermission interfaces and adapters (RBAC, CASL)
@c-a-f/i18ni18n interfaces and adapters
@c-a-f/testingTest helpers (mock Ploc, UseCase, renderWithCAF) — use as dev dependency

Peer dependencies

  • React: react, react-dom (and optionally react-router-dom for routing)
  • Vue: vue, @vue/router (if using routing)
  • Angular: @angular/core, @angular/router

Install these in your app when using the corresponding infrastructure package.