Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vercel/algolite

Package Overview
Dependencies
Maintainers
209
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/algolite

An Implementation of [Algolia](https://www.algolia.com/) to emulate its REST API on your local machine or CI environments in order to speed up your development and testing cycles.

  • 0.3.0-canary.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
209
Weekly downloads
 
Created
Source

Algolite

An Implementation of Algolia to emulate its REST API on your local machine or CI environments in order to speed up your development and testing cycles.

Installation

npm run -g algolite

Example

$ algolite --help

Usage: algolite [--port <port>] [--path <path>]

An Algolia REST API Implementation

Options:
--help                Display this help message and exit
--port <port>         The port to listen on (default: 9200)
--path <path>         The path to use for the LevelDB store (Your project folder)

Once running any algolia client can be used.


const client = algoliasearch('app-id', 'api-key', {
  hosts: [{
    protocol: 'http',
    url: 'localhost:9200'
  }]
})

const index = client.initIndex('entries');

await index.addObject({
  title: 'Algolia 2019',
  contentType: 'events'
})

const result = await index.search('Algolia')

Docker Image

docker run --rm -p 9200:9200 --name algolite marconi1992/algolite:0.1.1

FAQs

Package last updated on 09 Nov 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc