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

foodpanda-cli

v0.1.0

Published

CLI for ordering food from foodpanda.ph — designed for AI assistants

Downloads

19

Readme

foodpanda-cli

CLI for ordering food from foodpanda.ph — designed for AI assistants that don't support MCP.

All commands output structured JSON to stdout.

Setup

npm install -g foodpanda-cli
# or
npx foodpanda-cli

Set Your Location

foodpanda-cli location <latitude> <longitude>

Your location is saved to ~/.foodpanda-cli/location.json and persists across sessions.

Login

foodpanda-cli login

Opens a browser window to foodpanda.ph. Log in manually — the token is captured automatically and saved to ~/.foodpanda-cli/token.json.

You can also set FOODPANDA_SESSION_TOKEN as an environment variable as a fallback.

Commands

Location

# Set delivery location
foodpanda-cli location 14.5995 120.9842

Search & Discovery

# Search restaurants
foodpanda-cli search "jollibee" --cuisine "Filipino" --limit 5

# List chain outlets
foodpanda-cli outlets <chain_code>

# Get restaurant details
foodpanda-cli restaurant <vendor_code>

Menu

# Get restaurant menu (compact)
foodpanda-cli menu <vendor_code>

# Get item details with toppings
foodpanda-cli item <vendor_code> <product_code>

Cart

# Add items to cart
foodpanda-cli add <vendor_code> --items '[{"item_id":"ct-36-pd-1673","quantity":2}]'

# View cart
foodpanda-cli cart

# Remove item
foodpanda-cli remove <cart_item_id>

Order

# Preview order (delivery address, payment methods, totals)
foodpanda-cli preview

# Place order (only COD works)
foodpanda-cli order --payment payment_on_delivery --instructions "Leave at door"

For AI Assistants

This CLI is designed to be invoked by AI assistants as shell commands. All output is JSON.

Ordering workflow:

  1. location -> set delivery coordinates
  2. login -> authenticate
  3. search -> find restaurants
  4. menu -> browse items
  5. item -> check toppings/variations
  6. add -> build cart
  7. preview -> review order
  8. order -> place order (only after user confirmation)

Limitations:

  • Only payment_on_delivery (Cash on Delivery) works
  • Philippines only (foodpanda.ph)
  • Session tokens expire; use login to refresh

License

MIT