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 🙏

© 2024 – Pkg Stats / Ryan Hefner

product-catalog

v1.5.0

Published

Efficient lodash backed, package.json formatted digital downloads product-catalog with minimal requirements and maintenance.

Downloads

18

Readme

product-catalog

Efficient lodash backed, package.json formatted digital downloads product-catalog with minimal requirements and maintenance.

Concept

Are product catalogs secret information... or public? A public product catalog, especially one stored in a public globally accessible network, can become your public API. In context of affiliate networks and helping new-comers seed their own product databases, the product-catalog model is priceless.

  1. clone or fork
  2. rename to something meanigful (ex. fantasyui-com-product-catalog)
  3. Edit/Add Products

Structure


{
  "deleted": false, // you must explicitly state that the record is not deleted

  "title": "Shodan", // full product name in proper case
  "name": "shodan", // npm friendly name, no spaces, all lowercase

  "description": "Beautiful lightweight theme with hundreds of components",
  "version": "1.0.0",

  "currency": "usd", // valid currency code

  // listing properties as bool for ease of filtering
  "popular": true,
  "featured": false,

  "author": "Fantasy User Interface - Motion Picture Quality Bootstrap 4 Fantasy UI Kits",
  "authorId":"fantasyui-com", // id or username of the seller

  "homepage": "http://fantasyui.com/demo/shodan/content/product-intro/",

  // url to public product demo
  "demo": "http://fantasyui.com/demo/hal/content/product-intro/",

  // direct link to image, keep this on a CDN
  "screenshot": "http://fantasyui.com/demo/hal/content/product-intro/images/product-intro.jpg"

  // additional screenshots, must be array
  "screenshots": [
    "http://fantasyui.com/demo/mega-bundle/screenshot.jpg",
    "http://fantasyui.com/demo/mega-bundle/aardwolf/content/product-intro/images/product-intro.jpg",
    "http://fantasyui.com/demo/mega-bundle/nanook/content/product-intro/images/product-intro.jpg",
    "http://fantasyui.com/demo/mega-bundle/minerva/content/product-intro/images/product-intro.jpg"
  ],

  // price in cents
  "licensing": [
    { "type": "Single", "amount": 15000 },
    { "type": "Multiuse", "amount": 150000 },
    { "type": "Extended", "amount": 1500000 }
  ],

  // the property bag holds product details
  "properties": [

    { "label": "Product Type", "text": "HTML Template" },
    { "label": "Release Date", "text": "January, 2016" },
    { "label": "Last Updated", "text": "March, 2017" },
    { "label": "File Types", "text": "HTML, CSS" },
    { "label": "File Size", "text": "Under 5MB" },

    { "label": "Layout Columns", "text": "Variable" },
    { "label": "Responsive Layout", "text": "Yes" },
    { "label": "Fluid Layout", "text": "Yes" },
    { "label": "Fixed-width Layout", "text": "Yes" },

    { "label": "Less", "text": "No" },
    { "label": "Sass", "text": "No" },
    { "label": "PostCSS", "text": "Yes" },

    { "label": "Min Browser", "text": "IE 9, 10, 11 Latest Chrome Latest Firefox Latest Safari" },
  ],

  // basic tag printing
  "tags": [ "modern", "bootstrap", "bootstrap 4" ]


}

API

Installation

Clone this repository, customize and include in your project.

Usage Example


console.log( 'ACTIVE:', db.filter(['deleted', false]).result().map(item=>item.name) );

console.log( 'DELETED:', db.filter('deleted').result().map(item=>item.name) );