Immatis

2026
Reads a foreign car’s registration document and tells you what the French administration will decide, before you buy.
I imported a car and lost months to the procedure. Everything the administration would decide was already on the registration document, but reading it means knowing the law, and the law is written for no one who imports a car once. Immatis does that reading: a photo in, the verdict out, with the reason.
  • Free, no account, live at immatis.com
  • A photo in, the verdict in ten seconds
  • Every answer shows the field read and the rule applied

The decision is a program.

The administration applies rules, not judgment: a date, a power figure, a few boxes filled or empty. I wrote those rules in TypeScript, with the official figures in files that name their source. Everything else was built around them.

Pipeline

The rules split into the official figures and one function per decision. The document is read field by field. Both meet at the verdict: the field read, and the rule applied.

Law

The rules

JSON

The official figures

TypeScript

One function per decision

Document

Photo or PDF

Schema

The fields to read

Extraction

What the scan contains

JSON

TypeScript

Extraction

Verdict

Figures, rules, and the scan

Infrastructure

Rules engine

TypeScriptZodVitest
  • One pure function per decision
  • Official figures as sourced JSON
  • 25 tests

Extraction API

HonoGeminiSSE
  • 1 to 3 scans, photo or PDF
  • Output locked to the schema
  • Streams upload → reading → verdict

Interface

Next.jsWebGL2GLSL
  • Canvas in plain GLSL, no library
  • Light enough for any phone
  • Flight synced to the stream

Design system

Importing a car is a trip, and the paperwork is a jungle. The site is drawn as the trip. A landscape with a road runs under the page: dropping the document makes it take off, the scan is the flight, the verdict is the landing. Three surfaces mark the three stops, neutral for the drop, lime for the reading, sky for the verdict. Aquawax for titles, Parabole for text. Tokens set in the Pencil mockup, mirrored in the CSS. The drop zone is the only control.

Déposez la carte grise

Glissez le fichier ici, ou cliquez pour le choisir.

Carte grise allemande, belge ou néerlandaise · jusqu'à 3 volets · PDF, JPG ou PNG

  • 1999/37/CEdirective UE
  • (UE) 2018/858réception · COC

Voie d'immatriculation

Concluant

AVDT

Pas d'étape COC.

Champ lu

15 / 15 champs harmonisés · J = M1

Règle appliquée

Document UE harmonisé, définitif, catégorie M1 : voie AVDT.

GLSL, and light.

One WebGL2 particle system, plain GLSL, no library. Landscapes, road and step scenes go in as textures; the shader draws them as dithered glyphs. The pointer enlarges particles, nothing moves. Rendering stops off screen, motion stops under prefers-reduced-motion. It runs on about anything, phone included.

What I take from it

Write the rules first. Everything else is what it takes to read them.