Comms.ID registry
Address autocomplete
Australian address search from G-NAF. It installs into your app like any shadcn component. Your server signs each call as your registered Comms.ID client, so the browser never holds a credential.
Try it
- Address
- Suburb
- State
- Postcode
Start typing, then choose an address.
Incorporates or developed using G-NAF © Geoscape Australia licensed by the Commonwealth of Australia under the Open G-NAF EULA.
Response
The response appears here.
Installation
Set up your app
pnpm dlx comms-id initCreates your app's key in
.env.localand adds the Comms.ID registry tocomponents.json. The key stays on your machine and server; the browser never holds a credential.Register your app
In Companion → Registered apps, paste the public key that
initprinted. Copy theCOMMS_ID_CLIENT_IDline it gives you into.env.local. You need a verified website in Companion first. Never paste your private key.Add the component
pnpm dlx comms-id add address-autocomplete
Usage
import { AddressAutocomplete } from "@/components/comms-id/address-autocomplete";
<AddressAutocomplete onSelect={(address) => console.log(address.displayAddress)} />