Skip to content

A modular scaffolding system for Vue.js inspired by shadcn-vue.

License

jm-sky/vue-blocks-registry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Vue Blocks Registry


🚀 Quick Start

# Initialize your project
npx vue-blocks-registry init

# 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

📦 Available on npm: vue-blocks-registry


💡 Example

# 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

🧱 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

# Initialize project configuration
vue-blocks-registry init

# Add components/features/bundles
vue-blocks-registry add <name>

# 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.json or as fallback)

When you run vue-blocks-registry add <component>, it will:

  1. Detect your package manager
  2. Install any required dependencies using the appropriate command
  3. 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.

About

A modular scaffolding system for Vue.js inspired by shadcn-vue.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •