2022-02-17 21:56:04 +01:00
|
|
|
<h1 align="center">LibreX</h1>
|
2022-02-20 23:06:07 +01:00
|
|
|
|
2022-02-17 21:56:04 +01:00
|
|
|
<p align="center">
|
2022-02-25 10:50:51 +01:00
|
|
|
<img src="https://user-images.githubusercontent.com/49120638/155693689-d217d78d-42a7-4b35-b5f3-8b6eca1b8553.png" width=500>
|
|
|
|
<img src="https://user-images.githubusercontent.com/49120638/155693795-7a35e40c-4f02-499c-9711-586d6c1f9f42.png" width=500>
|
2022-02-17 21:56:04 +01:00
|
|
|
</p>
|
|
|
|
|
|
|
|
|
2022-03-01 17:37:56 +01:00
|
|
|
<p align="center">A privacy respecting free as in freedom meta search engine</p>
|
2022-02-17 21:56:04 +01:00
|
|
|
|
|
|
|
# Online instances
|
2022-02-23 12:51:35 +01:00
|
|
|
+ [search.davidovski.xyz](https://search.davidovski.xyz/) 🇬🇧
|
2022-02-17 21:56:04 +01:00
|
|
|
|
2022-03-01 17:37:56 +01:00
|
|
|
If you wish to get your instance added create an issue with the `new instance` label and this information:
|
2022-02-19 14:08:42 +01:00
|
|
|
+ the URL of your instance
|
|
|
|
+ the country where your instance is being hosted
|
|
|
|
|
|
|
|
Your request will be **rejected** if your instance:
|
|
|
|
+ contains JavaScript
|
2022-03-01 17:37:56 +01:00
|
|
|
+ contains cookies
|
2022-02-19 14:08:42 +01:00
|
|
|
+ contains ads
|
|
|
|
+ has been heavily modified
|
|
|
|
|
2022-02-17 21:56:04 +01:00
|
|
|
# Features
|
|
|
|
+ Ad free
|
|
|
|
+ JavaScript free
|
2022-02-20 23:06:07 +01:00
|
|
|
+ Cookie free
|
2022-03-01 17:37:56 +01:00
|
|
|
+ Torrent results
|
|
|
|
+ Supports special queries (e.g.: 1 btc to usd , what does xyz mean etc.)
|
2022-02-17 21:56:04 +01:00
|
|
|
+ Tracking snippets from URLs are removed
|
|
|
|
+ Image results are converted to base64 to prevent clients from connecting to Google servers
|
|
|
|
+ Supports both POST and GET requests
|
2022-03-02 13:12:09 +01:00
|
|
|
+ Popular social media sites (YouTube, Instagram, Twitter) are replaced with privacy friendly front-ends
|
2022-03-01 17:37:56 +01:00
|
|
|
+ Easy to use JSON API for developers
|
2022-02-17 21:56:04 +01:00
|
|
|
+ No 3rd party libs are used
|
|
|
|
+ Easy to setup
|
|
|
|
|
|
|
|
# Hosting
|
2022-03-01 18:10:40 +01:00
|
|
|
Hosting LibreX should be easy since no 3rd party PHP libs are used.<br/><br/>
|
|
|
|
If you want to host it just for yourself a PHP development server should be enough:
|
|
|
|
```
|
|
|
|
git clone https://github.com/hnhx/librex.git
|
|
|
|
cd librex
|
|
|
|
sudo php -S 127.0.0.1:80
|
|
|
|
```
|
|
|
|
<br/>
|
|
|
|
If you want to host an online instance you should consider using a production web server (e.g.: nginx).
|
2022-02-17 21:56:04 +01:00
|
|
|
|
|
|
|
# API
|
2022-02-20 23:06:07 +01:00
|
|
|
Example API request: `.../api.php?q=gentoo&p=2&type=0` <br/>
|
2022-02-25 10:42:32 +01:00
|
|
|
Where `q` is the keyword, `p` is the result page (the first page is `0`) and `type` is the search type (`0`=text, `1`=image, `2`=video, `3`=torrent)
|
2022-02-17 21:56:04 +01:00
|
|
|
<br/><br/>
|
|
|
|
JSON result:
|
|
|
|
+ In case of text search:
|
2022-03-03 10:58:11 +01:00
|
|
|
+ If the query is a special query (e.g.: currency conversion, wikipedia result etc.):
|
|
|
|
+ `special_response`:
|
|
|
|
+ `response`
|
|
|
|
+ `source`
|
|
|
|
+ `title`
|
|
|
|
+ `url`
|
|
|
|
+ `base_url`: (e.g.: http://example.com/test.php -> http://example.com/)
|
2022-02-17 21:56:04 +01:00
|
|
|
+ In case of image search:
|
2022-03-03 10:58:11 +01:00
|
|
|
+ `base64`: the result image converted to base64 format
|
|
|
|
+ `alt`: the description of the image
|
2022-02-20 23:06:07 +01:00
|
|
|
+ In case of video search:
|
2022-03-03 10:58:11 +01:00
|
|
|
+ `title`
|
|
|
|
+ `url`
|
|
|
|
+ `base_url`: (e.g.: http://youtube.com/watch -> http://youtube.com/)
|
2022-02-25 10:42:32 +01:00
|
|
|
+ In case of torrent search:
|
2022-03-03 10:58:11 +01:00
|
|
|
+ `hash`
|
|
|
|
+ `name`
|
|
|
|
+ `seeders`
|
|
|
|
+ `leechers`
|
|
|
|
+ `size`
|
|
|
|
+ `source`
|
|
|
|
+ `magnet`
|
2022-02-17 21:56:04 +01:00
|
|
|
|
|
|
|
<br/>
|
|
|
|
The API also supports both GET and POST requests
|
|
|
|
|
2022-02-17 22:02:13 +01:00
|
|
|
# Donate
|
|
|
|
Monero (XMR): `41dGQr9EwZBfYBY3fibTtJZYfssfRuzJZDSVDeneoVcgckehK3BiLxAV4FvEVJiVqdiW996zvMxhFB8G8ot9nBFqQ84VkuC`
|