Skip to content
Comms.ID
Esc
↑↓navigate↵open⌘Jpreview

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

  1. Set up your app

    pnpm dlx comms-id init

    Creates your app's key in .env.local and adds the Comms.ID registry to components.json. The key stays on your machine and server; the browser never holds a credential.

  2. Register your app

    In Companion → Registered apps, paste the public key that init printed. Copy the COMMS_ID_CLIENT_ID line it gives you into .env.local. You need a verified website in Companion first. Never paste your private key.

  3. 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)} />