regify
v1.0.0
Published
Turn components into shareable registries - The Universal Component Registry CLI.
Downloads
10
Maintainers
Readme
regify
Turn your components into shareable registries.
regify is a powerful CLI tool and programmatic API that transforms your UI components, hooks, and libraries into JSON registries compatible with modern CLI tools (like ShadCN CLI). It automatically handles dependency detection, type classification, and file structure analysis.
Features
- 🚀 CLI & Programmatic API: Use it in your terminal or integrate it into your apps.
- 📂 Directory & File Support: Process individual files or entire component directories.
- 🔍 Smart Dependency Detection: Automatically identifies NPM and local workspace dependencies.
- 🏷️ Type Classification: Detects if a file is a UI component, Hook, Lib, or Style.
- ⚙️ Configurable: Use
regify.jsonto define output directories and dependency mappings. - 🛠️ Built with ts-morph: High-fidelity analysis of your TypeScript/JavaScript source code.
Installation
npm install -g regifyQuick Start (CLI)
Initialize Config:
regify initGenerate Registry:
regify generate --input ./src/components/ui/Button.tsx
Programmatic Usage
import { regify } from "regify";
const result = await regify("./src/components/ui", {
output: "./registry"
});
console.log(result.message);License
ISC

