A collection of useful JSON files, filters, and helper scripts — mostly related to travel (airports, countries, etc.), with a few handy utility functions mixed in. I put this together for personal projects but figured it might be useful to others too.
airports-full.original.json– Full global airport listairports-trimmed.commercial.json– Trimmed list (just large & medium commercial airports with IATA codes)trim-airports.js– Script to filter and simplify the full listget-airport-flag.js– Adds a flag emoji to each airport based on country
country-phone-codes.original.json– Country names, dial codes, and flag emojiscountry-emoji-map.generated.json– Just the emoji lookup (code → emoji)validate-country-emojis.js– Checks that the emoji generation function matches known flags
getFlagEmoji.ts– Converts ISO country codes to flag emojis (🇺🇸 style)mergeByKey.ts– Simple helper to join two arrays of objects on a shared keydebounce.ts– Lightweight debounce function for input fields
This repo pulls together data from a few public sources and contributors who shared their JSON freely online. I'm sharing it in the same spirit — feel free to use, adapt, or remix anything here.
That said, I can't guarantee the original licenses of every dataset, so if you're using it for anything serious or public-facing, double-check the source data and attribution as needed.
Mostly just to save myself time. Now it’s all in one place — and if you find it useful too, awesome.