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

doofinder

Package Overview
Dependencies
Maintainers
1
Versions
198
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

doofinder

Javascript Library for Doofinder Search API

  • 5.9.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
88
decreased by-32.82%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status

Doofinder Library

A.K.A. js-doofinder, or just doofinder, this library makes easy to perform requests to Doofinder's search service and customize the way you present results.

Installation

The library can be installed via package managers or directly pointing to a file in jsDelivr's CDN.

The package offers simple CSS you can obtain from the dist directory. It will help you to build a scaffolding of your project with little effort.

NPM

$ npm install doofinder

Bower

$ bower install doofinder

CDN

You can include the library directly in your website:

<!-- Javascript -->
<script src="//cdn.jsdelivr.net/npm/doofinder@latest/dist/doofinder.min.js"></script>
<!-- CSS -->
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/doofinder@latest/dist/doofinder.css">

TL;DR

If you only want to know how this is structured, without the details, here we go.

The library provides:

  • A Client class to perform requests to the Doofinder service.
  • A Controller class which provides an easy-to-use wrapper for the client and holds Widget instances that will process the response from the service.
  • A collection of widgets which render HTML somewhere given a JSON search response, and provide a user interface to present results or refine search.
  • A collection of utilities, like DOM manipulation, introspection, throttling… and that kind of stuff.

Quick Start

The project includes a demo you can use as inspiration. To take a look and see things you can do with it:

  1. Download the entire project from Github.
  2. Install Grunt if not previously installed.
  3. From the root of the project:
    1. install dependencies with $ npm install.
    2. Run the demo server with $ grunt serve.
  4. Open http://localhost:8008 in your browser.

The demo markup is inside index.html and the related Javascript code can be found at demo/demo.js.

NOTICE: The demo uses a test search engine but you can use a different one, just change the value of the HASHID variable you will find inside index.html.

IMPORTANT: Doofinder protects API calls with CORS. If you change the HASHID variable defined in index.html you will have to allow localhost for your search engine in Doofinder Admin.

Documentation

IMPORTANT: This is a work in progress.

https://doofinder.github.io/js-doofinder/

Keywords

FAQs

Package last updated on 12 Nov 2019

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