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

node-plotly

v1.0.0

Published

An un-official plot.ly API client

Downloads

8

Readme

Plot.ly Node API

intro

node-plotly is an un-official JavaScript client library for https://api.plot.ly/v2/.

See below for documentation. Or visit https://api.plot.ly/v2/ for more details on specific endpoints

documentation

configuration / authentication

Configuring the API client with your own API credential and optionally an On-Prem host is as simple as calling the .config method like so:

var PlotlyAPI = require('node-plotly');

PlotlyAPI.config({
  username: 'string', // default: undefined
  apiKey: 'string', // default: undefined
  protocol: 'string', // default: https
  host: 'string', // default: api.plot.ly
});

users

PlotlyAPI.Users.create

PlotlyAPI.Users.update

PlotlyAPI.Users.retrieve

files

PlotlyAPI.Files.update

PlotlyAPI.Files.retrieve

grids

PlotlyAPI.Grids.create

PlotlyAPI.Grids.update

PlotlyAPI.Grids.content

plots

PlotlyAPI.Plots.create

PlotlyAPI.Plots.update

PlotlyAPI.Plots.content

Dashboards

PlotlyAPI.Dashboards.content(fileId, shareKey?)

PlotlyAPI.Dashboards.content('user:1').then(function(result) {
  console.log(result);
});
{
  collaborators: {count: 0, results: []},
  comments: null,
  content: '...',
  creation_time: '2016-07-18T20:01:55.490291Z',
  date_modified: '2016-07-18T20:01:55.490Z',
  deleted: null,
  embed_url: 'https://local.plot.ly/~._-aA1/114.embed',
  fid: '._-aA1:114',
  filename: 'Map Dashboard',
  filetype: 'dashboard',
  image_urls: {},
  img_url: '',
  owner: '._-aA1',
  parent: -1,
  parented: true,
  preview: '',
  referencers: [],
  references: [],
  share_key: null,
  share_key_enabled: null,
  stars: null,
  subfolder_count: null,
  title: '',
  views: 0,
  web_url: 'https://local.plot.ly/~._-aA1/114/',
  world_readable: true,
  api_urls: {
    files: 'https://api-local.plot.ly/v2/files/._-aA1:114',
    dashboards: 'https://api-local.plot.ly/v2/dashboards/._-aA1:114',
    parent: 'https://api-local.plot.ly/v2/folders/home?user=._-aA1'
  }
}

license

MIT. See license file.