autoComplete.js :sparkles:

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> and contentEditable elements)
- 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/[email protected]/dist/autoComplete.min.js"></script>
CSS
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tarekraafat/[email protected]/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:
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
General questions or new ideas for autoComplete.js please start a discussion on Github using the below link
Author
Tarek Raafat
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
评论