New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@squawk/airspace-data

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
This package has malicious versions linked to the ongoing "Mini Shai-Hulud" supply chain attack.

Affected versions:

0.5.30.5.40.5.5
+2 more
View campaign page

@squawk/airspace-data

Pre-processed FAA NASR airspace GeoJSON snapshot for use with @squawk/airspace

Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
52
-50.48%
Maintainers
1
Weekly downloads
 
Created
Source

@squawk/airspace-data

Pre-processed GeoJSON snapshot of US airspace geometry derived from the FAA NASR 28-day subscription cycle. Data only - no query logic, no dependency on @squawk/airspace.

Coverage

  • Class B, C, D, and E controlled airspace (E2 through E7 subtypes)
  • Special Use Airspace: MOAs, restricted, prohibited, warning, alert, and national security areas

Usage

import { usBundledAirspace } from '@squawk/airspace-data';

// Inspect metadata
console.log(usBundledAirspace.properties.nasrCycleDate); // "2026-01-22"
console.log(usBundledAirspace.properties.featureCount); // 6842

// Use with @squawk/airspace for zero-config airspace queries
import { createAirspaceResolver } from '@squawk/airspace';

const resolver = createAirspaceResolver({ data: usBundledAirspace });

Consumers who have their own data pipeline can use @squawk/airspace alone and pass any compatible GeoJSON dataset at initialization.

Data format

The export is a GeoJSON FeatureCollection. Each feature's geometry is a Polygon representing one airspace boundary. Feature properties include:

PropertyTypeDescription
typestringAirspace type (CLASS_B, CLASS_C, CLASS_D, CLASS_E2-E7, MOA, RESTRICTED, etc.)
namestringHuman-readable name
identifierstringNASR designator or airport identifier
floorAltitudeBoundLower vertical bound
ceilingAltitudeBoundUpper vertical bound
statestring or nullTwo-letter US state abbreviation
controllingFacilitystring or nullControlling ARTCC or facility
scheduleDescriptionstring or nullOperating schedule text

AltitudeBound is { valueFt: number, reference: 'MSL' | 'AGL' | 'SFC' }.

Data source

All geometry and metadata is derived from the FAA National Airspace System Resource (NASR) 28-day subscription, which is public domain. Class B/C/D/E boundaries come from the NASR ESRI Shapefile and SUA boundaries from the AIXM 5.0 XML files. The build pipeline that produces this dataset lives in scripts/build-airspace-data/.

Keywords

aviation

FAQs

Package last updated on 12 Apr 2026

Related posts