Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@nubo-ui/search

Package Overview
Dependencies
Maintainers
1
Versions
4
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

@nubo-ui/search

Nubo UI - Search

unpublished
latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source
npm i @nubo-ui/search react-instantsearch-dom @meilisearch/instant-meilisearch

Usage

import { getSearchClient } from '@nubo-ui/search';
import { Hits, InstantSearch, SearchBox } from 'react-instantsearch-dom';

const searchClient = getSearchClient({
  apiKey: 'apik-...',
});

const App = () => (
  <InstantSearch searchClient={searchClient} indexName="users">
    <SearchBox />
    <Hits />
  </InstantSearch>
);

Authentication

Authentication to your data is done with an API key. You have two options.

Option 1

Set the API key directly in the client.

getSearchClient({
  apiKey: 'apik-xxxxx',
});

Option 2

Set the API key with an environment variable. Choose one of the following, depending on your environment.

NUBO_API_KEY=apik-xxxxx
REACT_APP_NUBO_API_KEY=apik-xxxxx
NEXT_PUBLIC_NUBO_API_KEY=apik-xxxxx

Make sure to use an API key with limited permissions, as this will be available in the browser.

FAQs

Package last updated on 04 Mar 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