npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

comp-hub

v0.25.18

Published

A Vue-based component preview and sharing platform that makes component reuse simple and efficient.

Readme

comp-hub

A Vue-based component preview and sharing platform that makes component reuse simple and efficient.

📖 Introduction

comp-hub is a component management platform designed for frontend developers, dedicated to solving pain points such as component reuse, missing documentation, and low standardization. By providing real-time preview, dependency management, and version control, it makes component sharing and usage simple and efficient.

🚀 Core Features

  • Real-time Preview & Dependency Management: Online real-time component preview with automatic dependency version matching, ensuring what you see is what you get after download
  • Lightweight Component Architecture: Components contain only minimal runtime units, seamlessly integrating into existing project environments
  • Simple Upload Process: Complete component publishing in three steps, supporting preview configuration, documentation, and version management
  • Documentation Support: Standard Markdown documentation support to help users quickly understand and use components
  • Version Management: Semantic versioning with multi-version coexistence and switching
  • Cross-project Reuse: Standardized component structure ensures high compatibility and portability across different projects

📦 Supported Frameworks

| Framework | Version | Status | |-----------|---------|--------| | Vue | 2.x | ✅ Supported | | Vue | 3.x | ✅ Supported | | React | - | ⏳ Planned |

💻 Installation & Usage

Requirements

  • Node.js >= 16.0.0
  • npm >= 8.0.0

Installation

Method 1: Global Installation (Recommended)

Install comp-hub CLI globally:

npm install comp-hub@latest -g

Method 2: Local Dev Dependency Installation

Install only in the current project:

npm install comp-hub@latest -D

Start Service

Global Installation

Execute in the project directory:

comphub

Local Installation

If installed locally with -D, use npx:

npx comphub

After successful startup, access the platform at:

http://localhost:5000

CLI Options

comphub [options]

| Option | Short | Type | Default | Description | |--------|-------|------|---------|-------------| | --port | -p | number | 5000 | Service port | | --dir | -d | path | "./" | Resource directory relative path | | --log | -l | level | "info" | Log level | | --version | -v | - | - | Show version number | | --help | -h | - | - | Show help information |

Configuration File

Create .comphub.json or .comphub.js in the project root:

JSON Format:

{
  "port": 5000,
  "dir": "./src",
  "log": "info"
}

JS Format:

module.exports = {
  port: 5000,
  dir: './src',
  log: 'info'
}

| Config | Type | Default | Description | |--------|------|---------|-------------| | port | number | 5000 | Service startup port | | dir | string | "./" | Component code root directory path | | log | string | "info" | Log level: "debug", "info", "warn", "error" |

📚 Documentation

Complete usage guide and API documentation:

comp-hub Official Documentation

🔧 Component Specifications

  • Components must be uploaded as folders, with the folder name as the component name
  • Component folder must contain index.vue as the entry file
  • Recommended to provide README.md describing component functionality and usage
  • Support comp.json file for component metadata configuration

🎯 Version Management

comp-hub supports semantic versioning:

  • X.Y.Z format (e.g., 1.2.3)
  • X: Major version, incompatible API changes
  • Y: Minor version, backward-compatible functionality additions
  • Z: Patch version, backward-compatible bug fixes

🤝 Contributing

Contributions and suggestions are welcome!

📝 License

MIT License