New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dashboards-stripe-charges

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dashboards-stripe-charges

Stripe charges plugin for segmentio/dashboards

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by50%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 08 May 2014

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc