Socket
Socket
Sign inDemoInstall

dashboards-stripe-charges

Package Overview
Dependencies
20
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dashboards-stripe-charges

Stripe charges plugin for segmentio/dashboards


Version published
Weekly downloads
4
decreased by-20%
Maintainers
1
Install size
601 kB
Created
Weekly downloads
 

Readme

Source

dashboards-stripe-charges

A Stripe charges plugin for segmentio/dashboards.

Use this plugin to visualize Stripe charges over time.

Installation

$ npm install dashboards-stripe-charges

Example

var Dashboards = require('dashboards');
var charges = require('dashboards-stripe-charges');

new Dashboards()
  .use(charges('stripe-key'))
  .run();
Filter Customers

You can further filter customers using stripe-charges filters:

new Dashboards()
  .use(charges('stripe-key', { filter: filter }))
  .run();

function filter (charge) {
  return charge.customer !== 'cus_8239d2jd9j'; // filter enterprise customer X
}

Metrics

The metrics exposed by this plugin are divided by date granularity.

Daily:

  • stripe.charges today
  • stripe.total charged today
  • stripe.charges yesterday
  • stripe.total charged yesterday
  • stripe.charges 2 days ago
  • stripe.total charged 2 days ago

Weekly:

  • stripe.charges 0-1 weeks ago
  • stripe.total charged 0-1 weeks ago
  • stripe.charges 1-2 weeks ago
  • stripe.total charged 1-2 weeks ago

Monthly:

  • stripe.charges 0-1 months ago
  • stripe.active new charges 0-1 months ago
  • stripe.charges 1-2 months ago
  • stripe.total charged 1-2 months ago

Total:

  • stripe.charges
  • stripe.total charged

Weekly Sparkline:

  • stripe.charges for the last week
  • stripe.charge amounts for the last week

Quickstart

Here's a full example of a Geckoboard dashboard showing Stripe subscription dashboards:

var Dashboards = require('dashboards');
var charges = require('dashboards-stripe-charges');
var pipe = require('parallel-ware-pipe');
var geckoboard = require('geckoboard')('api-key');

new Dashboards()
  .use(charges('stripe-key'))
  .use(pipe('stripe.total charged 0-1 months ago', 'stripe.total charged 1-2 months ago', widget('widget-id').percentageChange))
  .run();

License

MIT

Keywords

FAQs

Last updated on 08 May 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc