Skip to content
项目

关于

简洁的纯原生 JavaScript 自动补全库。

开发工具

这些数字如何统计

可以做什么

  • Pure Vanilla Javascript
  • Zero Dependencies
  • Simple & Lightweight
  • Powerful Search Engine with two different modes

实测星标增长

24小时
0
7天
-1
15天
-2
1个月
-2

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

autoComplete.js :sparkles:

License GitHub package.json version npm 100% Javascript Zero Dependencies Minified Size Yes Maintained npm Open Source Love



autoComplete.js Design



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

autoComplete.js Code Example

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

探索相关项目

加载中…