@kalininilya/registry
v0.1.0
Published
Spektr UI Component Registry
Maintainers
Readme
@spektr/registry
Component registry for Spektr UI. This package contains metadata for all components in the Spektr UI library, compatible with the shadcn/ui CLI.
Usage
As a hosted registry
Host the /registry folder as a static site or API endpoint. Users can then install components using:
npx shadcn-ui@latest add button --registry https://your-domain.com/registryAs a package
Install the registry package to access component metadata programmatically:
npm install @spektr/registryimport { registry, getRegistryItem } from "@spektr/registry";
const buttonComponent = getRegistryItem("button");
console.log(buttonComponent);Registry Structure
Each component in the registry includes:
name: Component identifiertype: Component type (registry:ui, registry:lib, registry:hook)description: Component descriptiondependencies: Required npm packagesregistryDependencies: Other components from the registryfiles: Component source filestailwind: Tailwind configuration (optional)cssVars: CSS variables for theming (optional)
Building
pnpm buildThis will:
- Compile TypeScript files
- Generate JSON registry files in
/registry
License
Apache-2.0
