🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@nuxt-commerce/algolia

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@nuxt-commerce/algolia

Algolia module for Nuxt 3

0.2.0
unpublished
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@nuxt-commerce/algolia

@nuxt-commerce/algolia

npm version npm downloads Github Actions CI Codecov License

Algolia module for Nuxt 3

Features

  • Nuxt 3 ready
  • Easy integration with Algolia
  • Handy composables like useAlgolia, useSearch, etc
  • TypeScript support

📖  Read the documentation

Setup

yarn add @nuxt-commerce/algolia # yarn
npm i @nuxt-commerce/algolia # npm

Basic usage

Firstly, you need to add @nuxt-commerce/algolia to your Nuxt config.

// nuxt.config.js

{
  modules: [
    [
      '@nuxt-commerce/algolia',
      {
        apiKey: '<YOUR_SEARCH_API_KEY>',
        applicationId: '<YOUR_APPLICATION_ID>'
      }
    ]
  ]
}

Then you can start using @nuxt-commerce/algolia in your setup function!

<script setup>
const { result, search } = useSearch('test_index') // pass your index as param

onMounted(async () => {
  await search({ query: 'Samsung' });
})
</script>

Development

  • Clone this repository
  • Install dependencies using yarn install or npm install
  • Start development server using yarn dev or npm run dev

License

MIT License

Keywords

algolia

FAQs

Package last updated on 10 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts