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

@the-brotherhood-1984/ecommerce-detector

v1.0.2

Published

Detect ecommerce platforms from URLs

Readme

Ecommerce Detector

A simple CLI tool to detect ecommerce platforms from URLs.

Installation

Local Development

npm install
npm run build

From NPM Registry

# Install from npm registry
npm install @the-brotherhood-1984/ecommerce-detector

# Or use npx directly
npx @the-brotherhood-1984/ecommerce-detector <URL>

From GitLab Registry

# Install from GitLab npm registry
npm install @the-brotherhood-1984/ecommerce-detector

# Or use npx directly
npx @the-brotherhood-1984/ecommerce-detector <URL>

Usage

Single URL

npx ecommerce-detector <URL>

Batch Processing from File

npx ecommerce-detector --file <filename>
npx ecommerce-detector -f <filename>

Examples

# Single URL detection
npx ecommerce-detector https://example.com
npx ecommerce-detector fravega.com

# Batch processing from file
npx ecommerce-detector --file urls.txt
npx ecommerce-detector -f urls.txt

How it works

The tool:

  1. Cleans the input URL (discards pathname, keeps only domain)
  2. Tests the URL against a list of platform detectors
  3. Returns the detected platform or "No ecommerce platform detected"

File Format for Batch Processing

When using --file or -f, provide a text file with:

  • One URL per line
  • Lines starting with # are treated as comments and ignored
  • Empty lines are ignored
  • Both plain domains and full URLs are supported

Example urls.txt:

# Sample URLs for testing
fravega.com
https://example.com
store.mysite.com

Current Detectors

  • VTEX: Checks for /api/catalog_system/pub/products/search endpoint returning 2xx status
  • Shopify: Detects Shopify stores by looking for CDN links (https://cdn.shopify.com) and other Shopify indicators in the HTML content

Development

npm run dev    # Run with ts-node
npm run build  # Build TypeScript to JavaScript
npm start      # Run built JavaScript
npm test       # Run test suite

Adding New Detectors

Create a new detector class implementing the PlatformDetector interface and add it to the detectors array in src/detector.ts.

Testing

The project includes a comprehensive test suite in the tests/ directory. Run tests with:

npm test

See tests/README.md for detailed testing information.

CI/CD Pipeline

This project uses GitLab CI/CD with semantic-release to automatically build, test, and publish the application:

Pipeline Stages

  • Validate Stage: Runs on merge requests to ensure code quality
  • Build Stage: Compiles TypeScript to JavaScript
  • Package Stage: Creates npm package (.tgz)
  • Publish MR Stage: Publishes merge request packages to GitLab registry for testing
  • Publish Release Stage: Uses semantic-release for automated versioning and publishing

Pipeline Features

  • Automatic Versioning: Uses conventional commits to determine next version
  • Changelog Generation: Automatically generates release notes
  • Dual Publishing: Publishes to both npm registry and GitLab registry
  • GitLab Releases: Creates GitLab releases with assets
  • Merge Request Testing: Allows testing packages before merging to main

Pipeline Triggers

  • Merge Requests: Runs validate, build, package, and publish-mr stages
  • Main Branch: Runs all stages including semantic-release for production publishing

Package Availability

After successful pipeline execution, the package is available at:

  • NPM Registry: @the-brotherhood-1984/ecommerce-detector
  • GitLab Registry: @the-brotherhood-1984/ecommerce-detector

Semantic Release Configuration

The project uses semantic-release with the following plugins:

  • @semantic-release/commit-analyzer - Analyzes commits for version bumps
  • @semantic-release/release-notes-generator - Generates changelog
  • @semantic-release/npm - Updates package.json and publishes to npm
  • @semantic-release/git - Creates git tags and commits
  • @semantic-release/gitlab - Creates GitLab releases

Commit Convention

Follow conventional commits for automatic versioning:

  • feat: - New features (minor version bump)
  • fix: - Bug fixes (patch version bump)
  • BREAKING CHANGE: - Breaking changes (major version bump)