JS SDK
@pro6pp/infer-jsAdds address autocompletion to any HTML input field, without a framework.
npm install @pro6pp/infer-jsAdd address autocompletion to your website with vanilla JavaScript, React or another framework, using the Infer API.
@pro6pp/infer-jsAdds address autocompletion to any HTML input field, without a framework.
npm install @pro6pp/infer-js@pro6pp/infer-reactA ready-made address autocomplete component for React, plus a headless hook to build your own.
npm install @pro6pp/infer-react@pro6pp/infer-coreThe framework-independent engine behind the other SDKs. Use it to integrate Infer with a framework they don't cover.
npm install @pro6pp/infer-coreThe Infer SDKs package the frontend side of the Infer API into ready-to-use modules. Pass your API key to add address autocompletion to your website or app.
The JS and React SDKs are built on the same @pro6pp/infer-core engine, so they handle debouncing, state and address suggestions in the same way. You only install the JS or React SDK: infer-core comes with it automatically.
A street, city or postcode is enough to start. Suggestions lead to the complete address, and you get each part as a separate value.
The default styles work as they are, and you can replace them with your own. In React, the useInfer hook lets you build your own interface.
Suggestions wait until typing pauses, and outdated requests are cancelled. The SDKs depend only on infer-core.
The arrow keys and Enter select a suggestion. The part that matches the input is highlighted.