🔍 Lens is an opt-in search engine and data collection tool to aid content discovery of the distributed web
  • PureBasic 99.9%
  • Go 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2019-07-26 15:41:14 -07:00
analyzer all: clean up logging 2019-04-25 17:53:41 -07:00
cmd/temporal-lens chore: fmt, fix mispellings 2019-04-25 18:03:08 -07:00
engine queue: wait for self to stop 2019-04-25 18:36:10 -07:00
gotools gotools: add documentation 2019-04-25 16:49:41 -07:00
hooks dist: fix var substitution 2018-12-22 19:47:13 +00:00
logs all: clean up logging 2019-04-25 17:53:41 -07:00
mocks fix dependencies, regenerate mocks 2019-07-26 15:28:54 -07:00
models v1: remove v1 models 2019-02-22 21:18:02 -08:00
server all: clean up logging 2019-04-25 17:53:41 -07:00
setup/scripts dist: add prelim build support for GPU-enabled images 2018-12-15 01:59:18 -08:00
source mod: v2 2019-04-20 15:01:00 -07:00
test deps: upgrade RTradeLTd/config 2019-02-01 20:33:49 -08:00
.dockerignore dist: experimental docker image 2018-12-15 01:16:29 -08:00
.gitignore chore: improve Make scripts, tensorflow install 2018-11-18 15:15:34 -08:00
.travis.yml ci: cache dependencies, add codecov 2019-07-26 15:32:03 -07:00
codecov.yml ci: cache dependencies, add codecov 2019-07-26 15:32:03 -07:00
Dockerfile mod: add go.mod 2019-04-16 19:58:19 -07:00
go.mod deps: tidy dependencies 2019-07-26 15:31:25 -07:00
go.sum deps: tidy dependencies 2019-07-26 15:31:25 -07:00
lens.yml dist: experimental docker image 2018-12-15 01:16:29 -08:00
LICENSE licence: switch to apache-2.0 2018-11-20 17:38:38 -08:00
Makefile gotools: switch codegen to gotools 2019-04-25 16:49:09 -07:00
README-zh.md add readme-zh 2019-07-26 17:47:35 +08:00
README.md add readme-zh 2019-07-26 17:47:35 +08:00
v2.go mod: v2 2019-04-20 15:01:00 -07:00
v2_test.go gotools: switch codegen to gotools 2019-04-25 16:49:09 -07:00
v2_util.go chore: fmt, fix mispellings 2019-04-25 18:03:08 -07:00

🔍 Lens

Search engine for the distributed web

Lens is an opt-in search engine and data collection tool to aid content discovery of the distributed web. It exposes a simple, minimal API for intelligently indexing and querying content on IPFS.

GoDoc Build Status codecov Go Report Card Latest Release

Multi-Language

jaywcjlove/sb

Features and Usage

Initially integrated with Temporal, Lens will allow users to optionally have the data they upload be searched and indexed and be awarded with RTC for participating in the data collection process. Users can then search for content using a simple-to-use API.

Searching through Lens will be facilitated through Temporal web. Optionally, we will have a service independent from Temporal which users can submit content to have it be indexed. This however, is not compensated with RTC. In order to receive the RTC, you must participate through Lens indexing within the Temporal web interface.

API

Lens exposes a simple API via gRPC. The definitions are in RTradeLtd/grpc.

The Lens API, summarized, currently consists of three core RPCs:

service LensV2 {
  rpc Index(IndexReq)   returns (IndexResp)  {}
  rpc Search(SearchReq) returns (SearchResp) {}
  rpc Remove(RemoveReq) returns (RemoveResp) {}
}

Golang bindings for the Lens API can be found in RTradeLtd/grpc.

Supported Formats

Only IPFS CIDs are supported, and must be either images, text files, or pdfs. We attempt to determine the content type via mime type sniffing, and use that to determine whether or not we can analyze the content.

Please see the following table for supported content types that we can index. Note if the type is listed as <type>/* it means that any "sub type" of that mime type is supported.

Mime Type Support Level Tested Types
text/* Beta text/plain, text/html
image/* Beta image/jpeg
application/pdf Beta application/pdf

Deployment

The recommended way to deploy a Lens instance is via the rtradetech/lens Docker image.

$> docker pull rtradetech/lens:latest

A docker-compose configuration is available that also starts up other prerequisites:

$> wget -O lens.yml https://raw.githubusercontent.com/RTradeLtd/Lens/master/lens.yml
$> LENS=latest BASE=/my/dir docker-compose -f lens.yml up

Development

This project requires:

To fetch the codebase, use go get:

$> go get github.com/RTradeLtd/Lens

A rudimentary Makefile target make dep is available for installing the required dependencies.