Giter VIP home page Giter VIP logo

instantsearch.js's Introduction

InstantSearch.js logo

InstantSearch.js is a library for building blazing fast search-as-you-type search UIs with Algolia.

InstantSearch.js is part of the InstantSearch family: InstantSearch.js | React InstantSearch (web) | Vue InstantSearch (web) | Angular InstantSearch (web) | React-native InstantSearch (native) | InstantSearch Android (native) | InstantSearch iOS (native).

About InstantSearch.js ⚡️

⚡ Lightning-fast search for your apps

This library is built and maintained by the contributors and the peeps at Algolia.

The documentation available at https://community.algolia.com/instantsearch.js/.

Getting started ⌨️

Using InstantSearch.js is as simple as adding this JS in your page:

var search = instantsearch({
  appId: 'latency',
  apiKey: '6be0576ff61c053d5f9a3225e2a90f76',
  indexName: 'instant_search',
  searchParameters: {
    hitsPerPage: 8
  }
});

search.addWidget(
  instantsearch.widgets.hits({
    container: document.querySelector('#products'),
    templates: {
      item: '{{{_highlightResult.name.value}}}'
    }
  })
);

search.addWidget(
  instantsearch.widgets.searchBox({
    container: document.querySelector('#searchBox'),
    placeholder: 'Search for products',
    autofocus: false /* Only to avoid live preview taking focus */
  })
);

search.addWidget(
  instantsearch.widgets.refinementList({
    container: document.querySelector('#brand'),
    attributeName: 'brand'
  })
);

search.start();

You can see this live on CodeSandbox.

If you want to learn more about the library, you can follow the getting started or check how add it to your own project.

Browser support 🌍

We currently support the last two versions of major browsers. (IE10+)

Contributing, dev, release 🚀

We welcome all contributors, from casual to regular ❤️

If you find a typo in the doc, don't hesitate to click on the edit this page button.

If you don't know where to start, you can check the open issue that are tagged easy, the bugs or chore.

To get started in your contribution, you just need to:

  • fork the project and clone it locally
  • install the dependencies yarn
  • run the dev mode yarn run dev and open dev-novel

If you want to learn more about the contribution process, read our CONTRIBUTING guide.

instantsearch.js's People

Contributors

bobylito avatar elpicador avatar francoischalifour avatar greenkeeperio-bot avatar haroenv avatar iam4x avatar jerska avatar kirkbrunson avatar lae25c avatar lucasc avatar lukyvj avatar marielaures avatar markpinero avatar maxiloc avatar meschreiber avatar mthuret avatar olance avatar oliviertassinari avatar pborreli avatar pixelastic avatar plnech avatar rayrutjes avatar redox avatar renovate[bot] avatar ronanlevesque avatar samouss avatar shipow avatar spoeken avatar vond avatar vvo avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.