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

guesty-cli

v1.1.0

Published

CLI for the Guesty property management API with built-in OAuth token caching and rate limiting

Readme

Guesty CLI

Command-line access to the Guesty Open API with OAuth token caching, rate limiting, and a raw escape hatch for any endpoint.

Quick Start

npm install -g guesty-cli && guesty init

This installs the CLI and walks you through entering your Guesty Open API credentials. Get them from Guesty Dashboard > Marketplace > Open API.

Install

npm install -g guesty-cli

Or from this repo:

npm install
npm run build
npm link

Configure

guesty init

The CLI stores credentials in ~/.guesty-cli/.env and caches tokens in ~/.guesty-cli/token.json.

You can also set environment variables directly:

export GUESTY_CLIENT_ID=...
export GUESTY_CLIENT_SECRET=...

Examples

# List reservations
guesty res list --limit 10

# Get a specific listing
guesty ls get <listingId>

# Search guests
guesty guests list --q "John Smith"

# Update calendar data
guesty cal update <listingId> --data '{"dateFrom":"2026-04-01","dateTo":"2026-04-30","price":200}'

# Create a reservation (v3 API)
guesty res v3-create --data '{"listingId":"...","checkIn":"...","checkOut":"..."}'

# Manage iCalendar imports
guesty ical list-imported
guesty ical import --data '{"url":"https://...","listingId":"..."}'

# Raw API call for any endpoint
guesty raw GET /v1/listings --params '{"limit":5}'
guesty raw POST /v1/reservations.csv --accept text/csv --output reservations.csv

# Download an owner document
guesty owners download-document <ownerId> <documentId> --output owner-doc.pdf

Commands

| Command | Alias | Description | |---------|-------|-------------| | init | | Set up credentials | | reservations | res | Reservations (v1 + v3), exports, reports | | listings | ls | Listings CRUD, exports | | calendar | cal | Calendar and availability | | guests | | Guests, payment methods | | conversations | conv | Messaging | | tasks | | Task management | | financials | fin | Financial data | | reviews | | Reviews | | owners | | Owners, documents, guests | | accounting | acct | Accounting, expenses, vendors | | properties | prop | Property settings, groups, photos, tours | | quotes | | Quotes | | webhooks | | Webhooks | | users | | Users and roles | | integrations | int | Integrations and channels | | contacts | | Contact management | | icalendar | ical | Import/export iCalendars | | saved-replies | replies | Saved reply templates | | marketing | mkt | Translations, languages, descriptions | | rate-plans | rp | Revenue management rate plans | | rate-strategies | rs | Rate strategies | | additional-fees | fees | Additional fees | | taxes | | Tax configuration | | payment-providers | pp | Payment providers | | channel-commission | cc | Channel commissions | | promotions | promo | Promotions | | price-adjustments | pa | Price adjustments | | accounts | | Account custom fields | | invoice-items | ii | Invoice items | | address | | Geocoding and addresses | | block-logs | | Calendar block logs | | guest-app | | Guest app data | | guest-code | | Guest codes | | user-scope | | User scope management | | raw | | Raw API call to any endpoint |

Run guesty <command> --help for subcommands and options.

Raw Requests

raw supports JSON, text, CSV, and binary request/response flows.

# JSON request
guesty raw POST /v1/contacts --data '{"firstName":"Ada","lastName":"Lovelace"}'

# CSV/text response
guesty raw POST /v1/reservations.csv --accept text/csv --output reservations.csv

# Binary upload
guesty raw POST /v1/properties-api/property-photos/property-photos/<propertyId>/upload/blob \
  --data-file ./photo.jpg \
  --content-type image/jpeg

# Custom headers
guesty raw GET /v1/listings --header 'X-Debug: 1'

Input Methods

Commands that accept a request body support multiple input methods:

# Inline JSON
guesty res v3-create --data '{"listingId":"...","checkIn":"...","checkOut":"..."}'

# Pipe from stdin
cat reservation.json | guesty res v3-create

# File input (raw command only)
guesty raw POST /v1/reservations-v3 --data-file reservation.json

Authentication

Tokens are cached to disk and auto-refresh when they expire. Guesty enforces a strict 5 tokens per 24 hours limit — the CLI tracks this locally and will block requests rather than burn tokens.

Rate Limiting

The CLI enforces Guesty's rate limit (100 requests/minute) client-side. If you hit the limit, it waits automatically and retries.

Machine-Readable Contract

The repo includes guesty-cli-spec.json as the machine-readable reference for all commands, options, and the Guesty endpoints they call. Each endpoint includes a docsUrl linking to the official Guesty API documentation.

Regenerate with:

npm run generate:cli-spec

License

MIT