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

vue-bits-mcp-client

v1.0.0

Published

Client library for Vue Bits MCP Server - Easy access to animated Vue components

Readme

Vue Bits MCP Client

A powerful and easy-to-use client library for accessing the Vue Bits MCP Server. Get instant access to 40+ high-quality animated Vue components with intelligent search, dependency analysis, and code generation.

🚀 Features

  • Easy Integration: Simple API for connecting to Vue Bits MCP Server
  • Multiple Transports: Support for both HTTP and stdio transports
  • Intelligent Search: Find components by name, category, functionality, or tags
  • Code Access: Get complete component source code and documentation
  • Dependency Analysis: Analyze and resolve component dependencies
  • Installation Guides: Get project-specific setup instructions
  • Recommendations: Get personalized component suggestions
  • TypeScript Support: Full TypeScript definitions included

📦 Installation

npm install vue-bits-mcp-client

🎯 Quick Start

Basic Usage

import { VueBitsMCPClient } from 'vue-bits-mcp-client';

const client = new VueBitsMCPClient({
  serverUrl: 'https://vue-mcp.onrender.com',
  transport: 'http'
});

await client.connect();

// Search for components
const components = await client.searchComponents({
  query: 'text animation',
  category: 'TextAnimations',
  limit: 5
});

// Get component code
const component = await client.getComponentCode(components[0].id);
console.log(component.code);

await client.disconnect();

Quick Utilities

For simple operations, use the quick utility functions:

import { quickSearch, quickGetComponent } from 'vue-bits-mcp-client';

// Quick search (auto-connects and disconnects)
const components = await quickSearch('animation');

// Quick get component
const component = await quickGetComponent(components[0].id);

🛠️ API Reference

Client Configuration

const client = new VueBitsMCPClient({
  serverUrl: 'https://vue-mcp.onrender.com',  // Server URL
  transport: 'http',                          // 'http' or 'stdio'
  timeout: 30000,                            // Request timeout (ms)
  retries: 3                                 // Number of retries
});

Core Methods

searchComponents(options)

Search for Vue components with flexible filtering.

const components = await client.searchComponents({
  query: 'text animation',           // Search query
  category: 'TextAnimations',        // Filter by category
  subcategory: 'Split Text',         // Filter by subcategory
  tags: ['gsap', '3d'],             // Filter by tags
  limit: 10,                        // Max results
  sortBy: 'popularity'              // Sort order
});

getComponentCode(componentId, options)

Get complete component source code and documentation.

const component = await client.getComponentCode('component-id', {
  includeProps: true,     // Include props documentation
  includeExamples: true   // Include usage examples
});

getInstallationGuide(componentId, projectType)

Get installation instructions for a specific project type.

const guide = await client.getInstallationGuide('component-id', 'vue3');
console.log(guide.installCommands.npm);  // npm install command
console.log(guide.setupInstructions);    // Setup steps

analyzeDependencies(componentIds, options)

Analyze dependencies for multiple components.

const analysis = await client.analyzeDependencies(['comp1', 'comp2'], {
  packageManager: 'npm',
  includeDevDependencies: false
});

Discovery Methods

listCategories(options)

List all available component categories.

const categories = await client.listCategories({
  includeSubcategories: true,
  includeStats: true
});

getPopularComponents(options)

Get the most popular components.

const popular = await client.getPopularComponents({
  category: 'Animations',
  limit: 10
});

getRecommendations(options)

Get personalized component recommendations.

const recommendations = await client.getRecommendations({
  categories: ['Animations', 'Components'],
  complexity: 'medium',
  performance: 'high',
  tags: ['gsap', 'interactive'],
  limit: 5
});

getSimilarComponents(componentId, options)

Find components similar to a given component.

const similar = await client.getSimilarComponents('component-id', {
  limit: 5
});

🌐 Transport Options

HTTP Transport (Recommended)

Connect to a remote Vue Bits MCP server via HTTP.

const client = new VueBitsMCPClient({
  transport: 'http',
  serverUrl: 'https://vue-mcp.onrender.com'
});

Stdio Transport

Connect to a local Vue Bits MCP server process.

const client = new VueBitsMCPClient({
  transport: 'stdio'
  // Requires vue-bits-mcp server to be installed locally
});

📚 Examples

Check out the /examples directory for complete usage examples:

  • basic-usage.js - Basic client operations
  • http-client.js - HTTP transport example
  • quick-utilities.js - Quick utility functions

Run examples:

npm run example          # Basic usage
npm run example:http     # HTTP client

🔧 Development

# Install dependencies
npm install

# Build the library
npm run build

# Run tests
npm test

# Run linting
npm run lint

# Format code
npm run format

📝 TypeScript Support

The library includes full TypeScript definitions:

import { VueBitsMCPClient, VueBitsComponent, SearchOptions } from 'vue-bits-mcp-client';

const client: VueBitsMCPClient = new VueBitsMCPClient();
const components: VueBitsComponent[] = await client.searchComponents(options);

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

MIT License - see the LICENSE file for details.

🔗 Related