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

jinabox

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jinabox

A lightweight, customizable omnibox. Useful for searching text, images, videos, audios or all other kinds data with a Jina backend.

  • 0.1.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
48
increased by1100%
Maintainers
1
Weekly downloads
 
Created
Source

jinabox.js

Jina Jina Box

jinabox.js is a lightweight, customizable omnibox. You can use it for searching text, images, videos, audios or all kinds of data with a Jina backend.

Demo page

Quick Start

In HTML, include the minified script:

<script src="https://unpkg.com/jinabox.js"></script>
<script>
    jb = window.JinaBox
    jb.init('http://0.0.0.0:65481/api/search');  // `http://0.0.0.0:65481/api/search` is the endpoint of the REST gateway of a Jina backend.

</script>

Then, create a container where the jinabox is to appear:

<jinabox/>

Using with a module bundler

npm install --save jinabox.js
# or
yarn add jinabox.js

Features

  • an easy-to-use web component for Jina search backend;
  • allow user to drag-and-drop multiple files as queries to search;
  • visualize the search results in a dropdown list or a separate container;
  • highly customizable.

Supported MIME types

MIME typeInput (Query)Output (Result)Description
texttypinglist onlyText-only data including any human-readable content, source code, or textual data such as comma-separated value (CSV) formatted data. Examples include text/plain, text/csv, and text/html.
imagedrag-and-drop<img> containers in list/grid viewImage or graphical data including both bitmap and vector still images as well as animated versions of still image formats such as animated GIF or APNG. Common examples are image/jpeg, image/png, and image/svg+xml.
videodrag-and-drop<video> containers in list/grid viewVideo data or files, such as MP4 movies (video/mp4).
audiodrag-and-drop<audio> containers in list viewAudio or music data. Examples include audio/mpeg, audio/vorbis.

Browser support

jinabox.js runs on modern browsers supporting Web Audio, including Firefox, Chrome, Safari (desktop and mobile) and Opera.

License

Copyright (c) 2020 Jina AI Limited. All rights reserved.

Jina is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

Keywords

FAQs

Package last updated on 15 Jun 2020

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