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

@datafire/greenpeace

v4.0.0

Published

DataFire integration for Greenwire Public API

Readme

@datafire/greenpeace

Client library for Greenwire Public API

Installation and Usage

npm install --save @datafire/greenpeace
let greenpeace = require('@datafire/greenpeace').create();

.then(data => {
  console.log(data);
});

Description

Greenpeace Greenwire allows you connect with other volunteers, activists and groups working on environmental campaigns all across the world!

Actions

events.get

Return the upcoming events (e.g. start date >= today). Gets an array of Event object. Mandatory query param of domain determines the site / country the event belongs to.

greenpeace.events.get({
  "domain": ""
}, context)

Input

  • input object
    • domain required string: the site the groups belongs to, example: netherlands
    • limit string: the number of desired records

Output

events.UUID.get

Get one Event object by specifying its UUID in the url path.

greenpeace.events.UUID.get({
  "UUID": ""
}, context)

Input

  • input object
    • UUID required string

Output

groups.get

Gets an array of Group object. Mandatory query param of domain determines the site / country the group belongs to.

greenpeace.groups.get({
  "domain": ""
}, context)

Input

  • input object
    • domain required string: the site the groups belongs to, example: netherlands
    • limit string: the number of desired records

Output

groups.UUID.get

Get one Group object by specifying its UUID in the url path.

greenpeace.groups.UUID.get({
  "UUID": ""
}, context)

Input

  • input object
    • UUID required string

Output

volunteers.get

Gets an array of Volunteer object. Mandatory query param of domain determines the site / country the volunteers are from.

greenpeace.volunteers.get({
  "domain": ""
}, context)

Input

  • input object
    • domain required string: the site the users are registered on, example: netherlands
    • limit string: the number of desired records. Default is 5.
    • must_have_default_avatar boolean: 1 or 0. filter on people that have the default avatar or not.

Output

volunteers.UUID.get

Get one specific Volunteer object by specifying its UUID in the url path.

greenpeace.volunteers.UUID.get({
  "UUID": ""
}, context)

Input

  • input object
    • UUID required string

Output

Definitions

Coordinates

  • Coordinates object
    • latitude string: Signed decimal format, example: 52.1234
    • longitude string: Signed decimal format, example -77.022223

DateTime

  • DateTime string: The date in YYYY-MM-DD HH:MM:SS format, example: 2015-12-31 23:59:59

Event

Group

GroupLite

GroupType

  • GroupType string (values: Country group, Campaign Project group, Local group, Discussion group, Interest group, Skills-based group)

HTML

  • HTML string: A string containing sanitized HTML code

HTTP_Code

  • HTTP_Code string: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes

HTTP_Status

  • HTTP_Status integer: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes

HeaderError

HeaderSuccess

ISO_3166-1_alpha-2

  • ISO_3166-1_alpha-2 string: Country code see. https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2

Location

  • Location object
    • city string
    • coordinates Coordinates
    • country string
    • postcode string
    • state string
    • streetname string

LocationSimple

Pagination

  • Pagination object
    • limit integer: the nubmer of items per page
    • page integer: the current page
    • total integer: the total number of pages

ResourceType

  • ResourceType string (values: group, groups, event, events, volunteer, volunteers): The name of the requested object/model/resource. Plural if a collection.

Serial

  • Serial string: The primary key in Drupal, e.g the entity/node id

URL

  • URL string: A resource location, example: https://greenwire.greenpeace.org

UUID

  • UUID string: Universally unique identifier in canonical format, example: de305d54-75b4-431b-adb2-eb6b9e546014

Volunteer

VolunteerLite