Zero-dependency command-line tool and offline dataset to check personal item, carry-on, and 62 linear inch checked bag dimensions across 161 verified airlines — powered by FitsBag.
- Offline-ready & fast: Ships with verified airline rules (
data/airlines.json, updated 2026-11-30) — no API keys, no login, no network required. - Zero npm dependencies: Pure Node.js (
>= 18) ESM. - Exact unit matching: Compares in inches when you enter inches and centimeters when you enter centimeters, so exact printed airline limits (like Avelo
17 × 13 × 9 in) never fail due to rounding. - Soft-sided bag tolerance: Optional
--softflag flags single-edge overages≤ 1.0 inas soft-bag squeezes while keeping strict pass/fail accurate. - Scriptable: Add
--jsonto any command for shell scripts, travel automation, or gear catalogs.
git clone https://github.com/bwdeng1/fitsbag-cli.git
cd fitsbag-cli
# Check a personal item against all airlines
node bin/fitsbag.mjs check 18 14 8 --mode personal-item
# Check a slightly packed backpack against Frontier with soft-bag squeeze hint
node bin/fitsbag.mjs check 18.8 14 8 --airline F9 --soft
# Check a standard cabin roller across verified airlines
node bin/fitsbag.mjs check 22 14 9 --mode carry-on --limit 15
# Calculate 62 linear inches for a checked suitcase
node bin/fitsbag.mjs linear 26 18 12 --unit in
# Inspect one airline's official personal item, carry-on, checked & gate fee notes
node bin/fitsbag.mjs airline XP
node bin/fitsbag.mjs airline G4
# Machine-readable JSON output
node bin/fitsbag.mjs check 17 13 9 --airline XP --json
Or link globally from your local clone:
npm link
fitsbag check 18 14 8 --airline F9
FitsBag Check — 18.8 × 14 × 8 in | mode: personal-item | soft-sided ON
Dataset: 2026-11-30 | Fits: 0/1 | Soft squeeze: 1 | Over: 1
IATA Airline Status Official Limit
----------------------------------------------------------------------------
F9 Frontier Airlines SOFT SQUEEZE (+0.8 in) 18 × 14 × 8 in
2D Blueprint Sizer: https://fitsbag.shop/frontier-bag-sizer?h=18.8&w=14&d=8&u=in&m=personal-item
Linear Dimensions: 56.0 in (142.2 cm)
45 in Cabin rule: OVER (+11.0 in)
62 in Checked rule: FITS
80 in Allegiant rule: FITS
Interactive calculator: https://fitsbag.shop/linear-inches-calculator
Prefer a visual 2D engineering blueprint sizer box with live gate fee notes and one-tap bag presets? Use the free web tools on FitsBag:
- FitsBag Luggage Size Checker — Check personal items, carry-ons, and 62 linear inch checked bags across all 161 verified airlines
- Interactive 2D Airline Bag Sizer — Visual front & side sizer box overlay for any airline
- 62 Linear Inches Luggage Calculator — Instant L+W+H calculator with 45 in cabin, 62 in checked, and Allegiant 80 in comparisons
- Strict US Budget Airline Sizers:
- Full Airline Carry-On Directory — Browse all 161 verified airlines with direct links to official airline baggage pages
npm test
MIT — see LICENSE.