SkillAgentSearch skills...

Autocomp.js

A super tiny Javascript autocomplete / autosuggestions library. Zero dependencies, ~800 bytes min+gzip.

Install / Use

/learn @knadh/Autocomp.js
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

autocomp.js

A super tiny Javascript autocomplete / autosuggestion library. Zero dependencies and ~800 bytes minified + gzipped.

View demo

demo

Usage

Node

npm install @knadh/autocomp
import { autocomp } from @knadh/autocomp;

autocomp(document.querySelector("#q"), {
	onQuery: async (val) => {
		// fetch() or whatever that fetches/generates results.
		return ["results", "here"];
	},

	onSelect: (val, items) => {
		alert(val);
		return val;
	}
});

Check the demo source to see advanced usage and basic CSS styles.

ES6 module

Check the demo source to use the lib in <script> directly on an HTML page.

Licensed under the MIT License.

View on GitHub
GitHub Stars350
CategoryDevelopment
Updated17d ago
Forks7

Languages

HTML

Security Score

100/100

Audited on Mar 11, 2026

No findings