Getting started
Set up the COR registry CLI in any React + Tailwind project (Next.js, Vite, TanStack Start, and friends).
1. npm private registry
Ensure your project can resolve the @projectcor scope from COR's private npm registry. Most COR apps already have this in .npmrc.
@projectcor:registry=https://registry.npmjs.org/
//registry.npmjs.org/:_authToken=${NPM_TOKEN}2. Registry HTTP token
Component JSON is served from the docs registry over HTTP and protected with a Bearer token. Add this to your project env:
COR_REGISTRY_TOKEN=your-shared-token3. Initialize
npx @projectcor/ui initThis registers the @projectcor namespaced registry in components.json and installs the COR base: Radix configuration, Work Sans, utilities, and design tokens.
4. Add components
npx @projectcor/ui add attachmentUnder the hood this runs shadcn add @projectcor/attachment and copies source files into your project.
5. Update
npx @projectcor/ui updateDiff against the registry and overwrite when you want the latest version. Base updates are safe overwrites; component updates may need a quick review if you customized locally.