How to use typesense - 2 common examples

To help you get started, we’ve selected a few typesense examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lesspass / lesspass / packages / lesspass-profiles / import.js View on Github external
const Typesense = require("typesense");

const profiles = require("./profiles.json");

const client = new Typesense.Client({
  masterNode: {
    host: "localhost",
    port: "8108",
    protocol: "http",
    apiKey: "dev-api-key"
  },
  timeoutSeconds: 2
});

client
  .collections("profiles")
  .delete()
  .catch(() => {});

client.collections().create({
  name: "profiles",
github datenanfragen / website / src / Components / SearchBar.js View on Github external
constructor(props) {
            super(props);

            this.client = new Typesense.Client({
                masterNode: {
                    host: 'search.datenanfragen.de',
                    port: '443',
                    protocol: 'https',
                    apiKey: '981da30f2e80463cadf8a91bc2db4cf5'
                },
                timeoutSeconds: 2
            });

            this.algolia_autocomplete = null;
            this.input_element = null;
        }

typesense

Javascript Library for Typesense

Apache-2.0
Latest version published 4 months ago

Package Health Score

83 / 100
Full package analysis

Popular typesense functions