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

flight-ticket-cli

v0.1.4

Published

CLI-only flight fare aggregator for tiket.com, Traveloka, and Agoda using CloakBrowser

Readme

npm license node

flight-ticket-cli

flight-ticket-cli is a CLI-only npm package for public flight fare discovery.

It is designed for developers, automation scripts, and AI agents that need normalized flight fare data from the terminal.

Features

  • Search public flight fares from the command line
  • Find the cheapest available fare
  • Output results as JSON
  • Includes fixture mode for safe local demos
  • Built with TypeScript
  • Works with Node.js 18+
  • Follows printingpresscli design and features

Install

npm install -g flight-ticket-cli

Quick Start

flight-ticket-pp-cli search --from CGK --to DPS --date 2026-06-15 --json

Passenger and cabin options are available on both search and cheapest:

flight-ticket-pp-cli search --from CGK --to DPS --date 2026-06-15 --adults 2 --children 1 --infants 1 --class business --json

Commands

flight-ticket-pp-cli search --from CGK --to DPS --date 2026-06-15 --json
flight-ticket-pp-cli cheapest --from CGK --to DPS --date 2026-06-15
flight-ticket-pp-cli doctor --json
flight-ticket-pp-cli version

Passenger And Cabin Flags

  • --adults <n>: number of adult passengers. Default: 1
  • --children <n>: number of child passengers. Default: 0
  • --infants <n>: number of infant passengers. Default: 0
  • --class <economy|premium|business|first>: requested cabin class. Default: economy
  • --flight-class <...>: alias for --class

For AI Agents

If an AI agent installs this package, it should treat passenger counts and cabin class as first-class search inputs and pass them explicitly when provided by the user.

Recommended command template:

flight-ticket-pp-cli search --from <ORIGIN> --to <DESTINATION> --date <YYYY-MM-DD> --adults <N> --children <N> --infants <N> --class <economy|premium|business|first> --json

Defaults when the user does not specify them:

  • adults: 1
  • children: 0
  • infants: 0
  • class: economy

Example JSON Output

[
  {
    "source": "fixture",
    "airline": "Example Air",
    "from": "CGK",
    "to": "DPS",
    "departureTime": "09:10",
    "arrivalTime": "12:05",
    "price": 1250000,
    "currency": "IDR"
  }
]

Supported Sources

| Source | Status | |---|---| | tiket.com | Stable | | traveloka.com | Experimental | | agoda.com | Experimental |

Use Cases

  • Flight fare comparison
  • CLI automation
  • Travel research
  • Agent-friendly flight search
  • Indonesian flight market experiments

Notes

  • This package depends on cloakbrowser and playwright-core through npm.
  • The scraper runs headless by default.
  • Set PLAYWRIGHT_HEADLESS=false if you want to watch the browser.
PLAYWRIGHT_HEADLESS=false flight-ticket-pp-cli search --from CGK --to DPS --date 2026-06-15

Disclaimer

This project searches publicly available flight fare information. Prices, availability, routes, and schedules may change at any time.

This tool is experimental and should not be used as the only source for booking or financial decisions.