
Product
Microsoft Teams Notifications Are Now Available in Socket
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.
@postio/address-finder
Advanced tools
Drop-in UK address autocomplete — accessible combobox over the Postio API.
Drop-in UK address autocomplete — accessible combobox over Postio, the UK validation API for addresses, emails and phone numbers.
First time? Sign up free — first 100 lookups on us, no card needed.
This is the source package — for use with bundlers (Vite, Webpack,
esbuild, Rollup, Next.js, etc.). For a script-tag drop-in with no
build step, install
@postio/address-finder-bundled
or load from https://cdn.postio.co.uk/v1/address-finder.js.
npm install @postio/address-finder
<input id="address-search" />
<input id="address-line-1" />
<input id="town" />
<input id="postcode" />
import { setup } from "@postio/address-finder";
const finder = setup({
apiKey: "pk_…",
input: "#address-search",
output: {
address_line_1: "#address-line-1",
post_town: "#town",
postcode: "#postcode",
},
});
// Later, if needed:
finder.clear();
finder.close();
finder.destroy();
| Option | Type | Default | Notes |
|---|---|---|---|
apiKey | string | — | Required. pk_* publishable key. |
input | string | HTMLInputElement | — | Required. The text input the user types into. |
output | OutputMap | — | Required. Map of API field → DOM target to populate. |
baseUrl | string | https://api.postio.co.uk/v1 | Override for self-hosted / staging. |
bare | boolean | false | Skip the visual CSS layer; ship structural only. |
minLength | number | 2 | Min chars before searching. |
debounceMs | number | 80 | Debounce input by N ms. |
maxResults | number | 7 | Max suggestions in dropdown (cap 50). |
className | string | — | Extra class on the listbox element. |
zIndex | number | 1000 | z-index of the dropdown. |
onReady | () => void | — | Called once after setup. |
onSearch | (query, results) => void | — | After every search response. |
onSelect | (address) => void | — | When the user picks an address. Gets the full record. |
onError | (err) => void | — | Any search or fetch error. |
output keys are the API field names —
address_line_1, post_town, postcode, udprn,
latitude, longitude, etc. See
@postio/api-types
for the full list.
output values can be a CSS selector or an HTMLElement. <input>,
<textarea> and <select> get their .value set + input and
change events dispatched (so React/Vue/Angular pick up the change).
Anything else gets .textContent set.
Default styling is intentionally minimal and inherits font + color from the parent. Override via CSS custom properties on any ancestor:
.my-form {
--postio-af-bg: white;
--postio-af-border: 1px solid #d0d4dc;
--postio-af-radius: 6px;
--postio-af-padding: 4px;
--postio-af-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
--postio-af-option-padding: 8px 10px;
--postio-af-option-radius: 4px;
--postio-af-option-hover-bg: #f3f4f6;
--postio-af-focus-ring: 2px solid #2563eb;
--postio-af-z: 1000;
}
Or target the BEM-style classes directly:
.postio-af__listbox { /* … */ }
.postio-af__option { /* … */ }
.postio-af__option[aria-selected="true"] { /* … */ }
For full control, opt out of visual defaults — setup({ ..., bare: true })
ships only the structural CSS (positioning, list semantics, hide/show).
role="combobox" on the input,
role="listbox" on the dropdown, role="option" per suggestion,
aria-expanded / aria-controls / aria-activedescendant updated live.↑ / ↓ / Home / End / Enter / Escape / Tab.font-family, color, and font-size so it picks up the
page's typography automatically./connect warm-up fired on first input focus (no billing impact).MIT.
FAQs
Drop-in UK address autocomplete — accessible combobox over the Postio API.
We found that @postio/address-finder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.

Security News
Socket CTO Ahmad Nassri joins AppSec leaders at Black Hat to discuss active malware, package manager risks, and software supply chain defense.