All Projects → algolia → Instantsearch.js

algolia / Instantsearch.js

Licence: mit
⚡️ A JavaScript library for building performant and instant search experiences with Algolia.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Instantsearch.js

svelte-algolia
Svelte plugin for keeping Algolia indices in sync with custom data fetching functions.
Stars: ✭ 17 (-99.39%)
Mutual labels:  search, algolia, instantsearch
Instantsearch Ios Examples
Example apps built with InstantSearch iOS
Stars: ✭ 55 (-98.04%)
Mutual labels:  algolia, search, widgets
Instantsearch Ios
⚡️ A library of widgets and helpers to build instant-search applications on iOS.
Stars: ✭ 498 (-82.21%)
Mutual labels:  algolia, search, widgets
Instantsearch Android
A library of widgets and helpers to build instant-search applications on Android.
Stars: ✭ 129 (-95.39%)
Mutual labels:  algolia, search, widgets
Angular Instantsearch
⚡️Lightning-fast search for Angular apps, by Algolia
Stars: ✭ 219 (-92.18%)
Mutual labels:  algolia, search, widgets
Autocomplete
🔮 Fast and full-featured autocomplete library
Stars: ✭ 1,268 (-54.7%)
Mutual labels:  algolia, search
Algoliasearch Client Android
Algolia Search API Client for Android
Stars: ✭ 92 (-96.71%)
Mutual labels:  algolia, search
React Instantsearch
⚡️ Lightning-fast search for React and React Native applications, by Algolia.
Stars: ✭ 1,320 (-52.84%)
Mutual labels:  algolia, search
Docsearch
📘 The easiest way to add search to your documentation.
Stars: ✭ 2,266 (-19.04%)
Mutual labels:  algolia, search
Vue Instantsearch
👀 Algolia components for building search UIs with Vue.js
Stars: ✭ 707 (-74.74%)
Mutual labels:  algolia, search
Algoliasearch Magento 2
Algolia Search integration for Magento 2 - compatible with versions from 2.3.x to 2.4.x
Stars: ✭ 131 (-95.32%)
Mutual labels:  algolia, search
Algoliasearch Helper Js
Helper for implementing advanced search features with Algolia
Stars: ✭ 147 (-94.75%)
Mutual labels:  algolia, search
Github Awesome Autocomplete
Add instant search capabilities to GitHub's search bar
Stars: ✭ 1,015 (-63.74%)
Mutual labels:  algolia, search
Algoliasearch Client Javascript
⚡️ A fully-featured and blazing-fast JavaScript API client to interact with Algolia.
Stars: ✭ 907 (-67.6%)
Mutual labels:  algolia, search
Algoliasearch Magento
Algolia Search integration for Magento 1 - compatible with versions from 1.6.x to 1.9.x
Stars: ✭ 163 (-94.18%)
Mutual labels:  algolia, search
Algoliasearch Client Python
⚡️ A fully-featured and blazing-fast Python API client to interact with Algolia.
Stars: ✭ 138 (-95.07%)
Mutual labels:  algolia, search
Gatsby Plugin Algolia
A plugin to push to Algolia based on graphQl queries
Stars: ✭ 154 (-94.5%)
Mutual labels:  algolia, search
Algoliasearch Client Swift
⚡️ A fully-featured and blazing-fast Swift API client to interact with Algolia.
Stars: ✭ 166 (-94.07%)
Mutual labels:  algolia, search
Algoliasearch Client Php
⚡️ A fully-featured and blazing-fast PHP API client to interact with Algolia.
Stars: ✭ 565 (-79.81%)
Mutual labels:  algolia, search
Typesense
Fast, typo tolerant, fuzzy search engine for building delightful search experiences ⚡ 🔍 ✨ An Open Source alternative to Algolia and an Easier-to-Use alternative to ElasticSearch.
Stars: ✭ 8,644 (+208.82%)
Mutual labels:  search, instantsearch

InstantSearch.js

InstantSearch.js is a JavaScript library for building performant and instant search experiences with Algolia.


Version License Build Status Pull reminders

InstantSearch.js is a vanilla JavaScript library that lets you create an instant-search result experience using Algolia’s search API. It is part of the InstantSearch family:

InstantSearch.js | React InstantSearch | Vue InstantSearch | Angular InstantSearch | React InstantSearch Native | InstantSearch Android | InstantSearch iOS

Table of contents

Why

You should be using InstantSearch if you want to:

  • Design search experiences with best practices
  • Customize your components at will
  • Remain independent from external frameworks

Getting started

Using InstantSearch.js is as simple as adding this JavaScript code to your page:

// 1. Instantiate the search
const search = instantsearch({
  indexName: 'instant_search',
  searchClient: algoliasearch('latency', '6be0576ff61c053d5f9a3225e2a90f76'),
});

search.addWidgets([
  // 2. Create an interactive search box
  instantsearch.widgets.searchBox({
    container: '#searchbox',
    placeholder: 'Search for products',
  }),

  // 3. Plug the search results into the product container
  instantsearch.widgets.hits({
    container: '#products',
    templates: {
      item: '{{#helpers.highlight}}{ "attribute": "name" }{{/helpers.highlight}}',
    },
  }),

  // 4. Make the brands refinable
  instantsearch.widgets.refinementList({
    container: '#brand',
    attribute: 'brand',
  }),
]);

// 5. Start the search!
search.start();

Edit on CodeSandbox

To learn more about the library, follow the getting started guide or check how to add it to your own project.

Installation

npm install instantsearch.js algoliasearch
# or
yarn add instantsearch.js algoliasearch

TypeScript users

To use InstantSearch.js in a TypeScript environment, depending on your algoliasearch version, you need to import different types.

You still need to import these types even if you don't use InstantSearch.js with algoliasearch.

algoliasearch v4.x

This version uses types provided by both algoliasearch and @algolia/client-search.

yarn add algoliasearch@4 @algolia/client-search

algoliasearch v3.x

yarn add @types/algoliasearch@3

v3.x is deprecated and will soon no longer be supported.

Documentation

The documentation is available on the Algolia website.

Demos

E-commerce Media Travel
E-commerce demo preview Media demo preview Tourism demo preview

See more demos on the website.

Playground

You can get to know InstantSearch.js on this playground.

Start by adding widgets and tweaking the display. Once you feel familiar with the library, we recommend following the getting started guide.

Browser support

We support the last two versions of major browsers (Chrome, Edge, Firefox, Safari).

Please refer to the browser support section in the documentation to use InstantSearch.js on other browsers.

Troubleshooting

Encountering an issue? Before reaching out to support, we recommend heading to our FAQ where you will find answers for the most common issues and gotchas with the library.

Contributing

We welcome all contributors, from casual to regular 💙

  • Bug report. Is something not working as expected? Send a bug report.
  • Feature request. Would you like to add something to the library? Send a feature request.
  • Documentation. Did you find a typo in the doc? Open an issue and we'll take care of it.
  • Development. If you don't know where to start, you can check the open issues that are tagged easy, the bugs or chores.

To start contributing to code, you need to:

  1. Fork the project
  2. Clone the repository
  3. Install the dependencies: yarn
  4. Run the development mode: yarn start
  5. Open the stories

Please read our contribution process to learn more.

License

InstantSearch.js is MIT licensed.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].