JSPM

foodpanda-cli

0.1.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 5
    • Score
      100M100P100Q30835F
    • License MIT

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

    Package Exports

      This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (foodpanda-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

      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>
      # 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