@meterapp/vehicle-db

An offline, international vehicle make/model catalog for Node.js and TypeScript. The package combines U.S. model-year data, the UK registered fleet, the European Union's new car and van registration register, the daily-updated Dutch vehicle register, Asian-origin vehicles registered in New Zealand, Malaysian registration transactions, Brazil's national vehicle register, an Indian manufacturer catalog, the Brazil-exclusive Hyundai HB20 family, recent U.S. model configurations from FuelEconomy.gov, and reviewed manufacturer body derivatives and Saudi model-year evidence into one small, zero-dependency API. It never makes runtime network requests.
The current snapshot spans 1990–2027 and includes 1,611 makes and 42,380 models in 197,390 model years, from 23 data sources. Those are distinct vehicles by name, with case, accents and punctuation normalized while preserving the distinct 03+ badge, which is how the Car Image API counts and lists them. The package's own records number more (1,623 makes from getMakes()), because sources spell some makes and models more than one way (MOTO GUZZI and MOTO-GUZZI) and a few makes have no model in these years; see Snapshot stats.
The catalog covers seven vehicle types: Motorcycle, Passenger Car, Truck, Bus, Multipurpose Passenger Vehicle (MPV), Auto Rickshaw, and Other Vehicle. The European source adds continental models from Dacia, Cupra, DS, Lynk & Co, Alpine, and the Chinese brands entering Europe such as BYD, MG, Omoda, Xpeng, and Nio, as sold in the EU rather than the UK or U.S. The Dutch register keeps that coverage current: vehicles first registered this year appear within days, so 2026 models such as the BYD Atto 2 and Renault 5 E-Tech are already listed. The Asia-Pacific sources add Japanese domestic and kei models, Chinese EVs, Indian and Korean vehicles, Southeast Asian makes such as Perodua and Proton, and additional motorcycles and commercial vehicles. The Brazilian register adds the cars and motorcycles that fill Brazil's roads but are rarely sold elsewhere, such as the Fiat Argo, Mobi and Toro, the Volkswagen Gol and Saveiro, the Renault Kwid, and the Honda Biz and Pop.
Demo and playground
This catalog is the backbone of the Car Image API, which renders studio-quality, transparent-background images of every vehicle listed here: nine camera views, any paint color, PNG, WebP or JPG. Explore the data in the interactive playground or browse every make and model at carimage.dev/cars.
Need to know where your vehicles operate? Geocode AI is the boundary API from the same team: get the polygon of any country, state, county, city, district or postcode by name or point, test whether a vehicle's location falls inside a service area, or describe a zone in plain language ("the nine Bay Area counties except San Jose") and get one validated polygon back, for fleet territories, pricing and fare zones, dispatch regions and geofences. REST, MCP and CLI; see the docs.
Missing a vehicle? Add its source-backed identity here; downstream image support and asset sharing are validated separately — see CONTRIBUTING.md.
Install
npm install @meterapp/vehicle-db
Requires Node.js 18 or newer.
Usage
import {
getDataSources,
getVehicleTypes,
getMakes,
getModels,
getAvailableYears,
} from "@meterapp/vehicle-db";
// Inspect provenance and coverage before querying.
const sources = getDataSources();
// All seven categories, including Motorcycle (1) and Bus (5).
const types = getVehicleTypes();
// All makes with a 2024 motorcycle in the international UK fleet source.
const motorcycleMakes = getMakes({
year: 2024,
vehicleTypeId: 1,
sourceId: "uk-dft-vehicle-licensing",
});
// Honda motorcycle models manufactured in 2024.
const honda = motorcycleMakes.find((make) => make.makeName === "HONDA");
const hondaMotorcycles = getModels({
makeId: honda!.makeId,
year: 2024,
vehicleTypeId: 1,
sourceId: "uk-dft-vehicle-licensing",
});
// Coach and transit bus makes/models use vehicle type 5.
const busMakes = getMakes({ year: 2024, vehicleTypeId: 5 });
const alexanderDennis = busMakes.find((make) => make.makeName === "ALEXANDER DENNIS");
const buses = getModels({
makeId: alexanderDennis!.makeId,
year: 2024,
vehicleTypeId: 5,
});
// Japanese domestic and kei models from the Asian-origin NZTA slice.
const nztaAsiaMakes = getMakes({
year: 2022,
sourceId: "nzta-asia-pacific-mvr",
});
const hondaAsia = nztaAsiaMakes.find((make) => make.makeName === "HONDA");
const hondaAsiaModels = getModels({
makeId: hondaAsia!.makeId,
year: 2022,
sourceId: "nzta-asia-pacific-mvr",
}); // Includes N-BOX.
// Southeast Asian market models such as Perodua Myvi and Proton S70.
const malaysiaMakes = getMakes({
year: 2026,
sourceId: "malaysia-jpj-registrations",
});
// Models registered as new in the EU, Iceland, and Norway, e.g. BYD Seal U.
const euMakes = getMakes({ year: 2024, sourceId: "eea-co2-monitoring" });
const bydEu = euMakes.find((make) => make.makeName === "BYD");
const bydEuModels = getModels({
makeId: bydEu!.makeId,
year: 2024,
sourceId: "eea-co2-monitoring",
});
// Current-year European registrations from the Dutch register, e.g. BYD Atto 2.
const bydNl = getMakes({ year: 2026, sourceId: "rdw-nl-vehicle-register" }).find(
(make) => make.makeName === "BYD",
);
const bydNlModels = getModels({
makeId: bydNl!.makeId,
year: 2026,
sourceId: "rdw-nl-vehicle-register",
});
// Models in Brazil's national vehicle register, e.g. Fiat Argo, Mobi, and Toro.
const fiatBr = getMakes({ year: 2024, sourceId: "senatran-br-renavam" }).find(
(make) => make.makeName === "FIAT",
);
const fiatBrModels = getModels({
makeId: fiatBr!.makeId,
year: 2024,
sourceId: "senatran-br-renavam",
});
// Existing queries remain valid.
const toyota = getMakes({ year: 2024 }).find((make) => make.makeName === "TOYOTA");
const toyotaModels = getModels({ makeId: toyota!.makeId, year: 2024 });
const years = getAvailableYears({
makeId: toyota!.makeId,
vehicleTypeId: 2,
sourceId: "nhtsa-vpic",
});
Show a picture of any vehicle in this catalog
A make, model and year picked from this package can be shown as a transparent-background image with one request to the Car Image API, in nine views (front, rear, both sides, all four three-quarter corners and top-down) and any paint color. Typical uses are a vehicle picker that shows the car the driver chose, inventory and catalog pages, wrap, tint and PPF visualizers, and dealer tools that start from a VIN.
curl -H "Authorization: Bearer $CAR_IMAGE_API_KEY" \
"https://carimage.dev/api/v1/images/car?make=toyota&model=rav4&year=2025&view=front-3-4&color=red" \
-o rav4.png
A free account includes 30 vehicle images, no card needed: get a key. Code examples for the browser, React, Shopify and WordPress are in the guides; pricing lists the plans.
Driver search and autocomplete
The optional, zero-dependency search entry point turns free-form driver input into canonical catalog candidates. Its index is built lazily on the first search, and matching runs entirely in memory without network requests.
import { searchVehicles } from "@meterapp/vehicle-db/search";
const suggestions = searchVehicles("2020 toy cam", {
sourceId: "nhtsa-vpic",
vehicleTypeId: 2,
limit: 10,
});
const camry = suggestions.find(
(result) => result.kind === "model" && result.modelName === "Camry",
);
if (camry?.kind === "model") {
// A query containing a year has one directly selectable variant.
const selection = camry.variants[0];
// Persist year, makeId, modelId, and vehicleTypeId — not display text alone.
}
Search accepts year, make, and model tokens in any order. It recognizes common punctuation variants such as F-150/f150 and CR-V/crv, a small set of make aliases such as VW and Chevy, and conservative misspellings. Results are ranked deterministically by exact, prefix, token, substring, then fuzzy match. Fuzzy matching is only used when no lexical result exists.
Queries without a year group a canonical make/model/type across all available years rather than returning duplicate suggestions for every year. Each model result contains variants, which provides the preferred catalog modelId for every selectable year.
For the simplest driver experience:
- Infer the relevant market and pass its
sourceId; year semantics differ by source.
- Offer one field labelled “Search year, make, or model” and begin suggesting after two characters.
- If the driver enters only a year, use
getMakes({ year, ... }) for the next step; a year-only search intentionally returns no arbitrary alphabetical suggestions.
- On empty input, show application-owned recent vehicles. The catalog intentionally does not pretend that record frequency is vehicle popularity.
- Use the manual fallback Year → Make → Model.
getAvailableYears(options) supports every step.
Applications with regional telemetry can request more candidates and rerank within the same matchKind. Text quality and market compatibility should remain ahead of behavioral popularity so an exact result never loses to an unrelated popular vehicle.
Conservative identity resolution
@meterapp/vehicle-db/resolve is an optional, offline entry point separate from autocomplete:
import { resolveVehicle } from "@meterapp/vehicle-db/resolve";
const result = resolveVehicle("2024 BMW 4 Series Gran Coupé", {
market: "US",
yearBasis: "model-year",
depth: "visual",
});
if (result.status === "MATCHED") {
// Identity is established; the application must still find an appropriate asset.
console.log(result.selection.lineage, result.selection.visualIdentityIds);
}
Queries use an optional leading year, followed by make and full model phrase. Reviewed make aliases Hero MotoCorp and Maruti Suzuki require market: "IN"; category labels such as Honda Scooters are not discarded. With makeId, the make can be omitted. Only exact normalized phrases and reviewed aliases resolve; autocomplete/fuzzy candidates never silently become resolved identities. Unknown suffixes remain UNRESOLVED_TOKENS. Options also include year, vehicleTypeId, and sourceId.
depth defaults to catalog: a match at this depth establishes catalog presence only, with the source's documented year semantics. Request generation, derivative, or visual for stricter evidence. The curated identity graph is intentionally sparse: most catalog rows return GENERATION_UNRESOLVED at visual depth. MATCHED includes a selection; all results include candidates, unresolvedTokens, and the identity revision. Missing market/year context cannot satisfy restricted evidence, and overlapping generations remain ambiguous. No nearby year is substituted.
The graph uses make → line → generation → derivative → specification, with visual identities for bodies and appearance revisions. BMW Coupe, Convertible and Gran Coupe remain distinct; the 2014 generation and 2024/2025 appearance revisions do not share images implicitly. Aliases such as Prado and the reviewed Macan misspelling resolve only the line, not a generation or render. The maker's name GLC with EQ Technology resolves the electric X540 line for model year 2026 (European register row) or 2027 (US), never the combustion X254 GLC. A facelift that changes every body of a generation is a visual identity directly under that generation: the Audi A4, A4 Avant, A5 (with its Avant, Sportback, Coupe and Cabriolet), Q3, Q3 Sportback, Q5 and Q5 Sportback, the Skoda Kodiaq, the Renault Clio and the Peugeot 208, 2008, 308, 3008 and 5008 carry manufacturer-dated generations and facelifts scoped as catalog-year in the markets of the linked registers, so 2026 Audi Q3 resolves to the third generation at generation depth, a changeover year that sold two generations stays AMBIGUOUS, and a year before the dated generations stays GENERATION_UNRESOLVED. The same layer dates the electric models of a Car Image API customer list (Tesla, Hyundai, Kia, Genesis, BMW, Mercedes-Benz, Porsche, Polestar, Volvo, Rivian, Lucid and others), with facelifts such as the 2016 and 2021 Model S fronts, Model Y Juniper and the 2025 IONIQ 5; each line links the rows of its most common vehicle type.
Markets. A flat catalog row carries no market of its own, so a request with market used to answer SCOPE_UNVERIFIED for every row outside the graph. Two kinds of evidence now verify a row for a market:
- Reviewed rows. The rows of
manufacturer-reviewed and manufacturer-reviewed-catalog ship the market they were reviewed for (a 4 KB mask in the bundle; the URLs and notes stay in data/evidence/). resolveVehicle("2012 Nissan Navara D40", { market: "AU" }) is MATCHED; the same row with market: "US" stays SCOPE_UNVERIFIED.
- Market-scoped appearances. Where a market sold a different shape under a name other markets share, the graph holds
generation and visual identities scoped by markets, years and yearBasis and linked to the catalog rows they describe. Their line carries no name, so they never capture the name: without market, 2019 Ford Ranger resolves exactly as before. With a market, a row answers through the identities linked to it whose whole scope fits the request.
const au = { market: "AU", yearBasis: "catalog-year", depth: "visual" } as const;
resolveVehicle("2019 Ford Ranger", au); // MATCHED ford:ranger:px:facelift-2015
resolveVehicle("2022 Ford Ranger", au); // AMBIGUOUS: the PX and the Next-Generation Ranger were both sold
resolveVehicle("2021 Ford Ranger", { market: "US", depth: "visual" }); // MATCHED ford:ranger:north-america-2019:original
resolveVehicle("2012 Nissan Navara", au); // AMBIGUOUS: D22 and D40 were sold side by side
resolveVehicle("2012 Nissan Navara D22", au); // MATCHED nissan:navara:d22:documented
The Australian Ford Ranger (PX, its 2015 front, Next-Generation), Toyota HiLux (seventh to ninth generation and their fronts), Nissan Navara (D22, D40, D23 and its 2021 front, the 2026 truck) and Toyota LandCruiser 70 (2007, 2009, the 2016 single cab-chassis body, 2023) are dated this way from Ford, Toyota and Nissan Australia sources, as calendar years on sale (catalog-year), never converted to model years. A changeover year keeps every shape sold in it. At catalog depth the answer is the verified row, with the appearances in scope in visualIdentityIds. Years, markets and facelifts without a manufacturer source stay unresolved.
visualCompatibility in the graph now records pairs that must not share an appearance although their names suggest it (the Australian PX Ranger and the North American Ranger of 2019-2023, Navara D22 and D40, a generation and its successor in the changeover year). evaluateVisualCompatibility() reads them; they are directional and deny wins. The same is recorded for look-alikes of two makes or two cars under one name: the Toyota bZ4X and the Subaru Solterra as launched (jointly developed, different fronts) and the Mercedes-Benz GLC of 2022 against the electric GLC with EQ Technology.