A static web app that estimates whether selected luggage sets will fit in configured vehicle cargo zones across multiple markets (currently Europe and North America).
The repository has been flattened so the runtime and tooling files are at the root level (while keeping configs/ and docs/):
.
├─ app.js # thin browser entry point
├─ initApp/
│ └─ bootstrap.js # ordered startup and browser application logic
├─ src/i18n/
│ └─ localization.js # language-dependent text and entity accessors
├─ src/events/
│ ├─ actions.js # state mutations and render/persistence triggers
│ └─ bindings.js # once-only DOM event delegation
├─ src/render/
│ ├─ helpers.js # pure render formatting and geometry helpers
│ ├─ metricsHeader.js # result title, badge, and metric region
│ ├─ visualization.js # visualization region facade
│ ├─ lists.js # placed and unplaced item regions
│ └─ controlsState.js # result-driven custom bag control state
├─ styles.css # browser styling
├─ index.html # GitHub Pages/root app shell
├─ fitEstimator.js # browser fit estimator module
├─ fitEstimator.node.js # Node-side estimator module used by scripts
├─ loadConfigs.js # Node config loaders
├─ generate-vehicle-index.mjs
├─ validate-configs.mjs
├─ smoke-app.mjs
├─ serve-app.mjs
├─ playwright.config.js # browser behavior test configuration
├─ e2e/
│ └─ app.spec.js # user-journey browser checks
├─ configs/
│ ├─ luggage/
│ └─ vehicles/
└─ docs/
└─ code-documentation.md
The app is now root-relative for this repository layout:
index.htmlloads./app.jsapp.jsdelegates startup to./initApp/bootstrap.jsinitApp/bootstrap.jsloads config JSON from./configs/...
This supports loading from:
https://noddson.github.io/luggage-check
npm startOpen http://localhost:4173.
npm run validate:vehicle-index
npm run validate:configs
npm run validate:version
npm run smoke:app
npm test
npm run test:browser
npm run checkconfigs/vehicles/index.jsonis generated bygenerate-vehicle-index.mjsand is the vehicle manifest consumed by both browser and Node loaders.version.jsonis a generated build artifact;npm startcreates it locally and GitHub Pages creates it during deployment.- Keep
configs/as the source of truth for luggage and vehicle definitions. - The UI includes persisted trip setup preferences (
tripSetupcookie), language preferences (preferredLanguagecookie), and three independently sized custom bag entries. - Built-in UI localization currently includes:
en,xx,el,de,fr,it,es,is, andjp.
This app is a planning estimator, not a physical fit guarantee. Even with strong volume and dimension modeling, real-world loading outcomes can still differ.
-
Volume does not fully describe shape.
Two cargo spaces can have the same litres but very different usable geometry. Real trunks often include taper, wheel-arch intrusion, seat hardware, trim contours, and sloped surfaces that are not perfectly cuboid. -
Rectangular envelopes are simplifications.
The estimator uses rectangular dimensions (length × width × height) as a practical model of each cargo zone. This is intentionally simplified to make consistent comparisons across many vehicles. -
Opening/access constraints can dominate fit.
A bag may fit inside a zone in theory but still fail to pass through the hatch or trunk opening at a usable orientation. -
Seat-back geometry changes usable space.
Seat angle and seat-back encroachment reduce top-front cargo depth. The app can model this, but actual seat posture and trim details vary by trim/year and can still affect outcomes. -
Data confidence varies by source quality.
Some values are sourced directly from manufacturer material; others are inferred for planning when complete geometric data is unavailable. Lower-confidence zones should be treated as approximate.
- Treat results as a decision aid (screening and comparison), not a guarantee.
- Use a margin of safety for rigid or borderline-fit luggage.
- Expect higher uncertainty when shape/access details are likely to matter (large rigid bags, diagonal loading, mixed-height stacks, or highly tapered cargo areas).
This project was created by Nick Oddson.
If you use, copy, modify, or distribute this software, please retain the copyright notice and MIT License as required by the license.
This project is licensed under the MIT License. See LICENSE for details.