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

us-legislators

v1.2.0

Published

US legislators data in JSON

Downloads

8

Readme

US Legislators

US Legislators data in JSON.

Installing

bower install us-legislators

Data

The following files contain the required data:

legislator.json

{
  "id": {
    "bioguide": "C000127",
    "thomas": "00172",
    "lis": "S275",
    "govtrack": 300018,
    "opensecrets": "N00007836",
    "votesmart": 27122,
    "fec": [
      "S8WA00194",
      "H2WA01054"
    ],
    "cspan": 26137,
    "wikipedia": "Maria Cantwell",
    "house_history": 10608,
    "ballotpedia": "Maria Cantwell",
    "maplight": 4541,
    "washington_post": "gIQAZxKkDP",
    "icpsr": 39310
  },
  "name": {
    "first": "Maria",
    "last": "Cantwell",
    "official_full": "Maria Cantwell"
  },
  "bio": {
    "birthday": "1958-10-13",
    "gender": "F",
    "religion": "Roman Catholic"
  },
  "terms": [
    {
      "type": "rep",
      "start": "1993-01-05",
      "end": "1994-12-01",
      "state": "WA",
      "district": 1,
      "party": "Democrat"
    },
    ...
    {
      "type": "sen",
      "start": "2013-01-03",
      "end": "2019-01-03",
      "state": "WA",
      "party": "Democrat",
      "class": 1,
      "url": "http://www.cantwell.senate.gov",
      "address": "311 Hart Senate Office Building Washington DC 20510",
      "phone": "202-224-3441",
      "fax": "202-228-0514",
      "contact_form": "http://www.cantwell.senate.gov/public/index.cfm/email-maria",
      "office": "311 Hart Senate Office Building",
      "state_rank": "junior",
      "rss_url": "http://www.cantwell.senate.gov/public/index.cfm/rss/feed"
    },
    ...
  ],
  "social": {
    "twitter": "CantwellPress",
    "youtube": "SenatorCantwell",
    "youtube_id": "UCN52UDqKgvHRk39ncySrIMw"
  },
  "committees": [
    {
      "committee_id": "SSCM01",
      "rank": 1,
      "title": "Chairman",
      "party": "majority"
    },
    ...
  ]
}

committees.json

{
  "type": "house",
  "name": "House Committee on Agriculture",
  "url": "http://agriculture.house.gov/",
  "thomas_id": "HSAG",
  "house_committee_id": "AG",
  "subcommittees": [
    {
      "name": "Conservation, Energy, and Forestry",
      "thomas_id": "15",
      "address": "1301 LHOB; Washington, DC 20515",
      "phone": "(202) 225-2171"
    },
    ...
  ],
  "address": "1301 LHOB; Washington, DC 20515-6001",
  "phone": "(202) 225-2171",
  "rss_url": "http://agriculture.house.gov/rss.xml",
  "jurisdiction": "The House Committee on Agriculture has jurisdiction over federal agriculture policy and oversight of some federal agencies, and it can recommend funding appropriations for various governmental agencies, programs, and activities, as defined by House rules.",
  "jurisdiction_source": "http://en.wikipedia.org/wiki/House_Committee_on_Agriculture"
}

The data is generated from congress-legilators data provided by https://github.com/unitedstates/congress-legislators. This original data is in YAML format and the JSON version can be found in data folder.

Modifying

npm install us-legislators

Run the following commands to update the files:

$ bower install $ bower update $ make

Contribute to the project by forking this repo and submitting pull requests.

Examples