LLM-first developer tool for generating Component Catalogues
Note: npm publishing is not yet available. Install directly from GitHub.
# Using npm
npm install github:adieyal/component-catalogue
# Using pnpm
pnpm add github:adieyal/component-catalogue
# Using yarn
yarn add github:adieyal/component-catalogue
# Pin to a specific commit (recommended for stability)
npm install github:adieyal/component-catalogue#<commit-sha>
The fastest way to get started is with the init command:
# Create a new directory for your project
mkdir my-components && cd my-components
# Initialize the catalogue (add --with-claude for Claude Code skills)
npx github:adieyal/component-catalogue init --name "My Components"
# Start the dev server
npm run catalogue
This creates:
catalogue.config.ts - Configuration fileregistry/ - Component registry with a sample buttonsrc/components/ - Component source filestsconfig.json - TypeScript configurationpackage.json scriptsIf you prefer to set up manually:
npm install github:adieyal/component-catalogue
Create catalogue.config.ts in your project root:
export default {
// Catalogue title (shown in header)
title: 'My Component Library',
// Path to registry directory
registryDir: './registry',
// Output directory for builds
outDir: './dist/catalogue',
// Base path for deployment (e.g., '/docs/')
basePath: '/',
// Dev server port
port: 5173,
// Component source configuration
components: {
entry: './src/components/index.ts',
},
};
mkdir -p registry/components
mkdir -p registry/examples
mkdir -p src/components
Create src/components/index.ts:
// Export all your web components here
// export * from './my-button.js';
// export * from './my-card.js';
# Validate the registry (should show 0 components)
npx catalogue validate
# Start the dev server
npx catalogue dev
{
"scripts": {
"catalogue": "catalogue dev",
"catalogue:build": "catalogue build",
"catalogue:preview": "catalogue preview",
"catalogue:validate": "catalogue validate",
"catalogue:test": "catalogue test"
}
}
If you’re developing the catalogue tool alongside your project:
# Clone the catalogue repo
git clone https://github.com/adieyal/component-catalogue.git
# In your project, link to the local clone
npm install ../component-catalogue
# Or use pnpm link
pnpm link ../component-catalogue