Autocomplete.js helps build fast accessible typeahead experiences with any virtual DOM. Developers supply a container and data sources.
Overview
Autocomplete is a JavaScript library for building autocomplete and combobox-style interfaces. It focuses on headless behavior: the library wires input interactivity and accessibility while developers render results with React, Vue, Preact, or plain JavaScript.
Data providers called sources can be static lists, remote search APIs, or Algolia indices. Installing autocomplete-js bundles the default renderer; autocomplete-core is available for fully custom UIs.
Packages ship on npm and can be loaded without a bundler via a script tag exposing window.autocomplete. Documentation covers API details and a playground for experiments.
The design keeps DOM output under developer control so styling and framework choices stay flexible across applications.
Key features
- Headless autocomplete core
- Pluggable data sources
- Virtual DOM agnostic
- autocomplete-js renderer
- CDN script tag loading
- Accessible combobox patterns
- Algolia-oriented examples
Use cases
- Search typeahead fields
- Command palettes
- Accessible combobox widgets