Install editorcn packages via the shadcn registry.
Editorcn packages are available as a shadcn registry, allowing you to install the source code directly into your project using the shadcn CLI. This is the recommended way to install editorcn packages — it copies the editor source straight into your project so you have full control over styling and behavior, rather than depending on a published node_modules package.
If you'd rather install from npm instead, see npm vs registry below for the tradeoffs.
Setup
Add the editorcn registry to your components.json:
For the full API reference, props, and customization options, see the Editor and Block Editor pages.
How it works
The registry is served as static JSON files from https://editorcn.vercel.app/r/:
registry.json — catalog listing all available packages with metadata
editor.json — item schema for the toolbar editor (18 files, 17 dependencies)
block-editor.json — item schema for the block editor (19 files, 26 dependencies)
When you run shadcn add @editorcn/editor, the CLI:
Fetches https://editorcn.vercel.app/r/editor.json
Reads the files array to know which source files to install
Copies each file's content into your project at the configured paths
Installs all dependencies into your project
npm vs registry
npm
Registry (recommended)
Install location
node_modules
Your project source
Customizable
No (published dist)
Yes (edit the source)
Versioning
Semver via npm
Latest from source
Peer dependency handling
Manual install
CLI prompts for missing ones
Use case
Quick setup, no source edits needed
Full control over styling and behavior
Use the registry unless you have a specific reason to prefer a versioned npm dependency (for example, pinning to an exact release in a monorepo with strict dependency management).
Source
The registry is built from the same source as the npm packages. See scripts/build-registry.mjs for the build script.