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

bnbhostapi

v1.0.6

Published

This is a Node JS wrapper to Airbnb's API Endpoints for hosts.

Readme

bnbhostapi

I, David Plappert, am an Airbnb Superhost. I, also, want to be able to build tools to support my business, the way I want. Currently, I pay about $40 per month for tools that only do some of what I want. SmartBnb, Properly, QuickBooks, and others are a good start. However, I want more control, customization and automation.

This wrapper exposes API end points that allow you to:

  • login to Airbnb and get an oauth token (this has to be frist before you do anything else)
  • Get listings
  • Get listing details
  • Get messages
  • Get message details
  • Send messages
  • Get calendar for a listing
  • Update calendar for a listing (change prices, availbility, notes)
  • get Payouts (used to get a list of reservations, past and future - also gives you exact $ for accounting)
  • get reservation details
  • get user details (info about your guests)

To set this API up, follow these steps:

I assume you have node installed (nvm maybe?) and that you have a listing on AirBnb.

  1. npm install bnbhostapi (or git clone [email protected]:davidplappert/bnbhostapi.git && npm install)
  2. export bnbhostapi_username = xxxxxxx (replace with your email)
  3. export bnbhostapi_password = xxxxxxx (replace with your password)
  4. node examples/login.js (this generates a oauth token we need for the rest of the api calls)
  5. export bnbhostapi_oauthtoken = xxxxxx (output from the above script)
  6. node examples/getPayouts.js (to make sure your setup is correct).

This following sippet will return all your payout info along with all the reservation info.

var bnbhostapi = require('bnbhostapi');
bnbhostapi.getPayouts(true).
each(function(payout){
  bnbhostapi.getReservation(payout['reservation']['confirmation_code'])
  .then(function(reservation){
    console.log(reservation);
  });
});

Forward looking features:

  • leave reviews
  • charge for extra services
  • stats and more details for reporting

Credits: