@geocoded/client
v0.1.1Typed Geocoded API client for browsers, Node, Bun, and Workers.
bun add @geocoded/client Official, MIT-licensed packages for TypeScript, React and React Native. They are tree-shakeable, fetch from the API instead of bundling datasets, and need no API key.
The client works in browsers, Node, Bun and Workers. Get-one lookups accept a name or an ISO code. The API reference lists every endpoint it wraps.
bun add @geocoded/client
import { getCountry, fetchStates, search } from '@geocoded/client'
const japan = await getCountry('JP')
const states = await fetchStates('US')
const places = await search('paris', { type: 'city' }) Typed requests for every endpoint from browsers, Node, Bun and Workers.
Ready-made pickers and fields with search, paging and controlled or uncontrolled use.
React country, region, and city pickers backed by the Geocoded API.
bun add react-country-region-picker React ISO 4217 currency picker.
bun add react-currency-code-picker React IANA timezone picker.
bun add react-iana-timezone-picker React phone number field with country picker.
bun add react-phone-number-field Headless React picker primitive.
bun add react-picker-core Headless hooks with the same behavior, so any UI kit can render the controls.
React Native country, region, and city pickers.
bun add react-native-country-region-picker React Native ISO 4217 currency picker.
bun add react-native-currency-code-picker React Native IANA timezone picker.
bun add react-native-iana-timezone-picker React Native phone number field.
bun add react-native-phone-number-field Headless React Native picker primitive.
bun add react-native-picker-core Formatting, parsing and option helpers that work in any JavaScript runtime.
Framework-agnostic ISO 4217 currency labels and filters.
bun add currency-code-formatters Framework-agnostic phone parsing, formatting, and validation.
bun add phone-number-formatters Shared pagination, search, and cache helpers for Geocoded pickers.
bun add picker-core Framework-agnostic timezone option helpers.
bun add use-timezones