Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
A lightweight, customizable omnibox. Useful for searching text, images, videos, audios or all other kinds data with a Jina backend.
jinabox.js
is a lightweight, customizable omnibox. You can use it for searching text, images, videos, audio or any kind of data with a Jina backend.
jinabox.js
is a frontend for Jina. You will need to spin up a Jina backend to get search results. Based on what you want to search, run one of our example Jina backends:
docker run -p 65481:65481 -e "JINA_PORT=65481" jinaai/hub.app.bitsearch-pokedex search
docker run -p 45678:45678 jinaai/hub.app.distilbert-southpark
docker run -p 65481:65481 -e "JINA_PORT=65481" jinaai/hub.app.iomock.mp4 search
docker run -p 65481:65481 -e "JINA_PORT=65481" jinaai/hub.app.iomock.sound search
Just go to https://jina.ai/jinabox.js/ in your browser to open up the search interface.
Based on the Docker port you are exposing (i.e. 65481
or 45678
in above Docker images), set jinabox's server endpoint to:
http://localhost:<port_number>/api/search
Drag and drop images, video, or audio, or type in text to search.
In HTML, include the minified script:
<script src="https://unpkg.com/jinabox"></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 searchbar/floater is to appear:
<jina-searchbar/>
<!--or-->
<jina-floater/>
Now you can drag anything from anywhere (local/browser/webpage) to it and conduct the search.
Ready to learn Jina? Read our 101 tutorials.
npm install jinabox
or
yarn add jinabox
MIME type | Input (Query) | Output (Result) | Description |
---|---|---|---|
text | Typing | List only | Text-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 . |
image | Drag-and-drop | <img> Containers in list/grid view | Image or graphical data including both bitmap and vector still images as well as animated versions of still image formats like animated GIF or APNG. Common examples are image/jpeg , image/png , and image/svg+xml . |
video | Drag-and-drop, webcam | <video> containers in list/grid view | Video data or files, such as MP4 movies (video/mp4 ). |
audio | Drag-and-drop, webcam, mic | <audio> containers in list view | Audio or music data. Examples include audio/mpeg , audio/vorbis . |
Settings | Description |
---|---|
theme | Color theme: persian , pompelmo , honeybee , none |
typewriterEffect | Enable typewriter effect on the placeholder |
typewriterDelayItem | Time (ms) delay between every placeholder |
typewriterDelayCharacter | Time (ms) delay between each character |
jinabox.js
runs on modern browsers supporting Web Audio, including Firefox, Chrome, Safari (desktop and mobile) and Opera.
Try http://localhost:65481/api/search
, make sure to use http
and localhost
, instead of 0.0.0.0
.
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.
FAQs
A lightweight, customizable omnibox. Useful for searching text, images, videos, audios or all other kinds data with a Jina backend.
The npm package jinabox receives a total of 47 weekly downloads. As such, jinabox popularity was classified as not popular.
We found that jinabox demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.