Paste one script and an element into any form. People type less, pick their exact address from the official register, and are never stuck when something goes wrong.
Included in every plan, the free plan too. Test keys work from any site, localhost included. Version 1.4.0.
Wherever an address is typed
Not just checkout. Any form.
If your page asks for an address, the fields can check it, on any website, whatever it runs on.
Checkout and delivery
The parcel reaches the right door the first time.
Sign-up and accounts
Clean customer records from the very first form.
Legal and contracts
Addresses on agreements and registrations that match the official record.
Bookings and appointments
Visits, installs and home services sent to a real address.
Quotes and applications
Insurance, energy or mortgage quotes for the right building.
Moving and change of address
New addresses checked, including new builds the register doesn't list as in use yet.
The two elements
<rightdoor-address>NL Netherlands, liveBE Belgium, liveFR France, liveLU Luxembourg, live
Postcode first
Postcode and house number, then pick the addition. Street and city fill themselves in from the register. In Belgium: postcode, street, number and bus. In France and Luxembourg: number and street, then postcode and city.
Postcode2513 AANumber1
Which door?Binnenhof 1Binnenhof 1 ABinnenhof 1 BBinnenhof 1 D✓Binnenhof 1 A, 2513 AA 's-Gravenhage
Illustration with the register's answer for 2513 AA 1, the Dutch parliament, captured from the RightDoor API on 11 October 2026. Try the real form in the playground.
<rightdoor-autocomplete>NL Netherlands, liveBE Belgium, liveFR France, liveLU Luxembourg, live
Or just start typing
Type-ahead for the whole address, typos and all: a street and number, a postcode, or a place. One country per box: country="NL", "BE", "FR" or "LU". The chosen address is then checked like a typed one.
Address2513 aa 1Binnenhof 1, 2513 AA 's-GravenhageBinnenhof 1 A, 2513 AA 's-GravenhageBinnenhof 1 B, 2513 AA 's-GravenhageBinnenhof 1 D, 2513 AA 's-Gravenhage↑ ↓ to move · Enter to choose
Illustration: for a Dutch postcode and number, suggestions come straight from the register, so they are the four addresses a lookup of 2513 AA 1 returned on 11 October 2026.
Install
Paste. Done.
Use a publishable key: it's made to live in a web page. A live one works only from the sites you list, and only for address checks. Your form keeps its own fields and its own submit button.
If RightDoor is slow or down, the fields stay an ordinary form and the address goes through as unverified. Nobody is stuck.
Netherlands, Belgium, France and Luxembourg
Toevoegingen in the Netherlands; bus numbers and street names in every official language in Belgium; the number before the street, with bis or ter, in France; the number first, with a comma, in Luxembourg.
Your form, your fields
It fills your own inputs, or brings labelled fields of its own. Both stay in your page, so browsers' saved addresses still work.
For everyone
Built to WCAG 2.2 AA and tested automatically with axe. Not yet tested by hand with screen readers.
Safe in a web page
Publishable keys only, limited to the sites you list. Secret keys stay on your server.
Nothing extra
No cookies, no local storage, no analytics. It loads from js.rightdoor.eu and sends addresses only to api.rightdoor.eu.
A drop-in form for Dutch, Belgian, French and Luxembourg addresses. Postcode and number find the address in the official registers, the customer picks the toevoeging, bus, bis or ter from the ones that exist, and your form gets a carrier-ready address with RightDoor's verdict. It never stops a real customer: when RightDoor is slow or down, it's an ordinary form.
1. Quickstart
In the dashboard, open API keys and create a publishable key. List the sites it may be used on, like https://shop.example. A test key works anywhere, localhost included.
Add the script and the element to your form.
Read the fields when the form is submitted, or listen for the change event.
The real form, with this site's key. Change any setting and watch the events. Try 2513 AA and 1 (the Binnenhof) or 3521 AZ and 1; Belgium with 1000 and Wetstraat 16; France with 75008, Rue du Faubourg Saint-Honoré and 55 (the Élysée); or Luxembourg with 1648, Place Guillaume II and 42 (the city hall).
The live form appears here when JavaScript is on.
Events
3. What the customer sees
Postcode first. As soon as the postcode and number are complete, the form looks them up. Nothing changes on screen for the first second; then a small spinner and "Adres zoeken…"; from four seconds a note that the customer can type the address themselves. After ten seconds the address goes through unverified.
Found. A summary ("✓ Adres gevonden") instead of read-only fields, with "Wijzigen" to change it. The street and city still submit with your form.
Several additions. Up to 12 as buttons, more as a list, and "Geen toevoeging" when the bare number exists too. Nothing is picked for the customer. "12A", "12-2" and "12 hs" typed in the number field pick the addition straight away.
Not found. A warning, not an error: "We vinden dit adres niet. Controleer postcode en huisnummer, of ga toch verder." With a "Dit adres klopt" box (customerConfirmed) and the fields to fix it.
RightDoor can't answer. A neutral note, "We kunnen het adres nu niet controleren. Vul het zelf in.", with "Opnieuw proberen". The fields work as usual.
Nothing is final. Every change of postcode, number or country looks again. Only what the register filled in is cleared, never what the customer typed. An answer that arrives after the customer typed something else is offered ("Bedoel je …? Overnemen"), never written over.
Manual entry is always one click away: "Adres zelf invullen".
4. Your own fields, or ours
Our fields. An empty <rightdoor-address> creates a fieldset with labelled fields in your page, in the order people know: NL postcode, number and toevoeging, then street and city; BE postcode, street, number, bus and municipality; FR number, bis or ter and street, then postcode and city; LU the same. They submit with your form:
Fields submitted (with name-prefix in front)
Name
Value
postcode
The postcode as the register writes it (2513 AA, 1000, 75008, 1648)
house_number
The number, digits only
addition
NL toevoeging, BE bus, FR bis or ter, LU letter, bis or ter, if any
street
The street, from the register
city
The place, from the register
address1
Street, number and addition on one line (number first in France and Luxembourg)
country
NL, BE, FR or LU
company
With fields="company"
address2
With fields="line2"
rightdoor_status
valid, corrected, ambiguous, invalid, unverified or incomplete
rightdoor_receipt
The signed receipt (see Trusting it on your server)
rightdoor_session
The session id of this address
Your fields. Put your own inputs inside the element and mark them with data-rightdoor. The form adds the lookup, the picker (right after the house number) and the messages, and writes the register's values back into your inputs (with input and change events, so React and Vue see them). Errors go into an element marked data-rightdoor-error, or right after the input. data-rightdoor-label on the addition input sets the picker's label.
Attach to your inputs
<rightdoor-address publishable-key="rd_pk_live_…" country="NL" theme="none">
<input name="zip" data-rightdoor="postcode" autocomplete="postal-code">
<p data-rightdoor-error="postcode"></p> <!-- optional: where its error goes -->
<input name="number" data-rightdoor="house-number">
<input name="addition" data-rightdoor="addition">
<input name="street" data-rightdoor="street">
<input name="city" data-rightdoor="city" autocomplete="address-level2">
<input type="hidden" name="receipt" data-rightdoor="receipt">
<div data-rightdoor="slot"></div> <!-- where the picker and messages go -->
</rightdoor-address>
Both modes keep the inputs in your page itself, not in an iframe or a shadow root, so the browser's saved addresses and password managers fill them as usual. Recipient name stays your own field.
5. Search the whole address
<rightdoor-autocomplete> comes in the same script. The customer types a street and number, a postcode, or a place, and picks the address from the suggestions. That address is then checked against the register, like a typed one, and filled in. Search and check share one session, so they count as one verification. Put it next to an address form:
It fills the <rightdoor-address> in the same form, or the one whose id is in for. Without one, it checks the address itself and writes it into your own inputs marked data-rightdoor (address1, postcode, house-number, addition, street, city, country, status, session), with input and change events, then fires rightdoor-fill:
Type Binnenhof 1, or a postcode like 2513 AA, and pick an address.
The live search appears here when JavaScript is on.
When the search index is slow, it shows no suggestions and the field stays an ordinary input; when the check can't be made, the address is still filled in, with status unverified.
Attributes
Attribute
What it does
publishable-key
A publishable key, rd_pk_live_… or rd_pk_test_…, from the RightDoor dashboard.
api
The API's base URL. Default: "https://api.rightdoor.eu".
country
The country searched. Default: "NL".
lang
"nl", "fr", "de" or "en". Default: the page's language.
for
The id of a <rightdoor-address> to fill. Without it: the one in the same form, else the page's own [data-rightdoor] fields there.
label
The visible label. Default: "Search your address" (translated).
placeholder
The placeholder. Default: "Street and number, or postcode" (translated).
theme
"none" loads no stylesheet. Default: "rightdoor".
debug
Logs settings and timings to the console (never what the customer types).
The form is about to fill in fields from the register. Cancelable.
rightdoor-invalid
CustomEvent<{ issues: FormIssue[] }>
A submit found problems, for your own error summary. Never blocks by itself.
rightdoor-error
CustomEvent<{ code: RightDoorErrorCode; status: number | null }>
RightDoor couldn't answer; the form carries on as a normal form.
JavaScript
const form = document.querySelector("rightdoor-address");
form.addEventListener("rightdoor-change", (event) => {
const { status, complete, address, carrier, receipt } = event.detail;
// status: valid | corrected | ambiguous | invalid | unverified | incomplete
});
form.value; // the same, any time
9. The result
Status
Status
Meaning
What to do
valid
The address exists as entered. New builds count too.
Use it.
corrected
A small mistake was fixed in the fields.
Use the corrected address.
ambiguous
The number has several additions and none is picked yet.
Wait: the form asks the customer.
invalid
Not in the register. The customer may tick that it's correct (customerConfirmed).
Your call: flag it for review, ask again, or accept it.
unverified
RightDoor couldn't check, or the customer typed it by hand and it isn't checked yet.
Accept it and check it again later.
incomplete
Not all parts are filled in yet.
Nothing yet.
The result also has phase and pending, carrier (street, number and addition apart, as PostNL, bpost, DHL, Sendcloud and Colissimo want them), issues with messages in the customer's language and the field each is about, and blocking: advice, true only for hard format errors.
10. Validation and submitting
The element takes part in your form like a native input: required, checkValidity(), reportValidity(), form reset, and back/forward restores.
Only hard format errors make the form invalid: a postcode or house number that can't exist, or a PO box when allow-po-box isn't set. "Not found" and "RightDoor can't answer" never stop a submit.
A submit while a check runs waits for it, up to submit-wait (1.5 s), then goes through either way.
Format errors show when the customer leaves the field, next to it, and disappear on the keystroke that fixes them. RightDoor's answers show at once, at the field they're about, and go when the customer changes that field. A blocked submit moves focus to the first error. On submit, rightdoor-invalid lists every error and warning with its field, for your own error summary.
Back and forward: when the customer leaves the page, the address is kept in that browser tab's history, and is back when they return.
What shows at which field
Field
Error (red, blocks the form)
Warning (amber, never blocks)
postcode
A postcode that can't exist
POSTCODE_NOT_FOUND
house number
No digits, or MISSING_HOUSE_NUMBER (Netherlands, Belgium and Luxembourg)
HOUSE_NUMBER_NOT_FOUND; text that can't be an addition; in France, a missing number (places without numbers exist)
addition
SUFFIX_NOT_FOUND, UNIT_NOT_FOUND, UNIT_REQUIRED, an addition typed with the number that doesn't exist, FORMAT_INVALID of the addition
street
PO_BOX_NOT_ALLOWED (without allow-po-box)
STREET_MISMATCH
city
CITY_MISMATCH
Each message is linked to its field (aria-describedby, aria-invalid), with an icon and a hidden "Fout:" or "Let op:" for screen readers. A new build (ADDRESS_PLANNED) is for you only: it's in issues, never shown to the customer.
11. Texts and languages
The form speaks Dutch, French, German and English: the lang attribute, else the page's language, else the country's (Dutch for NL and BE, French for FR and LU). The messages property changes any text, per language, and adds languages (anything we don't have falls back to English). Messages from RightDoor's API come in the same language.
JavaScript
form.messages = {
nl: { legend: "Waar mogen we het bezorgen?", found: "Gevonden!" },
es: { postcode: "Código postal", houseNumber: "Número" }, // a language of your own
};
Message keys (Dutch text)
Key
Text
legend
Bezorgadres
postcode
Postcode
houseNumber
Huisnummer
additionNL
Toevoeging
additionBE
Bus
additionFR
Toevoeging
additionLU
Toevoeging
street
Straat
city
Plaats
country
Land
company
Bedrijfsnaam
address2
Extra adresregel
addLine2
Extra adresregel toevoegen
optional
optioneel
noAdditionNL
Geen toevoeging
noAdditionBE
Geen bus
noAdditionFR
Geen toevoeging
noAdditionLU
Geen toevoeging
choose
Kies…
edit
Wijzigen
manual
Adres zelf invullen
retry
Opnieuw proberen
apply
Overnemen
searching
Adres zoeken…
slow
Duurt langer dan normaal. Je kunt het adres ook zelf invullen.
found
Adres gevonden
foundSay
Adres gevonden: {address}
pickNL
Kies je toevoeging.
pickBE
Kies je busnummer.
pickFR
Kies je toevoeging (bis, ter …).
pickLU
Kies je toevoeging.
options
{n} opties
notFoundNL
We vinden dit adres niet. Controleer postcode en huisnummer, of ga toch verder.
notFoundBE
We vinden dit adres niet. Controleer postcode, straat en huisnummer, of ga toch verder.
notFoundFR
We vinden dit adres niet. Controleer huisnummer, straat en postcode, of ga toch verder.
notFoundLU
We vinden dit adres niet. Controleer huisnummer, straat en postcode, of ga toch verder.
postcodeUnknown
We vinden deze postcode niet. Controleer de postcode, of ga toch verder.
confirm
Dit adres klopt
unavailable
We kunnen het adres nu niet controleren. Vul het zelf in.
offer
Bedoel je {address}?
error
Fout:
warning
Let op:
fieldPostcode
We vinden deze postcode niet.
fieldNumber
Dit huisnummer vinden we niet bij deze postcode.
fieldStreet
Deze straat vinden we niet bij deze postcode.
fieldCity
Deze plaats hoort niet bij de postcode.
fieldAdditionNL
Deze toevoeging vinden we niet bij dit huisnummer.
fieldAdditionBE
Dit busnummer vinden we niet bij dit huisnummer.
fieldAdditionFR
Deze toevoeging vinden we niet bij dit nummer.
fieldAdditionLU
Deze toevoeging vinden we niet bij dit nummer.
additionFormat
Controleer de toevoeging.
postcodeNL
Vul een postcode in zoals 1234 AB.
postcodeBE
Vul een postcode in zoals 1000.
postcodeFR
Vul een postcode in zoals 75008.
postcodeLU
Vul een postcode in zoals 1648.
number
Vul een huisnummer in, zoals 12.
numberOnly
Vul alleen het nummer in. De toevoeging kies je hierna.
additionUnknown
We vinden {addition} niet op dit nummer. Kies er een.
poBox
Vul een straatadres in, geen postbus.
suggestions
Straatsuggesties
streets
{n} straten gevonden
street1
1 straat gevonden
noStreets
Geen straat gevonden. Vul de straat zelf in.
searchLabel
Zoek je adres
searchHint
Straat en huisnummer, of postcode
searchList
Adressuggesties
searchNone
Geen adres gevonden. Typ verder of vul de velden zelf in.
hits
{n} adressen gevonden
hit1
1 adres gevonden
countryNL
Nederland
countryBE
België
countryFR
Frankrijk
countryLU
Luxemburg
12. Styling
The default theme is a small stylesheet in the cascade layer rightdoor, so any CSS of yours wins without !important. Set the variables on the element, or pick theme="rightdoor-dark" or theme="minimal". With theme="none", your own CSS styles everything. Your page's own rules for input, select, button and label apply too, so the form matches your other forms; scope a global rule if it gets in the way.
RightDoor doesn't know the address (a warning, never blocking).
:state(unavailable)
RightDoor couldn't answer; a normal form.
:state(manual)
The customer chose to enter the address by hand.
:state(pending)
A lookup or check is running.
:state(success)
The note shows success.
:state(info)
The note shows information.
:state(warning)
The note shows a warning.
:state(error)
The note shows an error.
:state(invalid)
A hard format error makes the form invalid.
The rd-af- classes, the variables and the states are the styling contract: changing them is a breaking change. To keep the page from jumping while the script loads, add the stylesheet yourself:
npm install @rightdoor/js gives you loadRightDoor(), TypeScript types for the element and its events, typings for React 19 and Vue, and a Custom Elements Manifest for your editor. The form itself always comes from js.rightdoor.eu. The attribute is publishable-key because React and Vue keep key for themselves.
React 19
import "@rightdoor/js/react";
import { loadRightDoor, type FormValue } from "@rightdoor/js";
await loadRightDoor(); // then render
<rightdoor-address
publishable-key="rd_pk_live_…"
country="NL"
required
messages={{ nl: { found: "Gevonden!" } }}
onrightdoor-change={(event) => setAddress(event.detail)}
/>
Svelte 5: <rightdoor-address publishable-key="rd_pk_live_…" onrightdoor-change={onChange} />. Our tests run the form in React 19 and Vue on every change.
14. Trusting it on your server
Anything a browser sends can be changed on the way. Two ways to be sure on your server, without trusting the fields alone:
Verify the receipt. Every checked address comes with a receipt signed by RightDoor, valid for 24 hours. It costs nothing and needs no API call.
Or validate again with your secret key and the same sessionId: it then counts as the same verification.
Node.js, Bun or Deno
import { createRemoteJWKSet, jwtVerify } from "jose";
const keys = createRemoteJWKSet(new URL("https://api.rightdoor.eu/.well-known/jwks.json"));
// receipt: the rightdoor_receipt field your form received
const { payload } = await jwtVerify(receipt, keys, {
issuer: "https://api.rightdoor.eu",
audience: "rd_pk_live_AbCdEf12", // your publishable key without its last part
algorithms: ["EdDSA"],
});
// Then check that the address you received is the one RightDoor checked:
// payload.address = { countryCode, address1, address2, zip, city }
// payload.status, payload.confidence, payload.sub (the session id)
15. When RightDoor can't answer
If RightDoor answers slowly, the fields stay editable all along, and after ten seconds the address goes through as unverified. A network error is retried once. If RightDoor answers with an error, refuses the key or the key reached its daily cap, the fields are an ordinary form with a neutral note, and the result is unverified. The customer is never stuck. Check those addresses again later with the API.
16. Accessibility
The form is built to WCAG 2.2 AA:
A fieldset with a legend, and one label per field.
Errors next to their field, with an icon and text (never colour alone), linked with aria-describedby and aria-invalid.
Results announced in polite status regions: the address found, the number of additions or streets. Focus never moves by itself.
The street list and the address search follow the WAI-ARIA combobox pattern, with 44 px options and Alt+Down to reopen them.
Outline focus rings that stay visible in high-contrast mode, 3:1 borders, 24 px targets or larger, and a layout that reflows at 320 px.
Autocomplete tokens for postcode, street, addition and city; 16 px inputs, so phones don't zoom.
How it's tested: automatically, with axe in Chromium, Firefox and WebKit, in every state of the form, on every change. Automated checks find about half of all accessibility problems. The form has not yet been tested by hand with screen readers (NVDA, JAWS, VoiceOver, TalkBack). If you find a problem, please tell us at support@rightdoor.eu.
17. Debugging
Add the debug attribute to log settings, timings and decisions to the console. It never logs an address. Warnings come with a code:
Warning codes
Code
Means
Fix
RD001
No publishable key, or not one (rd_pk_…).
Set publishable-key to a key from the dashboard.
RD002
The key was refused (401/403).
Add this page's origin to the key's allowed origins, or check that the key isn't revoked.
RD003
A test key on a live site.
Test keys stop after 100 checks a day: use the live key.
RD004
Attach mode without its inputs.
Mark the inputs with data-rightdoor="postcode" and data-rightdoor="house-number".
RD005
The key reached its daily cap.
Addresses go through unverified until midnight UTC. Raise the cap in the dashboard.
RD006
A country that isn't supported.
Use NL, BE, FR or LU.
RD007
<rightdoor-autocomplete for=…> names no <rightdoor-address>.
Use the id of the address form, or leave for out to fill your own data-rightdoor fields.
18. Content Security Policy
What to allow
Directive
Add
script-src
https://js.rightdoor.eu
style-src
https://js.rightdoor.eu (not with theme="none")
connect-src
https://api.rightdoor.eu
No unsafe-inline, no unsafe-eval, no frames. The form builds its fields without HTML strings, so it also runs under Trusted Types.
19. Versions
/v1/address.js is always the newest 1.x (now 1.4.0): fixes reach your page within minutes, and nothing changes for you. Attributes, properties, events, the rd-af- classes, CSS variables and states are public API and follow semver. Breaking changes only ever come in a new major version, at a new address (/v2/), so you choose when to move; anything we plan to remove warns in the console for at least one minor version first.
20. Keys, limits and billing
Publishable keys are public by design. A live key only works from the origins you list (https, exact, or https://*.example.com for subdomains), and only for lookups, suggestions, address search and single validations.
One address is one verification: every lookup, suggestion, search and the validation of one address entry share a session. At most 50 calls per session.
A daily cap per key (default 1,000 verifications), with an email at 80% and 100%. At the cap the form falls back to manual entry until midnight UTC.
Test keys are free on every plan, work from any site including localhost, 100 calls a day.
The form is included in every plan, the free plan too.
21. Privacy
The form sets no cookies, uses no local storage, and sends no analytics or fingerprints. It loads from js.rightdoor.eu and sends an address only to api.rightdoor.eu, and only once the customer types one (it warms up the connection to the API when the form appears). When the customer leaves the page, the address they typed is kept in that tab's history, like the browser does for its own form fields, so it's back when they return. RightDoor compares the address with the public registers and forgets it: nothing is stored or logged. For your customers' addresses, you are the controller and RightDoor the processor (data processing agreement).