vue-blocks-registry
Vue Blocks Registry
🧩 What is vue-blocks-registry
vue-blocks-registry is a modular system for Vue 3 projects that combines UI components, functional features, and complete page bundles into reusable building blocks.
It's inspired by shadcn-vue, but goes beyond UI — providing ready-to-use logic, stores, routes, and API layers.
You can use it to quickly assemble new projects or standardize architecture across multiple apps.

🚀 Quick Start
Option 1: Automated Setup (Recommended)
Create a new project with everything configured automatically:
# Create a new Vue 3 project with shadcn-vue and vue-blocks-registry
npx vue-blocks-registry setup my-app
# Or include foundational files (main.ts, App.vue, etc.)
npx vue-blocks-registry setup my-app --scaffold
# Navigate to your project
cd my-app
# Install dependencies
pnpm install
# Start development server
pnpm dev
Option 2: Manual Setup
If you already have a Vue 3 project, or prefer manual setup:
-
Create a Vue 3 project:
pnpm create vue@latest -
Configure shadcn-vue: Follow the shadcn-vue installation guide to set up Tailwind CSS and shadcn-vue components.
-
Initialize vue-blocks-registry:
npx vue-blocks-registry init
💡 Usage Examples
# Add a component
npx vue-blocks-registry add button
# Add an authentication feature (store, service, composables)
npx vue-blocks-registry add authFeat
# Add a full ready-to-use auth module (pages + routes + logic)
npx vue-blocks-registry add authFull
# Generate foundational files (main.ts, App.vue, etc.)
npx vue-blocks-registry scaffold
📦 Available on npm: vue-blocks-registry
🧱 Structure
- components/ – UI primitives (buttons, inputs, dialogs)
- features/ – functional units (auth, billing, user profile)
- bundles/ – full flows (login pages, dashboards, onboarding)
- templates/ – complete app starters
📚 Documentation
🔧 Installation
# Install globally (optional)
npm install -g vue-blocks-registry
# Or use directly with npx (recommended)
npx vue-blocks-registry init
📋 CLI Commands
# Create a new project with everything configured
vue-blocks-registry setup <project-name>
# Initialize existing project configuration
vue-blocks-registry init
# Add components/features/bundles
vue-blocks-registry add <name>
# Generate foundational files (main.ts, App.vue, etc.)
vue-blocks-registry scaffold
# List available items
vue-blocks-registry list
# Get help
vue-blocks-registry --help
📦 Package Manager Support
The CLI automatically detects and uses the package manager in your project:
- pnpm (detected by
pnpm-lock.yaml) - yarn (detected by
yarn.lock) - npm (detected by
package-lock.jsonor as fallback)
When you run vue-blocks-registry add <component>, it will:
- Detect your package manager
- Install any required dependencies using the appropriate command
- Copy component files to your project
No need to worry about having the "wrong" package manager installed!
🤝 Contributing
Contributions are welcome! Please read our Contributing Guide for details.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.11.1 | ^3.5.22 | MIT | |
| 0.11.0 | ^3.5.22 | MIT | |
| 0.10.1 | ^3.5.22 | MIT | |
| 0.9.1 | ^3.5.22 | MIT | |
| 0.9.0 | ^3.5.22 | MIT | |
| 0.8.3 | ^3.5.22 | MIT | |
| 0.8.2 | ^3.5.22 | MIT | |
| 0.8.1 | ^3.5.22 | MIT | |
| 0.8.0 | ^3.5.22 | MIT | |
| 0.7.3 | ^3.5.22 | MIT | |
| 0.7.2 | ^3.5.22 | MIT | |
| 0.7.1 | ^3.5.22 | MIT | |
| 0.7.0 | ^3.5.22 | MIT | |
| 0.6.0 | ^3.5.22 | MIT | |
| 0.5.1 | ^3.5.22 | MIT | |
| 0.5.0 | ^3.5.22 | MIT | |
| 0.4.12 | ^3.5.22 | MIT | |
| 0.4.10 | ^3.5.22 | MIT | |
| 0.4.9 | ^3.5.22 | MIT | |
| 0.4.8 | ^3.5.22 | MIT | |
| 0.4.7 | ^3.5.22 | MIT | |
| 0.4.6 | ^3.5.22 | MIT | |
| 0.4.5 | ^3.5.22 | MIT | |
| 0.4.4 | ^3.5.22 | MIT | |
| 0.4.3 | ^3.5.22 | MIT | |
| 0.4.2 | ^3.5.22 | MIT | |
| 0.4.1 | ^3.5.22 | MIT | |
| 0.4.0 | ^3.5.22 | MIT | |
| 0.3.6 | ^3.5.22 | MIT | |
| 0.3.5 | ^3.5.22 | MIT |
Showing the latest 30 of 51. See every release on npm