Developer Center · SDK

JavaScript integration patterns

Keep browser logic fast and predictable. Storefront code drives interaction and public requests; private credentials and sensitive logic remain server-side.

Autocomplete

Debounce input, cancel outdated requests and avoid racing conditions in fast types.

Results & filters

Sync query, filters, sorting and URL state so that navigation and refresh remain predictable.

Events

Measure result views and product clicks only when the user has actually seen or executed them.

Fallback

Make timeouts and errors visible without the entire storefront becoming unusable.

Error handling →