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

@mayurgodhani/ecomtools-cli

v1.0.6

Published

E-commerce tools MCP server for Shopify development

Downloads

2

Readme

ecomTools

A comprehensive Shopify e-commerce toolkit for AI assistants that provides helpful utilities and code generation for e-commerce development.

npm version License: MIT

Features

  • Generate product schema markup for SEO
  • Calculate discounts and pricing
  • Generate common Shopify components like cart drawers
  • Access code snippets and references for e-commerce development

Quick Start

You can run ecomTools using npx without installing:

npx -y @mayurgodhani/ecomtools-cli@latest start

This will start the ecomTools MCP server that can be used with compatible AI assistants.

MCP Configuration

If you're using an IDE or environment that supports Model Context Protocol (MCP), you can add the following configuration to your mcp.json file:

{
  "mcpServers": {
    "ecomtools-cli": {
      "command": "npx",
      "args": [
        "-y",
        "@mayurgodhani/ecomtools-cli@latest start"
      ]
    }
  }
}

This configuration allows your IDE to automatically start the ecomTools MCP server when needed.

Installation

If you prefer to install globally:

npm install -g @mayurgodhani/ecomtools-cli

Then run it with:

ecomtools start

Usage with AI Assistants

ecomTools is designed to work with AI assistants that support the Model Context Protocol (MCP). Once the server is running, your AI assistant can leverage it for e-commerce development tasks.

Available Tools and Examples

1. Calculate Discount

Calculate discounted prices with detailed breakdown.

Example:

Calculate the discount for a product with price $99.99 and a 25% discount using ecomTools.

Result:

Original price: $99.99
Discount: 25% ($25.00)
Final price: $74.99

2. Generate Product Schema

Create JSON-LD product schema for SEO.

Example:

My product name is Premium Coffee Maker, description is High-quality automatic coffee maker with timer, price is $149.99. Currency I am selling in is USD. The product image is at https://example.com/images/coffee-maker.jpg. Generate product schema using ecomTools.

Result:

<script type="application/ld+json">
{
  "@context": "https://schema.org/",
  "@type": "Product",
  "name": "Premium Coffee Maker",
  "description": "High-quality automatic coffee maker with timer",
  "image": "https://example.com/images/coffee-maker.jpg",
  "offers": {
    "@type": "Offer",
    "price": 149.99,
    "priceCurrency": "USD"
  }
}
</script>

3. Find Code Snippets

Find code snippets by keywords.

Example:

Find code snippets related to "product card" using ecomTools.

Result:

# Shopify Product Card

A responsive product card component for displaying products in collections with image, title, price, and add to cart button.

4. Generate Code

Generate common e-commerce components.

Example:

Generate a cart drawer component for mobile view using ecomTools.

Result:

# Generated Shopify cart-drawer Code

Based on your requirements: cart drawer component for mobile view

<!-- Cart Drawer HTML -->
<div id="cart-drawer" class="cart-drawer">
  ...
</div>

Extending

ecomTools is designed to be extensible. You can add your own code snippets to the data directory.

Adding Code Snippets

Create a new text file in the data directory with the following format:

Title: Your Code Snippet Title
Description: A brief description of what this code does
Code:
// Your actual code here

The file name should reflect the type of snippet (e.g., cart-drawer.txt).

Development

To set up the development environment:

git clone https://github.com/mayur2010/ecomtools-cli.git
cd ecomtools-cli
npm install

Run locally:

npm start

Publishing

To publish to npm:

  1. Update the version in package.json
  2. Run npm login to log in to your npm account
  3. Run npm publish --access public

License

MIT

Credits

This project was built with: