Single-page React application for decoding vehicle VIN codes via the NHTSA (vPIC) open API.
https://vin-decoder-rosy.vercel.app/
VIN Decoder (React SPA) — decode vehicle details by VIN via NHTSA vPIC API. Live demo: https://vin-decoder-rosy.vercel.app/
- VIN decode page (
/):- VIN form with minimal validation (required, max 17 chars, allowed symbols only; forbidden:
I,O,Q) - Display decoded results as
Variable/Valuepairs (only items with filledValue) - Show API response
Messagein UI - Keep history of last 3 decoded VINs and allow re-apply from history
- VIN form with minimal validation (required, max 17 chars, allowed symbols only; forbidden:
- Variables pages:
/variables— full list of all available NHTSA vehicle variables with descriptions/variables/:variableId— details page for a selected variable
- React + TypeScript + Vite
- React Router (Data Router)
- TanStack React Query
- Axios
- CSS Modules
- Prettier
npm install
npm run devApp will be available at the URL shown in the terminal output (usually http://localhost:5173/).
npm run dev- start dev servernpm run build- type-check + production buildnpm run lint- ESLintnpm run format- format the codebase with Prettiernpm run format:check- verify formatting (CI-friendly)npm run preview- preview production build locally