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

cloudesire.js

v1.0.0

Published

ClouDesire API Client

Readme

Build Status Coverage Status

cloudesire.js

The official low-level ClouDesire client for Node.js and the browser.

Use in Node.js

Install via npm

npm install cloudesire.js --save

and use it

var CDClient = require('cloudesire.js')
var client = new CDClient()

var products = client.product.all()

NPM Stats

Use in the Browser

Install via bower

bower install cloudesire.js --save

Include the library in your application

<script src="bower_components/cloudesire.js/lib/client.web.js"></script>

and use it

var client = cloudesire.Client()
var products = client.product.all()

API Usage

Options

Properties

  • pageSize Number Size of the page to retrieve.
  • pageNumber Number Number of the page to retrieve.

PaginatedResponse

An array plus the the pagination properties

Properties

  • The totalPages on the server
  • The pageSize of the current page
  • The totalItems number of the total pages
  • The pageNumber of the current page

Category

Extends BaseResource

Product

Extends BaseResource

Methods to retrieve and filter products

allByCategory

Retrieve products filtered by category

Parameters

  • category Number id of the category
  • options Options= the options to pass to the request (optional, default {})

Examples

var client = new cloudesire.Client()
var productOfCategory2 = client.product.allByCategory(2, {pageSize: 5, pageNumber: 1})

Returns PaginatedResponse the list of products retrieved

allByCategoryAndFeatured

Retrieve featured products filtered by category

Parameters

  • category Number id of the category
  • options Options= the options to pass to the request (optional, default {})

Examples

var client = new cloudesire.Client()
var featuredProductsOfCategory5 = client.product.allByCategoryAndFeatured(5)

Returns PaginatedResponse the list of products retrieved

allByNameOrVendorName

Retrieve all the products filtered by name or by vendor name

Parameters

  • name String the name of the product or the vendor
  • options Options= the options to pass to the request (optional, default {})

Examples

var client = new cloudesire.Client()
var productsByCloudesire = client.product.allByNameOrVendorName('cloudesire')
var wordpressProducts = client.product.allByNameOrVendorName('wordpress')

Returns PaginatedResponse the list of products retrieved

allFeatured

Retrieve all the featured products

Parameters

  • options Options= the options to pass to the request (optional, default {})

Examples

var client = new cloudesire.Client()
var featuredProducts = client.product.allFeatured({pageSize: 50, pageNumber: 2})

Returns PaginatedResponse the list of products retrieved

allOwned

Retrieve all the owned products

Parameters

  • options Options= the options to pass to the request (optional, default {})

Examples

var client = new cloudesire.Client()
var mineProducts = client.product.allOwned()

Returns PaginatedResponse the list of products retrieved

searchAndSort

Search products by parts of the name, category, tags and sort results by top sold or top tried

Parameters

  • name String= the part of the name of the product (optional, default '%')
  • category Number= id of the category (optional, default undefined)
  • tag String= tag of the product (optional, default undefined)
  • ordering String= can be TOPTRIED or TOPSOLD (optional, default undefined)
  • options Options= the options to pass to the request

Examples

var client = new cloudesire.Client()
var productsThatContainsGAME = client.product.searchAndSort('game')
var productsThatContainsGAMEInCategory10 = client.product.searchAndSort('game', 10)
var productsInCategory5TaggedWithOPEN_SOURCE = client.product.searchAndSort(null, 10, 'OPEN_SOURCE')
var secondPageOfAllProductsOrderedByTopTried = client.product.searchAndSort(null, null, null, 'TOPTRIED', {pageNumber: 2})

Returns PaginatedResponse The result of the search

ProductVersion

Extends BaseResource

Methods to retrieve and filter products versions

ofProduct

Retrieve all the versions that belongs to a product

Parameters

  • id Number=(default this.mandatory('id')) the id the product
  • options Options= (optional, default {})

Examples

var client = new cloudesire.Client()
var productVersions = client.productVersion.ofProduct(5)

Returns PaginatedResponse the list of product versions retrieved

BaseResource

Commons methods to all the resources

all

Retrieve a list of resources

Parameters

  • options Options= (optional, default {})
  • queryParams Object= query parameters object (optional, default {})

Examples

var client = new cloudesire.Client()
var products = client.product.all({pageSize: 5, pageNumber: 1})
var currentPage = products.pageNumber
var totalPages = products.totalPages
var categories = client.category.all()

Returns PaginatedResponse the list of JSON repesentation of the objects retrieved

one

Retrieve a single resource

Parameters

  • id Number id the resource
  • queryParams Object= query parameters object (optional, default {})

Examples

var client = new cloudesire.Client()
var product = client.product.one(10, {featured: true})

Returns Object the JSON repesentation of the object retrieved