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

sendowl-js

v0.0.8

Published

A node.js wrapper for the SendOwl API

Readme

sendowl-js

A Node.JS Wrapper for the SendOwl API

sendowl-js is currently in a development state. All available functionality in the SendOwl API will be supported.

Features

  • Basic CRUD functionality through the SendOwl API for
    • Orders
    • Products
    • Subscriptions
    • Discounts
      • Discount Codes
  • License Management
    • Issue Product & Subscription Licenses
    • Validate individual licenses
    • Index all valid or invalid licenses for product.

Installation

sendowl-js requires Node.js v10+ to run.

npm install sendowl-js

Usage

import { SendOwl } from 'sendowl-js'

const sendOwl = new SendOwl({
    host: 'www.sendowl.com', // this is always your host
    key: 'Your_SendOwl_Key',
    secret: 'Your_SendOwl_Secret',
});

Filter for orders.index()

filter = {
    from: '2022-09-01',     // starting date when filtering a date range
    to: '2022-09-03',       // ending date when filtering a date range
    orderable: 'Product-[productId]',   // replace [productId] with your product's ID to filter by product
    state: 'complete',      // filters orders by state
    referred_by: '500',     // filter by referral user id
    sort: 'newest_first'    // how to sort the data
}

Filter for orders.search()

filter = {
    // These are mutually exclusive - you can only use one or the other, not both.
    term: 'searchTerm',     // Search for this term in all order fields
    email: 'searchEmail'    // Search for this specifically in the email field.
}

Updating an order with orders.update()

orderUpdate = {
    // The full list of fields can be found on SendOwl's API documentation.
    order: {
        "buyer_name": "Johnny Appleseed"
    }
}

The product search API simply does not work on SendOwl's end. I don't know why. I put in a ticket.

Updating a product with products.update()

productUpdate = {
    // The full list of fields can be found on SendOwl's API documentation.
    product: {
        "name": "Johnny Appleseed's Favorite Axe"
    }
}

Retrieving licenses for products

const productId = [productId]; // replace [productId] with your product ID
sendowl.products.licenses(productId, true); // this will only return AVAILABLE licenses
sendowl.products.licenses(productId, false); // this will only return USED licenses
sendowl.products.licenses(productId); // this will return ALL licenses

Checking if a product license is valid

keyObject = {
    key: 'license_code_here',
}

sendowl.products.checkLicense(productId, keyObject);

Dependencies

axios - that's it.

License

Apache License 2.0