nitrovin
An offline VIN decoder that answers like NHTSA's
vPIC. It is a Go port of spVinDecode, the
decoding procedure NHTSA publishes inside its monthly vPIC database, and it
ships as one binary with a month of vPIC data inside. No network, no
database, no API key.
Its goals are compatibility, answering exactly as vPIC does, and
interoperability, working with other systems through vPIC's ids, its
output shapes and standard formats; speed serves them, and is not one of
them.
Every data month is checked against NHTSA's own procedure running in
Postgres before it ships: every row of every VIN in an 18,318-VIN corpus
must match, byte for byte, or the month does not ship
(what parity means).
$ nitrovin decode -o text 1HGCM82633A004352 | grep -E '^(VIN|Make|Manufacturer Name|Model|Model Year|Body Class|Plant City|Error Code) '
VIN 1HGCM82633A004352
Body Class Coupe
Make HONDA
Manufacturer Name AMERICAN HONDA MOTOR CO., INC.
Model Accord
Model Year 2003
Plant City MARYSVILLE
Error Code 0
Those are 7 of the 43 elements this VIN decodes to (--shape nitrovin
lists them).
The same decode is reachable six ways: a CLI, an HTTP server, JSON lines
over stdio, an MCP server for AI assistants, a Go module and a C library.
nitrovin.app runs the latest release's server for
anyone: one page that decodes a VIN as you type it and shows the
vehicle's names in every vocabulary loaded,
where your own vocabularies (or EPA's, in one click) load into your browser and translate
there without being uploaded, and a one-click demo set loads there the same way, the /v1 API (CORS open) and MCP at
https://nitrovin.app/mcp, rate-limited per IP.
Status: v0.x prereleases. v0 means the release pipeline is not yet
signed off, not that the API may change: the contract is frozen at /v1.
v1.0.0 waits on the gates in
ADR 0007.
nitrovin is not affiliated with or endorsed by NHTSA.
- Install
- Use it: CLI, HTTP, stdio, MCP, Go, C
- Verify a release
- The data
- Vocabularies: translate your names for vehicles and part types
- Parity
- Known limits
- Benchmarks
- Contributing
- Credits and licence
Install
Every release embeds one vPIC data month; nitrovin --version names it.
| Channel |
Command |
Platforms |
| Homebrew |
brew install joshuasprow/tap/nitrovin |
macOS, Linux |
| Scoop |
scoop bucket add joshuasprow https://github.com/joshuasprow/scoop-bucket then scoop install nitrovin |
Windows amd64, arm64 |
| winget |
JoshuaSprow.Nitrovin, not yet submitted (#78) |
Windows |
| Docker |
docker run --rm -p 8080:8080 ghcr.io/joshuasprow/nitrovin |
linux/amd64, linux/arm64 |
| Go 1.27+ |
go install github.com/joshuasprow/nitrovin/cmd/nitrovin@latest |
anywhere Go builds |
| Archives |
GitHub Releases: nitrovin_<version>_<os>_<arch>.tar.gz (.zip on Windows) |
linux, darwin, windows × amd64, arm64 |
| Linux packages |
the same releases: sudo apt install ./nitrovin_<version>_linux_<arch>.deb, sudo dnf install ./nitrovin_<version>_linux_<arch>.rpm, sudo apk add --allow-untrusted ./nitrovin_<version>_linux_<arch>.apk |
linux amd64, arm64 |
| C library |
the same releases: libnitrovin_<version>_<os>_<arch> |
linux, darwin, windows × amd64, arm64 |
$ nitrovin --version
nitrovin v0.1.2 (data 2026_10)
The binary is about 80 MB, most of it the data; an archive is about 21 MB.
The Docker image runs nitrovin serve --addr :8080 by default, as a
non-root user, and takes any other command in its place
(docker run --rm ghcr.io/joshuasprow/nitrovin decode 1HGCM82633A004352).
Its tags are vX.Y.Z, vX.Y, vX, latest and data-<YYYY_MM>.
The Linux packages install /usr/bin/nitrovin and put LICENSE and
NOTICE in /usr/share/doc/nitrovin; removing the package removes all
three. They are release assets, not a package repository, so nothing signs
them for apt, dnf or apk (hence --allow-untrusted): verify one with
cosign before you install it,
TAG=v0.1.5
cosign verify-blob --bundle nitrovin_${TAG#v}_linux_amd64.deb.sigstore.json \
--certificate-identity https://github.com/joshuasprow/nitrovin/.github/workflows/release.yml@refs/tags/$TAG \
--certificate-oidc-issuer https://token.actions.githubusercontent.com nitrovin_${TAG#v}_linux_amd64.deb
or check it against checksums.txt as Verify a release
shows.
The binaries are not notarized by Apple. Homebrew removes the quarantine
flag for you. A macOS binary downloaded with a browser is killed on launch
until you remove it:
xattr -d com.apple.quarantine nitrovin
Use it
Every surface takes the same request and returns the same decode
(the API contract):
| Request field |
Default |
Meaning |
vin |
required |
1–17 characters; partial (*) and mistyped VINs decode too |
model_year |
none |
a model year you already know, a hint |
shape |
vpic |
vpic: vPIC's DecodeVinValues keys (Make, BodyClass); nitrovin: keyed by variable name, with element and attribute ids |
full |
false |
add items, every row NHTSA's procedure emits, with its source and pattern |
now |
the clock |
the instant the decode is as of; fix it for reproducible output |
A VIN is never an error: what is wrong with it is in error_codes (vPIC's
codes, [0] is clean), with corrected_vin and the possible values when
the procedure suggests them. Every decode carries its data_month and
decoder_version.
CLI
nitrovin decode 1HGCM82633A004352 # JSON, pretty on a terminal
nitrovin decode -o text --model-year 2003 1HGCM82633A004352 # two columns
nitrovin decode --shape nitrovin --full 1HGCM82633A004352 # by variable name, with items
printf '1HGCM82633A004352,2003\n5YJ3E1EA2JF000316\n' | nitrovin decode - # one JSON line per VIN
nitrovin info # version, data month, artifact hash, elements
decode - reads one VIN per line, optionally followed by a comma or a tab
and its model year. Exit status is 0 when every VIN was decoded, whatever
its error codes; 1 when nitrovin could not answer (data that will not load,
a refused input line); 2 for a mistake on the command line, such as an
argument VIN over 17 characters. Problems go to stderr as one JSON line.
CLI contract.
HTTP
nitrovin serve # 127.0.0.1:8080; --addr, or $PORT, to change
curl localhost:8080/v1/decode/1HGCM82633A004352
curl 'localhost:8080/v1/decode/1HGCM82633A004352?model_year=2003&shape=nitrovin'
curl localhost:8080/v1/decode -d '[{"vin":"1HGCM82633A004352"},{"vin":"5YJ3E1EA2JF000316","shape":"nitrovin"}]'
curl localhost:8080/v1/info
curl 'localhost:8080/v1/translate?from.vin=1HGCM82633A004352'
curl localhost:8080/v1/vocabularies
curl 'localhost:8080/v1/vocabularies/vpic/entries?where.make=474&limit=5'
Open the address in a browser: one page, the VIN decoder, drawn as the
VIN's diagram. Type a VIN on the plate, 17 cells under the six groups
of a VIN (maker, vehicle, check digit, model year, plant, serial): each
group's card fills as its characters are typed, a partial VIN included.
A whole VIN gets the check digit's verdict, with its arithmetic behind a
button, the decoder's error codes in NHTSA's words, and a suggested VIN
as a link. Below the cards, "Also known as" shows the vehicle's names in
every vocabulary loaded (Vocabularies), a doubt drawn
dashed. A refusal is said below the plate. The page is rendered on the
server and every answer is a
shareable URL (/?from.vin=1HGCM82633A004352; older /?vin=,
/ui/decode, /ui/translate, /vocab and /ui/vocabularies links
redirect to it, with their VIN and nothing else). The plate takes a VIN
or, switched to its second mode, a part type and a part number, and the
URL names what is on the plate and what is open under it: model_year,
shape, full and now are the API's and the command line's, and the
page ignores them. Three buttons open the rest: VINs, over the plate,
offers examples, the VINs you decoded lately and Surprise me;
Vocabularies, in the header, lists what is loaded; and Developers, at
the page's foot, holds the page's URL,
curl and nitrovin decode equivalents to copy, each the plain request
for the VIN, the answer's JSON, a
link to the same VIN on NHTSA's decoder, how to install,
configure MCP and verify this version, and links to the API docs, its
release and data month. Everything works without
JavaScript; with it, the page answers as you type, the URL follows the
plate, back and forward ask the server again, and copy buttons appear.
The pages are not part of the API: they are
not in the OpenAPI document and may change.
POST /v1/decode takes up to 1,000 requests and returns an array of
decodes in order; POST /v1/translate does the same for translate
requests, and GET /v1/translate takes one as dotted query parameters
(from.vocabulary=fleet&from.entry.make=Dodge&from.entry.model=Ram%201500).
GET /v1/vocabularies lists what is loaded and
GET /v1/vocabularies/{name}/entries pages through one;
GET and POST /v1/fit read a loaded catalog: a vehicle's part types,
candidates and related vehicles, and a fitment's vehicles, with the
shelf parts and yard vehicles of loaded stock sources when asked
(Translation,
Listing,
Fit). Refusals are
application/problem+json (RFC 9457) with a pointer to the offending
value. GET /v1/openapi.json serves the
OpenAPI 3.1 document; GET /healthz is the probe.
There are no CORS headers unless --cors <origin> (or --cors '*') names
the browsers that may call /v1 and /mcp. SIGINT or SIGTERM drains
requests in flight and exits 0.
serve can also send its faults and log lines to
PostHog. It is off unless NITROVIN_POSTHOG_TOKEN
is set, and then sends nothing else:
NITROVIN_POSTHOG_TOKEN=phc_… \
NITROVIN_POSTHOG_PROPERTIES='{"app":"vin","service":"nitrovin","environment":"production"}' \
nitrovin serve
| Variable |
Meaning |
NITROVIN_POSTHOG_TOKEN |
A project's public ingest token (phc_…); unset, nothing is sent. |
NITROVIN_POSTHOG_HOST |
The ingest host; default https://us.i.posthog.com. |
NITROVIN_POSTHOG_DISTINCT_ID |
The events' distinct id; default nitrovin. |
NITROVIN_POSTHOG_PROPERTIES |
A JSON object of strings stamped on every event and log line. app names the issues (<app>: panic; default nitrovin), service is the logs' service.name (default nitrovin). |
Every 500 serve answers, a recovered panic included, is a $exception
with its Go stack (<app>: internal, <app>: panic), and so is the error
serve stops with. Every line it logs also goes to PostHog Logs over
OTLP/HTTP: its faults as error, the MCP server's diagnostics as warn
and the line it starts with as info, each carrying the properties. Every
event and line carries decoder_version too. The events are personless.
Sending runs beside the requests in batches, about once a second, and never
delays or fails one: a full queue drops (and says so on stderr), and so
does a send that fails. A bad host or properties stop serve from
starting.
stdio (JSON lines)
printf '{"id":1,"vin":"1HGCM82633A004352"}\n{"id":2,"vin":"5YJ3E1EA2JF000316","shape":"nitrovin"}\nnot json\n' | nitrovin stdio
One request per line in, one line out per request, in order and flushed per
line: {"id": …, "decode": {…}} or {"id": …, "error": {…}}. A line with
"op": "translate", "op": "list" or "op": "fit" translates, lists or
fits instead, through the --vocab files, and its reply is keyed
translation, list or fit. A bad
line gets an error line and the session goes on; EOF ends it. This is the
easiest way to keep one decoder process open from another language
(docker run --rm -i ghcr.io/joshuasprow/nitrovin stdio works too).
stdio contract.
MCP
nitrovin mcp is an MCP server over stdio with the tools decode_vin,
whose arguments are the request above, and translate, list, fit and
stocked, which answer from the vocabularies, catalog and stock --vocab
loads
(tool definitions). For Claude Desktop
(~/Library/Application Support/Claude/claude_desktop_config.json on
macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows) and Cursor
(~/.cursor/mcp.json) the entry is the same:
{
"mcpServers": {
"nitrovin": {
"command": "/opt/homebrew/bin/nitrovin",
"args": ["mcp"]
}
}
}
Use the absolute path which nitrovin prints: desktop apps do not see your
shell's PATH. With Docker instead, "command": "docker" and
"args": ["run", "--rm", "-i", "ghcr.io/joshuasprow/nitrovin", "mcp"].
A client that installs from the MCP Registry
finds this server as io.github.joshuasprow/nitrovin: the Docker image at
the release tag, run with mcp.
To try it without a client, save the snippet as claude_desktop_config.json
and call the tool with the MCP Inspector: