Infer SDKs

Add address autocompletion to your website with vanilla JavaScript, React or another framework, using the Infer API.

Core SDK

@pro6pp/infer-core

The framework-independent engine behind the other SDKs. Use it to integrate Infer with a framework they don't cover.

npm install @pro6pp/infer-core

The easiest way to use the Infer API

The 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.

Key features

  • One address field

    A street, city or postcode is enough to start. Suggestions lead to the complete address, and you get each part as a separate value.

  • Your own styling

    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.

  • Fast and light

    Suggestions wait until typing pauses, and outdated requests are cancelled. The SDKs depend only on infer-core.

  • Keyboard-friendly

    The arrow keys and Enter select a suggestion. The part that matches the input is highlighted.