Menu

33 planes are around Frankfurt Airport right now. Here's how I know (in 20 lines of TypeScript)
📰

33 planes are around Frankfurt Airport right now. Here's how I know (in 20 lines of TypeScript)

DEV Community: node·Matthias Münzel·15 days ago
#gTHSU9RV
#devtonodejs#devto#dev#aircraft#const
Reading 0:00
15s threshold

Ever looked up near an airport and wondered where all those planes are going?

Turns out you don't need a Flightradar subscription to answer that. There's a free, community-run network called adsb.lol where hobbyists share data from their own ADS-B receivers, and it has an open API.

I wrote a small, zero-dependency TypeScript client for it: @matmuenzel/adsblol-ts . Let's build a tiny "what's flying around here?" CLI with it.

Setup

mkdir sky && cd sky npm init -y npm i @matmuenzel/adsblol-ts

Enter fullscreen mode

Exit fullscreen mode

Node 22+ is all you need. No API key required.

The script

// overhead.ts import { AdsbLol , callsign , altitudeFt , isMilitary } from " @matmuenzel/adsblol-ts " ;

const adsb = new AdsbLol (); const home = { lat : 50.03 , lon : 8.57 }; // Frankfurt Airport – put your own coordinates here

const { ac } = await adsb . aircraft . near ({ ... home , radiusNm : 25 });

const airborne = ac . filter (( a ) => typeof a . alt_baro === " number " ) // skip planes on the ground .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.