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

ecom-intel-engine

v0.1.1

Published

Category-agnostic e-commerce product intelligence: trend detection, price volatility, and opportunity/sourcing scores. Data-source agnostic — feed it product records from any scraper or API.

Readme

ecom-intel-engine

Category-agnostic e-commerce product intelligence. Trend detection, price-volatility, and opportunity/sourcing scores — for any product category.

It does not scrape. You feed it product records from any source (XCrawl, Keepa, Rainforest, Amazon PA-API, a CSV…) and it returns scores. Scrapers break and proxies get blocked; the scoring logic is the durable asset.

Why decoupled?

Real-time scraping is fragile (Amazon CAPTCHAs, proxy bans, layout changes). By separating data acquisition from analysis, the same engine keeps working no matter where the data comes from — and you can sell the analysis as data, an API, or an SDK.

Install

npm install ecom-intel-engine

Quick start

const { analyzeDataset } = require('ecom-intel-engine');

const products = [
  { asin: 'B01', title: 'Vitamin C Serum', price: 24.99, rating: 4.6, reviews: 8200, category: 'Skincare',
    reviewsHistory: [{ count: 6000, at: '2026-05-01' }, { count: 8200, at: '2026-06-01' }] },
  { asin: 'B02', title: 'Jade Roller', price: 9.99, rating: 4.3, reviews: 120, category: 'BeautyTools' },
];

const { products: analyzed, summary } = analyzeDataset(products);

console.log(summary.topOpportunities);
// [{ id: 'B01', title: 'Vitamin C Serum', score: 81.4, category: 'Skincare' }, ...]

What it computes

| Output | Meaning | |--------|---------| | trendingScore | Relative review growth over the available history window | | isTrending | True when baseline ≥ 100 reviews and growth ≥ 50% (noise-filtered) | | reviewVelocityPerDay | Reviews gained per day (needs timestamped history) | | priceVolatility | Coefficient of variation of price history | | opportunityScore | 0–100 sourcing/private-label viability (demand · margin · quality · competition) | | opportunityRank | Rank within the dataset |

Opportunity score dimensions

  • demand — log-scaled review count (proven sales)
  • margin — price headroom (sweet spot ~$20–60)
  • quality — rating fit (4.0–4.8 ideal; suspiciously perfect penalized)
  • competition — reviews vs. category median (below median = opening)

Weights are tunable:

analyzeDataset(products, { weights: { demand: 0.4, margin: 0.2, quality: 0.2, competition: 0.2 } });

API

  • analyzeDataset(products, opts?){ products, summary } (computes category medians for competition scoring)
  • analyzeProduct(product, ctx?) → single product report
  • detectTrend(product, opts?) → trend block
  • priceStability(product) → price volatility block
  • opportunityScore(product, ctx?){ score, breakdown }

Input shape

{
  id | asin: string,
  title: string,
  price: number,
  rating: number,        // 0-5
  reviews: number,
  category?: string,
  reviewsHistory?: [{ count: number, at: string }],
  priceHistory?:   [{ price: number, at: string }],
  isBestSeller?: boolean,
  isAmazonChoice?: boolean
}

Want the data, not the code?

A ready-made dataset of 829 real Amazon products scored with this engine (CSV + JSON + market report) is available here: 👉 Amazon Product Opportunity Scores

License

MIT