Gathering detailed insights and metrics for @algolia/autocomplete-core
Gathering detailed insights and metrics for @algolia/autocomplete-core
Gathering detailed insights and metrics for @algolia/autocomplete-core
Gathering detailed insights and metrics for @algolia/autocomplete-core
@algolia/autocomplete-preset-algolia
Presets for building autocomplete experiences with Algolia.
@algolia/autocomplete-plugin-algolia-insights
A plugin to add Algolia Insights to Algolia Autocomplete.
@algolia/autocomplete-js
Fast and fully-featured autocomplete JavaScript library.
@algolia/autocomplete-theme-classic
Classic theme for Algolia Autocomplete.
🔮 Fast and full-featured autocomplete library
npm install @algolia/autocomplete-core
59.7
Supply Chain
73.7
Quality
94.7
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
5,059 Stars
2,426 Commits
331 Forks
108 Watching
32 Branches
384 Contributors
Updated on 22 Nov 2024
TypeScript (95.6%)
SCSS (2.88%)
JavaScript (1.52%)
Cumulative downloads
Total Downloads
Last day
-2.3%
137,570
Compared to previous day
Last week
1.7%
733,200
Compared to previous week
Last month
11.9%
3,128,931
Compared to previous month
Last year
63.2%
31,523,774
Compared to previous year
All you need to get started is:
The data that populates the autocomplete results are called sources. You can use whatever you want in your sources: a static set of searches terms, search results from an external source like an Algolia index, recent searches, and more.
By configuring just those two required parameters (container
and getSources
) you can have an interactive autocomplete experience. The library creates an input and provides the interactivity and accessibility attributes, but you're in full control of the DOM elements to output.
Documentation •
API •
Playground
The recommended way to get started is with the autocomplete-js
package. It includes everything you need to render a JavaScript autocomplete experience.
Otherwise, you can install the autocomplete-core
package if you want to build a renderer from scratch.
All Autocomplete packages are available on the npm registry.
1yarn add @algolia/autocomplete-js 2# or 3npm install @algolia/autocomplete-js
If you don't use a package manager, you can use the HTML script
element:
1<script src="https://cdn.jsdelivr.net/npm/@algolia/autocomplete-js"></script> 2<script> 3 const { autocomplete } = window['@algolia/autocomplete-js']; 4</script>
To get started, you need a container for your autocomplete to go in. If you don't have one already, you can insert one into your markup:
1<div id="autocomplete"></div>
Then, insert your autocomplete into it by calling the autocomplete
function and providing the container
. It can be a CSS selector or an Element.
Make sure to provide a container (e.g., a div
), not an input
. Autocomplete generates a fully accessible search box for you.
1import { autocomplete } from '@algolia/autocomplete-js'; 2 3autocomplete({ 4 container: '#autocomplete', 5 // ... 6});
Continue reading our Getting Started guide.
The documentation offers a few ways to learn about the Autocomplete library:
You can find more on the documentation.
Package | Description | Documentation |
---|---|---|
autocomplete-js | JavaScript package for Autocomplete | Documentation |
autocomplete-core | JavaScript core primitives to build an autocomplete experience | Documentation |
autocomplete-plugin-recent-searches | A plugin to add recent searches to Autocomplete | Documentation |
autocomplete-plugin-query-suggestions | A plugin to add query suggestions to Autocomplete | Documentation |
autocomplete-plugin-algolia-insights | A plugin to add Algolia Insights to Autocomplete | Documentation |
autocomplete-plugin-redirect-url | A plugin to enable redirect URLs | Documentation |
autocomplete-plugin-tags | A plugin to manage and display a list of tags in Autocomplete | Documentation |
autocomplete-preset-algolia | Presets to use Algolia features with Autocomplete | Documentation |
autocomplete-theme-classic | Classic theme for Autocomplete | Documentation |
See the awesome experiences people built with Autocomplete:
Find more in our Showcase.
Check out sandboxes using Autocomplete.
No vulnerabilities found.
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
Found 28/30 approved changesets -- score normalized to 9
Reason
7 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 6
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
46 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More