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

dragonpanda-api-client

v1.0.11

Published

Client library for interacting with the DragonPanda API.

Readme

DragonPanda API Client Library

Installation

This API client library is hosted on npm and able to be installed using npm or yarn.

# with npm
$ npm install dragonpanda-api-client
# or with yarn
$ yarn add dragonpanda-api-client

The library is intended to be used only with node at this time. You must provide it with an API key and adding it to a web application would expose your API key to the world. There are plans to make the API work with JWT for future use in web applications.

Getting Started

The first step in working with the client is creating a new instance of it. But first you need your API key. Once you have a key, you can provide it to the client either through an environment variable named DRAGONPANDA_API_KEY or directly in the source code when creating the client.

Either import or require() can be used to integrate the library with your code. The following sample shows the usage with require. In either case, once imported you need to create a new client.

const DragonPandaClient = require('dragonpanada-api-client').default
const ai = new DragonPandaClient({ key: 'fill-in-key-here' });

Once you have created the client, you can start to use it.

Basic Use

It only take one call to create a model, and then one more to get your predictions using the Dragon Panda client. Most of the operations in the API return a Promise and can be awaited or use callbacks with then and catch.

// model the 'profit' column from the file 'data.csv'
const model = await ai.fit('/path/to/data.csv', 'profit');

// get predictions from the model with the file 'more-data.csv'
// the `predictions` results will predict the 'profit' values
const predictions = await ai.predict(model.id, '/path/to/more-data.csv');

Errors

Errors will be propagated back to the user either as exceptions when using await, or as a reject or catch function of the promise.

Feedback

If you have client library feedback, the best way to reach us is in the forum: http://forum.staging.dragonpanda.net/c/client-libraries

If you find a bug, please file an issue: https://github.com/datarobot/dragonpandaclient-js/issues/new

Development

Fork the repository and send a pull request.