autoComplete.js :sparkles:
April 13, 2026 · View on GitHub
Simple autocomplete pure vanilla Javascript library. :rocket: Live Demo v10
autoComplete.js is a simple, pure vanilla Javascript library progressively designed for speed, high versatility, and seamless integration with a wide range of projects & systems. (Made for a better developer experience)
Features
- Pure Vanilla Javascript
- Zero Dependencies
- Simple & Lightweight
- Powerful Search Engine with two different modes
- Diacritics Support
- Debounce Support
- Life Cycle Events
- Useful plugin API
- WAI-ARIA Compliant
- Highly Customizable
- Works on anything (
<input>,<textarea>andcontentEditableelements) - Well Documented
How It Compares
| Library | Size (gzip) | Dependencies | Framework | Drop-in |
|---|---|---|---|---|
| autoComplete.js | ~3.7 KB | 0 | None (vanilla JS) | Yes |
| Downshift | ~8 KB | 5 | React only | No |
| Tom Select | ~16 KB | 1 | None | Yes |
| Select2 | ~17 KB | jQuery | jQuery | Yes |
| Choices.js | ~20 KB | 0 | None | Yes |
| Algolia Autocomplete | ~25 KB | 5 | Any (Preact core) | Yes |
| react-select | ~27 KB | 9 | React only | Yes |
autoComplete.js is the smallest full-featured option in the category. See the full comparison for details.
Getting Started
Installation:
CDN
JS
<script src="https://cdn.jsdelivr.net/npm/@tarekraafat/autocomplete.js@10.2.10/dist/autoComplete.min.js"></script>
CSS
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tarekraafat/autocomplete.js@10.2.10/dist/css/autoComplete.min.css">
Package Manager
- npm install
(Node Package Manager)
npm i @tarekraafat/autocomplete.js
- Yarn install
(Javascript Package Manager)
yarn add @tarekraafat/autocomplete.js
Documentation:
- For usage & configuration details check out autoComplete.js docs :notebook_with_decorative_cover:
- For upcoming releases and planned improvements check out the Roadmap
Used By
IBM Carbon, The Guardian, Snapcraft (Canonical), Weblate, Blockscout, Eclipse Ditto, and 2,400+ more projects across many industries and ecosystems.
Support
Technical questions and support, please post your question on Stack Overflow using the below tag
- Stack Overflow autoCompletejs
General questions or new ideas for autoComplete.js please start a discussion on Github using the below link
- Github Discussions
Author
Tarek Raafat
- Email: tarek.m.raafat@gmail.com
- Website: tarekraafat.com
- Github: github.com/TarekRaafat
Also by the Author
| Project | Description |
|---|---|
| Eleva.js | Ultra-lightweight (~2.5KB) pure vanilla JavaScript framework with signal-based reactivity |
| Skalex.js | AI-first, zero-dependency JavaScript database with vector search and encryption |
License
Released under the Apache 2.0 license.
© 2026 Tarek Raafat
