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

flightaware-ts

v1.0.0

Published

TypeScript bindings for FlightAware API v3.0

Downloads

2

Readme

FlightAware API Bindings

This repository provides TypeScript bindings to the FlightAware API v3.0. Usage requires an API key.

Usage

import { createApi } from 'flightaware-ts'

const FA_USERNAME = "USERNAME_GOES_HERE";
const FA_API_KEY = "API_KEY_GOES_HERE";
const FA_CONFIG = {
    username: FA_USERNAME,
    apiKey: FA_API_KEY
}
const api = createApi(FA_CONFIG);

api.findFlight({
    origin: 'KIAH',
    destination: 'KJFK',
    type: 'nonstop'
}).then(x => console.log(x.flights[0]))
/* Prints:
{"num_segments":1,"segments":[{"ident":"DAL214","faFlightID":"DAL214-1575092751-airline-0510","airline":"DAL","airline_iata":"DL","flightnumber":"214","tailnumber":"N109DU","type":"Form_Airline","blocked":false,"diverted":false,"cancelled":false,"origin":{"code":"KIAH","city":"Houston, TX","alternate_ident":"","airport_name":"Houston Bush Int'ctl"},"destination":{"code":"KJFK","city":"New York, NY","alternate_ident":"","airport_name":"John F Kennedy Intl"},"filed_ete":11700,"route":"MMUGS4 GUSTI Q22 CATLN J37 AJFEB GRD Q64 TYI J209 SAWED J121 SIE CAMRN4","filed_altitude":370,"display_filed_altitude":"37,000 feet","filed_airspeed_kts":379,"distance_filed":1417,"filed_departure_time":{"epoch":1575332400,"tz":"CST","dow":"Monday","time":"06:20PM","date":"12/02/2019","localtime":1575310800},"estimated_departure_time":{"epoch":1575332400,"tz":"CST","dow":"Monday","time":"06:20PM","date":"12/02/2019","localtime":1575310800},"actual_departure_time":{"epoch":0},"departure_delay":0,"filed_arrival_time":{"epoch":1575344100,"tz":"EST","dow":"Monday","time":"10:35PM","date":"12/02/2019","localtime":1575326100},"estimated_arrival_time":{"epoch":1575344100,"tz":"EST","dow":"Monday","time":"10:35PM","date":"12/02/2019","localtime":1575326100},"actual_arrival_time":{"epoch":0},"arrival_delay":0,"status":"Scheduled","progress_percent":-1,"aircrafttype":"BCS1","full_aircrafttype":"BCS1","adhoc":false}]}
 */

See the API reference for full endpoint documentation.